Attenuate evolution trap increases

Attenuate evolution trap increases based on game's current evolution_factor to improve difficulty slider scaling. See drive.google.com/file/d/1RBBZV3XRmvgwOTXJhr6aQJIaTatJc2WF
This commit is contained in:
vgZerst 2022-01-17 13:59:57 -06:00 committed by Fabian Dill
parent 028207022a
commit eebf1a5126
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ commands.add_command("ap-get-technology", "Grant a technology, used by the Archi
elseif item_name == "Evolution Trap" then
if global.index_sync[index] == nil then -- not yet received trap
global.index_sync[index] = item_name
game.forces["enemy"].evolution_factor = game.forces["enemy"].evolution_factor + TRAP_EVO_FACTOR
game.forces["enemy"].evolution_factor = game.forces["enemy"].evolution_factor + (TRAP_EVO_FACTOR * (1 - game.forces["enemy"].evolution_factor))
game.print({"", "Received Evolution Trap from ", source, ". New factor:", game.forces["enemy"].evolution_factor})
end
else