Index: binaries/data/mods/public/maps/scripts/CaptureTheRelic.js =================================================================== --- binaries/data/mods/public/maps/scripts/CaptureTheRelic.js +++ binaries/data/mods/public/maps/scripts/CaptureTheRelic.js @@ -1,13 +1,14 @@ -let g_CatafalqueTemplate = "other/special_catafalque"; - Trigger.prototype.InitCaptureTheRelic = function() { + let cmpTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TemplateManager); + let catafalqueTemplates = shuffleArray(cmpTemplateManager.FindAllTemplates(false).filter( + name => name.startsWith("other/catafalque/"))); + // Attempt to spawn relics using gaia entities in neutral territory // If there are none, try to spawn using gaia entities in non-neutral territory let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager); let cmpWaterManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_WaterManager); let cmpTerritoryManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager); - let cmpTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TemplateManager); let potentialGaiaSpawnPoints = []; @@ -47,7 +48,7 @@ for (let i = 0; i < numSpawnedRelics; ++i) { - this.relics[i] = TriggerHelper.SpawnUnits(pickRandom(potentialSpawnPoints), g_CatafalqueTemplate, 1, 0)[0]; + this.relics[i] = TriggerHelper.SpawnUnits(pickRandom(potentialSpawnPoints), catafalqueTemplates[i], 1, 0)[0]; let cmpDamageReceiver = Engine.QueryInterface(this.relics[i], IID_DamageReceiver); cmpDamageReceiver.SetInvulnerability(true); Index: binaries/data/mods/public/simulation/data/auras/athen_catafalque_1.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/athen_catafalque_1.json +++ binaries/data/mods/public/simulation/data/auras/athen_catafalque_1.json @@ -0,0 +1,12 @@ +{ + "type": "range", + "radius": 80, + "affects": ["Worker"], + "modifications": [ + { "value": "ResourceGatherer/BaseSpeed", "multiply": 1.1 } + ], + "auraName": "Economic Reforms", + "auraDescription": "Solon instituted several economic reforms encouraging commerce and agriculture. +10% gather rate of nearby workers.", + "overlayIcon": "art/textures/ui/session/auras/buildgather_bonus.png" + +} Index: binaries/data/mods/public/simulation/data/auras/athen_catafalque_2.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/athen_catafalque_2.json +++ binaries/data/mods/public/simulation/data/auras/athen_catafalque_2.json @@ -0,0 +1,12 @@ +{ + "type": "global", + "affects": ["Economic", "Structure"], + "modifications": [ + { "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 } + ], + "auraName": "Economic Reforms", + "auraDescription": "Solon brought in a new system of weights and measures, fathers were encouraged to find trades for their sons." +} Index: binaries/data/mods/public/simulation/data/auras/brit_catafalque.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/brit_catafalque.json +++ binaries/data/mods/public/simulation/data/auras/brit_catafalque.json @@ -0,0 +1,13 @@ +{ + "type": "global", + "affects": ["Soldier"], + "modifications": [ + { "value": "Vision/Range", "multiply": 1.1 }, + { "value": "UnitMotion/WalkSpeed", "multiply": 1.15 }, + { "value": "UnitMotion/Run/Speed", "multiply": 1.15 } + ], + "auraName": "Guerilla Tactics", + "auraDescription": "Seeing entrenched defence to be useless against the Roman Army, Cassivellanus resorted to gurerilla tactics. This was later employed by other cheiftains too. +15% speed and vision range for soldiers.", + "overlayIcon": "art/textures/ui/session/auras/" +} + Index: binaries/data/mods/public/simulation/data/auras/cart_catafalque.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/cart_catafalque.json +++ binaries/data/mods/public/simulation/data/auras/cart_catafalque.json @@ -0,0 +1,15 @@ +{ + "type": "global", + "affects": ["Melee Cavalry"], + "modifications": [ + { "value": "UnitMotion/WalkSpeed", "multiply": 1.1 }, + { "value": "UnitMotion/Run/Speed", "multiply": 1.1 }, + { "value": "Armour/Pierce", "add": 1 }, + { "value": "Armour/Hack", "add": 1 }, + { "value": "Armour/Crush", "add": 1 }, + {"value": "Health/Max", "multiply": 1.1} + ], + "auraName": "Commander of Heavy Cavalry", + "auraDescription": "Leader of the Carthaginian heavy cavalry at Trebia and Cannae, where his triple charge had devastating effects on the enemy. +1 armour and speed, +10% health for melee cavalry.", + "overlayIcon": "art/textures/ui/session/auras/attack_bonus.png" +} Index: binaries/data/mods/public/simulation/data/auras/gaul_catafalque_1.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/gaul_catafalque_1.json +++ binaries/data/mods/public/simulation/data/auras/gaul_catafalque_1.json @@ -0,0 +1,13 @@ +{ + "type": "range", + "radius": 60, + "affects": ["Human"], + "modifications": [ + { "value": "Promotion/RequiredXp", "multiple": 0.75 } + { "value": "Attack/Melee/Hack", "multiply": 1.05 }, + { "value": "Attack/Melee/Pierce", "multiply": 1.05 }, + { "value": "Attack/Melee/Crush", "multiply": 1.05 }, + ], + "auraName": "Ambush Slaughter", + "auraDescription": "Warring with the Romans, Ambiorix realized the futility of open warfare and instead resorted to ambush tactics. The Gauls quickly learned where and when to execute surprise attacks. Units promote 25% faster and gain a 5% attack bonus." +} Index: binaries/data/mods/public/simulation/data/auras/gaul_catafalque_2.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/gaul_catafalque_2.json +++ binaries/data/mods/public/simulation/data/auras/gaul_catafalque_2.json @@ -0,0 +1,11 @@ +{ + "type": "global", + "affects": ["Human"], + "modifications": [ + { "value": "ResourceGatherer/Rates/food.grain", "multiply": 0.9 } + + ], + "auraName": "Tribute to Rome", + "auraDescription": "" +} + Index: binaries/data/mods/public/simulation/data/auras/iber_catafalque_1.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/iber_catafalque_1.json +++ binaries/data/mods/public/simulation/data/auras/iber_catafalque_1.json @@ -0,0 +1,10 @@ +{ + "type": "global", + "affects": ["Mercenary+CitizenSoldier"], + "affectedPlayers": ["Ally"], + "modifications": [ + { "value": "Cost/Resources/metal", "multiply": 0.75 } + ], + "auraName": "Mercenary Commander", + "auraDescription": "Along with his brother Indibil, Mandonius commanded the Iberian recruits and mercenaries that took part in the Punic Wars. -25% metal cost for all allied citizen-soldier mercenaries." +} Index: binaries/data/mods/public/simulation/data/auras/iber_catafalque_2.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/iber_catafalque_2.json +++ binaries/data/mods/public/simulation/data/auras/iber_catafalque_2.json @@ -0,0 +1,9 @@ +{ + "type": "global", + "affects": ["Soldier"], + "modifications": [ + {"value": "Cost/BuildTime", "multiply": 0.85}, + ], + "auraName": "Saver of Lives", + "auraDescription": "Following the fall of Indibil in battle, Mandonius led the survivors to safety. +15% movement speed for all soldiers." +} Index: binaries/data/mods/public/simulation/data/auras/mace_catafalque.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/mace_catafalque.json +++ binaries/data/mods/public/simulation/data/auras/mace_catafalque.json @@ -0,0 +1,12 @@ +{ + "type": "global", + "affects": ["Human", "Mechanical", "Structure"], + "modifications": [ + { "value": "Looter/Resource/metal", "add": 1.25 }, + { "value": "Looter/Resource/wood", "add": 1.25 }, + { "value": "Looter/Resource/stone", "add": 1.25 }, + { "value": "Looter/Resource/metal", "multiply": 1.25 } + ], + "auraName": "Sacker of Cities", + "auraDescription": "During the First Macedonian War, Philip and his troops sacked Thermum, the religious and political centre of Aetolia. +25% loot for every enemy unit or structure killed." +} Index: binaries/data/mods/public/simulation/data/auras/maur_catafalque.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/maur_catafalque.json +++ binaries/data/mods/public/simulation/data/auras/maur_catafalque.json @@ -0,0 +1,11 @@ +{ + "type": "global", + "affects": ["Structure"], + "modifications": [ + { "value": "TerritoryInfluence/Radius", "multiply": 1.2 }, + { "value": "Attack/Capture/Value", "multiply": 1.15 } + ], + "auraDescription": "Son of Chandragupta Maurya, Bindusara consolidated the Empire and is claimed to have conquered lands to the south. +20% territory influence and +15% unit capture rate.", + "auraName": "Consolidator of the Empire", + "overlayIcon": "art/textures/ui/session/auras/build_bonus.png" +} Index: binaries/data/mods/public/simulation/data/auras/pers_catafalque.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/pers_catafalque.json +++ binaries/data/mods/public/simulation/data/auras/pers_catafalque.json @@ -0,0 +1,14 @@ +{ + "type": "global", + "affects": ["Structure"], + "modifications": [ + { "value": "Cost/Resources/food", "multiply": 0.95 }, + { "value": "Cost/Resources/wood", "add": 0.95 }, + { "value": "Cost/Resources/stone", "add": 0.95 }, + { "value": "Cost/Resources/metal", "add": 0.95 }, + { "value": "Health/Max", "multiply": 1.05 } + ], + "auraName": "Great Builder", + "auraDescription": "Throughout his reign, much of Artaxerxes' wealth was spent on building projects. He restored the Palace of Darius I at Susa, and restored the ancient city of Ecbatana. All buildings +5% health and -5% resource cost.", + "overlayIcon": "art/textures/ui/session/auras/health_bonus.png" +} Index: binaries/data/mods/public/simulation/data/auras/ptol_catafalque.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/ptol_catafalque.json +++ binaries/data/mods/public/simulation/data/auras/ptol_catafalque.json @@ -0,0 +1,12 @@ +{ + "type": "global", + "affects": ["Structure"], + "modifications": [ + { "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 } + ], + "auraName": "Great Librarian", + "auraDescription": "Continuing his predecessors' work on the Great Library at Alexandria, he seized every book brought to Alexandria, thus leaving to his people a vast amount of hoarded wisdom. -10% resource cost for all technologies." +} Index: binaries/data/mods/public/simulation/data/auras/rome_catafalque_1.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/rome_catafalque_1.json +++ binaries/data/mods/public/simulation/data/auras/rome_catafalque_1.json @@ -0,0 +1,13 @@ +{ + "type": "global", + "affects": ["FemaleCitizen"], + "modifications": [ + { "value": "Cost/Resources/food", "multiply": 0.8 }, + {"value": "Health/Max", "multiply": 1.1} + { "value": "ResourceGatherer/BaseSpeed", "multiply": 1.1 } + ], + "auraName": "Avenger of Lucretia", + "auraDescription": "After the rape of Lucretia by the son of the king Tarquinius Superbus and her subsequent suicide, Brutus vowed to avenge her and overthrow the kingship. Female Citizens cost 20% less and work 10% faster.", + "overlayIcon": "art/textures/ui/session/auras/buildgather_bonus.png" +} + Index: binaries/data/mods/public/simulation/data/auras/rome_catafalque_2.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/rome_catafalque_2.json +++ binaries/data/mods/public/simulation/data/auras/rome_catafalque_2.json @@ -0,0 +1,11 @@ +{ + "type": "global", + "affects": ["Human", "Mechanical"], + "modifications": [ + { "value": "Armour/Pierce", "multiply": 1.1 }, + { "value": "Armour/Hack", "multiply": 1.1 }, + { "value": "Armour/Crush", "multiply": 1.1 } + ], + "auraName": "Founder and Defender of the Republic Aura", + "auraDescription": "Brutus was one of the key figures in the overthrow of the kingship and the founding of the Roman Republic. Later, as Consul he led a Roman army to victory against the Etruscan King Tarquinius who sought to retake the throne. +10% armour for all units and sieges." +} Index: binaries/data/mods/public/simulation/data/auras/sele_catafalque_1.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/sele_catafalque_1.json +++ binaries/data/mods/public/simulation/data/auras/sele_catafalque_1.json @@ -0,0 +1,14 @@ +{ + "type": "global", + "affects": ["Temple"], + "modifications": [ + { "value": "ProductionQueue/TechCostMultiplier/wood", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/food", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/metal", "multiply": 0.9 }, + { "value": "ProductionQueue/TechCostMultiplier/stone", "multiply": 0.9 }, + { "value": "Cost/Resources/stone", "multiply": 0.9 }, + { "value": "Cost/Resources/wood", "multiply": 0.9 } + ], + "auraName": "Founder of the Ezida Temple", + "auraDescription": "Antiochus I laid the foundation for the Ezida Temple in Borsippa. Temples and temple technologies -10% resource cost." + Index: binaries/data/mods/public/simulation/data/auras/sele_catafalque_2.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/sele_catafalque_2.json +++ binaries/data/mods/public/simulation/data/auras/sele_catafalque_2.json @@ -0,0 +1,10 @@ +{ + "type": "global", + "affects": ["Player"], + "modifications": [ + { "value": "Player/MaxPopulation", "multiply": 1.05 } + ], + "auraName": "Immigration", + "auraDescription": "Antiochus encouraged Greek immigration to his realm and established many new cities in Asia Minor to serve as counterweights to the Gauls. +5% maximum population.", + "overlayIcon": "art/textures/ui/session/auras/" +} Index: binaries/data/mods/public/simulation/data/auras/sele_catafalque_3.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/sele_catafalque_3.json +++ binaries/data/mods/public/simulation/data/auras/sele_catafalque_3.json @@ -0,0 +1,10 @@ +{ + "type": "global", + "affects": ["Elephant Champion"], + "modifications": [ + { "value": "Cost/Resources/food", "multiply": 0.95 }, + { "value": "Cost/Resources/metal", "multiply": 0.95 } + ], + "auraName": "Basileus Megas (Great King)", + "auraDescription": "Son of Selecus Nicator, Antiochus succeeded in the formidable task of keeping the empire together, meanwhile founding temples and defeating the invading Gauls with war elephants. -5% cost for War Elephants." +} Index: binaries/data/mods/public/simulation/data/auras/spart_catafalque_1.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/spart_catafalque_1.json +++ binaries/data/mods/public/simulation/data/auras/spart_catafalque_1.json @@ -0,0 +1,12 @@ +{ + "type": "global", + "affects": ["CitizenSoldier Spear", "Champion Spearman"], + "modifications": [ + { "value": "Cost/Resources/food", "multiply": 0.95 }, + { "value": "Cost/Resources/wood", "multiply": 0.95 }, + { "value": "Cost/Resources/metal", "multiply": 0.95 }, + { "value": "Cost/Resources/stone", "multiply": 0.95 } + ], + "auraName": "Lycurgan Military Reforms", + "auraDescription": "Lycurgus instituted several military reforms, thus the complete and undivided allegiance to Sparta from its citizens was implemented under his form of government. Spear units -5% resource cost." +} Index: binaries/data/mods/public/simulation/data/auras/spart_catafalque_2.json =================================================================== --- binaries/data/mods/public/simulation/data/auras/spart_catafalque_2.json +++ binaries/data/mods/public/simulation/data/auras/spart_catafalque_2.json @@ -0,0 +1,11 @@ +{ + "type": "range", + "radius": 80, + "affects": ["Worker"], + "modifications": [ + {"value": "ResourceGatherer/Rates/metal.ore", "multiply": 1.1} + ], + "auraName": "Iron Pelanors", + "auraDescription": "To further support equality, Lycurgus forbade the use of gold and silver, instead introducing new iron money called pellanors. +10% metal mining rate for nearby workers.", + "overlayIcon": "art/textures/ui/session/auras/buildgather_bonus.png" +}