From 32080f09bf4da2bc21f0a2bf382be341374f7690 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Sat, 7 Jan 2023 18:20:07 -0800 Subject: [PATCH] bc8e590: Added enemy structure death scent multipler --- changelog.txt | 1 + libs/PheromoneUtils.lua | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 0b557ff..534bfda 100644 --- a/changelog.txt +++ b/changelog.txt @@ -21,6 +21,7 @@ Version: 3.2.0 - Increased the number of chunks processed from 735 to 3000 - Kamikaze squads no longer use a separate movement function - Reduced the raiding base threshold from 550 to 50 to account for the new pheromone distribution + - Added death pheromone scent multipler for destroyed enemy structures Bugfixes: - Removed layer-13 from projectiles - script_raised_built now looks for enemy faction and registers as needed diff --git a/libs/PheromoneUtils.lua b/libs/PheromoneUtils.lua index 96c14b0..e8875bd 100644 --- a/libs/PheromoneUtils.lua +++ b/libs/PheromoneUtils.lua @@ -119,8 +119,11 @@ function pheromoneUtils.disperseVictoryScent(universe) end end -function pheromoneUtils.deathScent(map, chunk) +function pheromoneUtils.deathScent(map, chunk, structure) local amount = -DEATH_PHEROMONE_GENERATOR_AMOUNT + if structure then + amount = amount * 7.5 + end addDeathGenerator(map, chunk, amount) addPermanentDeathGenerator(map, chunk, amount) end