From eebf1a5126c7ac71023ba26b060cb416728ec8e5 Mon Sep 17 00:00:00 2001 From: vgZerst <36623732+vgZerst@users.noreply.github.com> Date: Mon, 17 Jan 2022 13:59:57 -0600 Subject: [PATCH] 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 --- worlds/factorio/data/mod_template/control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/factorio/data/mod_template/control.lua b/worlds/factorio/data/mod_template/control.lua index 4ef722cf..9d93a99d 100644 --- a/worlds/factorio/data/mod_template/control.lua +++ b/worlds/factorio/data/mod_template/control.lua @@ -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