From 7eaf1d6a583099ce97c883fea6aeef05b4fa59e7 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Thu, 20 Oct 2022 21:35:55 -0700 Subject: [PATCH] FACTO-209: Increase worm awareness by worm range scaler --- changelog.txt | 1 + prototypes/SwarmUtils.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index de9f44f..bd52a4f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Version: 3.2.0 Bugfixes: - Removed layer-13 from projectiles - script_raised_built now looks for enemy faction and registers as needed + - Fixed worm range scaler setting not adjusting prepareRange so worms could shoot without being out of the ground. (Thanks Garrotte) Optimizations: - Moved most constants out of global - Removed new enemy variations setting diff --git a/prototypes/SwarmUtils.lua b/prototypes/SwarmUtils.lua index 8f5d39b..7fe7c5e 100644 --- a/prototypes/SwarmUtils.lua +++ b/prototypes/SwarmUtils.lua @@ -587,6 +587,7 @@ local function scaleAttributes (entity) entity["damage"] = entity["damage"] * settings.startup["rampant--unitWormDamageScaler"].value entity["damagePerTick"] = entity["damagePerTick"] * settings.startup["rampant--unitWormDamageScaler"].value entity["range"] = entity["range"] * settings.startup["rampant--unitWormRangeScaler"].value + entity["prepareRange"] = entity["prepareRange"] * settings.startup["rampant--unitWormRangeScaler"].value entity["healing"] = entity["healing"] * settings.startup["rampant--unitWormHealingScaler"].value elseif (entity.type == "hive") then entity["health"] = entity["health"] * settings.startup["rampant--unitHiveHealthScaler"].value