Index: binaries/data/mods/public/simulation/components/Loot.js =================================================================== --- binaries/data/mods/public/simulation/components/Loot.js +++ binaries/data/mods/public/simulation/components/Loot.js @@ -19,7 +19,8 @@ { let ret = {}; for (let res of Resources.GetCodes()) - ret[res] = +(this.template[res] || 0); + ret[res] = ApplyValueModificationsToEntity( + "Loot/Resource/"+res, +this.template[res], this.entity); return ret; }; Index: binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json =================================================================== --- binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json +++ binaries/data/mods/public/simulation/data/technologies/advanced_unit_bonus.json @@ -3,22 +3,27 @@ "icon": "upgrade_advanced.png", "tooltip": "Units promoted to the advanced class gain a lot of quality: 20% extra health, 1 extra armor level of every type, 20% extra attack for melee units, 4m extra range and 5% better precision for ranged units, faster movement speeds and extra heal speed and range for healers.", "modifications": [ - {"value": "Health/Max", "multiply": 1.2 }, - {"value": "Armour/Hack", "add": 1 }, - {"value": "Armour/Pierce", "add": 1 }, - {"value": "Armour/Crush", "add": 1 }, - {"value": "Attack/Capture/Value", "add": 0.4 }, - {"value": "ResourceGatherer/BaseSpeed", "multiply": 0.5 }, - {"value": "UnitMotion/WalkSpeed", "add": 0.5, "affects": "Infantry"}, - {"value": "UnitMotion/WalkSpeed", "add": 1, "affects": "Cavalry" }, - {"value": "Attack/Ranged/MaxRange", "add": 4, "affects": "Ranged" }, - {"value": "Vision/Range", "add": 4, "affects": "Ranged" }, - {"value": "Attack/Ranged/Spread", "multiply": 0.95, "affects": "Ranged" }, - {"value": "Attack/Melee/Hack", "multiply": 1.2, "affects": "Melee" }, - {"value": "Attack/Melee/Pierce", "multiply": 1.2, "affects": "Melee" }, - {"value": "Vision/Range", "add": 3, "affects": "Healer" }, - {"value": "Heal/Range", "add": 3, "affects": "Healer" }, - {"value": "Heal/HP", "add": 5, "affects": "Healer" } + {"value": "Health/Max", "multiply": 1.2 }, + {"value": "Armour/Hack", "add": 1 }, + {"value": "Armour/Pierce", "add": 1 }, + {"value": "Armour/Crush", "add": 1 }, + {"value": "Attack/Capture/Value", "add": 0.4 }, + {"value": "ResourceGatherer/BaseSpeed", "multiply": 0.5 }, + {"value": "UnitMotion/WalkSpeed", "add": 0.5, "affects": "Infantry" }, + {"value": "UnitMotion/WalkSpeed", "add": 1, "affects": "Cavalry" }, + {"value": "Attack/Ranged/MaxRange", "add": 4, "affects": "Ranged" }, + {"value": "Vision/Range", "add": 4, "affects": "Ranged" }, + {"value": "Attack/Ranged/Spread", "multiply": 0.95, "affects": "Ranged" }, + {"value": "Attack/Melee/Hack", "multiply": 1.2, "affects": "Melee" }, + {"value": "Attack/Melee/Pierce", "multiply": 1.2, "affects": "Melee" }, + {"value": "Vision/Range", "add": 3, "affects": "Healer" }, + {"value": "Heal/Range", "add": 3, "affects": "Healer" }, + {"value": "Heal/HP", "add": 5, "affects": "Healer" }, + {"value": "Loot/Resource/food", "add": 5 }, + {"value": "Loot/Resource/wood", "add": 5, "affects": "Infantry" }, + {"value": "Loot/Resource/wood", "add": 5, "affects": "Cavalry" }, + {"value": "Loot/Resource/stone", "add": 5, "affects": "Sling" }, + {"value": "Loot/Resource/metal", "add": 5, "affects": "Sword" } ], "affects": ["Advanced Unit", "Elite Unit"] } Index: binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json =================================================================== --- binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json +++ binaries/data/mods/public/simulation/data/technologies/elite_unit_bonus.json @@ -18,7 +18,12 @@ {"value": "Attack/Melee/Pierce", "multiply": 1.2, "affects": "Melee" }, {"value": "Vision/Range", "add": 3, "affects": "Healer" }, {"value": "Heal/Range", "add": 3, "affects": "Healer" }, - {"value": "Heal/HP", "add": 5, "affects": "Healer" } + {"value": "Heal/HP", "add": 5, "affects": "Healer" }, + {"value": "Loot/Resource/food", "add": 5 }, + {"value": "Loot/Resource/wood", "add": 5, "affects": "Infantry" }, + {"value": "Loot/Resource/wood", "add": 5, "affects": "Cavalry" }, + {"value": "Loot/Resource/stone", "add": 5, "affects": "Sling" }, + {"value": "Loot/Resource/metal", "add": 5, "affects": "Sword" } ], "affects": ["Elite Unit"] }