Ticket #3208: TechnologyReplaceWithTechnologiesAIAndCheats.patch
File TechnologyReplaceWithTechnologiesAIAndCheats.patch, 10.2 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/simulation/ai/common-api/gamestate.js
142 142 { 143 143 if (this.playerData.civ == "athen") 144 144 return "phase_town_athen"; 145 return "phase_town _generic";145 return "phase_town"; 146 146 }; 147 147 148 148 m.GameState.prototype.cityPhase = function() … … 149 149 { 150 150 if (this.playerData.civ == "athen") 151 151 return "phase_city_athen"; 152 return "phase_city _generic";152 return "phase_city"; 153 153 }; 154 154 155 155 m.GameState.prototype.isResearched = function(template) -
binaries/data/mods/public/simulation/components/TechnologyManager.js
337 337 } 338 338 } 339 339 340 if (template.replaces && template.replaces.length > 0) 341 { 342 for (var i of template.replaces) 343 { 344 if (!i || this.IsTechnologyResearched(i)) 345 continue; 346 347 var template = this.GetTechnologyTemplate(i); 348 this.researchedTechs[i] = template; 349 } 350 } 351 340 352 this.UpdateAutoResearch(); 341 353 342 354 var cmpPlayer = Engine.QueryInterface(this.entity, IID_Player); -
binaries/data/mods/public/simulation/data/technologies/phase_city.json
1 1 { 2 2 "genericName": "City Phase", 3 "requirements": { "any": [{"tech":"phase_city_generic"}, {"tech":"phase_city_athen"}]}, 4 "autoResearch": true, 5 "modifications": [{"value": "TerritoryInfluence/Radius", "multiply": 1.50}, 6 {"value": "Health/Max", "multiply": 1.2, "affects": "CitizenSoldier"}], 3 "specificName": { 4 "mace": "Megalopolis", 5 "spart": "Megalopolis", 6 "athen": "Megalopolis" 7 }, 8 "description": "Advances from a bustling town to a veritable metropolis, full of the wonders of modern technology.", 9 "cost": {"food": 0, "wood": 0, "stone": 1000, "metal": 1000}, 10 "requirements": { "class": "Town", "number": 4 }, 11 "requirementsTooltip": "Requires 4 new Town Phase structures (except Walls and Civic Centers).", 12 "supersedes": "phase_town", 13 "icon": "city_phase.png", 14 "researchTime": 80, 15 "tooltip": "Advance to City Phase, which unlocks more structures and units. Territory radius for Civic Centers increased by another +50%", 16 "modifications": [{"value": "TerritoryInfluence/Radius", "multiply": 1.50}, {"value": "Health/Max", "multiply": 1.2, "affects": "CitizenSoldier"}], 7 17 "affects": ["CivCentre", "Infantry", "Cavalry"], 8 "soundComplete": "interface/alarm/alarm_phase.xml", 9 "icon": "city_phase.png" 18 "soundComplete": "interface/alarm/alarm_phase.xml" 10 19 } -
binaries/data/mods/public/simulation/data/technologies/phase_city_athen.json
8 8 "requirements": { "class": "Town", "number": 4 }, 9 9 "requirementsTooltip": "Requires 4 new Town Phase structures (except Walls and Civic Centers).", 10 10 "supersedes": "phase_town_athen", 11 "replaces": ["phase_city"], 11 12 "icon": "city_phase.png", 12 13 "researchTime": 80, 13 14 "tooltip": "Advance to City Phase, which unlocks more structures and units. Territory radius for Civic Centers increased by another +50%. Silver Owls civ bonus grants an extra +10% metal gather rate to all workers.", 14 "modifications": [{"value": "ResourceGatherer/Rates/metal.ore", "multiply": 1.1} ],15 "affects": ["Worker" ],15 "modifications": [{"value": "ResourceGatherer/Rates/metal.ore", "multiply": 1.1}, {"value": "TerritoryInfluence/Radius", "multiply": 1.50}, {"value": "Health/Max", "multiply": 1.2, "affects": "CitizenSoldier"}], 16 "affects": ["Worker", "CivCentre", "Infantry", "Cavalry"], 16 17 "soundComplete": "interface/alarm/alarm_phase.xml" 17 18 } -
binaries/data/mods/public/simulation/data/technologies/phase_town.json
1 1 { 2 2 "genericName": "Town Phase", 3 "requirements": { "any": [{"tech":"phase_town_generic"}, {"tech":"phase_town_athen"}]}, 4 "autoResearch": true, 3 "specificName": { 4 "athen": "Komópolis", 5 "mace": "Komópolis", 6 "spart": "Komópolis" 7 }, 8 "description": "Advances from a small village to a bustling town, ready to expand rapidly.", 9 "cost": { "food": 800, "wood": 800, "stone": 0, "metal": 0 }, 10 "requirements": { "class": "Village", "number": 5 }, 11 "requirementsTooltip": "Requires 5 Village Phase structures (except Palisades and Farm Fields).", 12 "supersedes": "phase_village", 13 "icon": "town_phase.png", 14 "researchTime": 80, 15 "tooltip": "Advance to Town Phase, which unlocks more structures and units. Territory radius for Civic Centers increased by +30%", 5 16 "modifications": [{"value": "TerritoryInfluence/Radius", "multiply": 1.30}, 6 17 {"value": "Health/Max", "multiply": 1.2, "affects": "CitizenSoldier"}], 7 18 "affects": ["CivCentre", "Infantry", "Cavalry"], 8 "soundComplete": "interface/alarm/alarm_phase.xml", 9 "icon": "town_phase.png" 19 "soundComplete": "interface/alarm/alarm_phase.xml" 10 20 } -
binaries/data/mods/public/simulation/data/technologies/phase_town_athen.json
8 8 "requirements": { "class": "Village", "number": 5 }, 9 9 "requirementsTooltip": "Requires 5 Village Phase structures (except Palisades and Farm Fields).", 10 10 "supersedes": "phase_village", 11 "replaces": ["phase_town"], 11 12 "icon": "town_phase.png", 12 13 "researchTime": 80, 13 14 "tooltip": "Advance to Town Phase, which unlocks more structures and units. Territory radius for Civic Centers increased by +30%. 'Silver Owls' civ bonus grants an extra +10% metal gather rate to all workers.", 14 "modifications": [{"value": "ResourceGatherer/Rates/metal.ore", "multiply": 1.1} ],15 "affects": ["Worker" ],15 "modifications": [{"value": "ResourceGatherer/Rates/metal.ore", "multiply": 1.1}, {"value": "TerritoryInfluence/Radius", "multiply": 1.30}, {"value": "Health/Max", "multiply": 1.2, "affects": "CitizenSoldier"}], 16 "affects": ["Worker", "CivCentre", "Infantry", "Cavalry"], 16 17 "soundComplete": "interface/alarm/alarm_phase.xml" 17 18 } -
binaries/data/mods/public/simulation/helpers/Cheat.js
88 88 89 89 // get phase we want to go 90 90 var phaseToGo; 91 var version = "generic";92 91 var special; 93 92 if (!cmpTechnologyManager.IsTechnologyResearched("phase_town")) 94 93 { … … 109 108 110 109 // rewrite input and call function 111 110 input.action = "researchTechnology"; 112 input.parameter="phase_" + phaseToGo + "_" + version;111 input.parameter="phase_" + phaseToGo; 113 112 Cheat(input); 114 113 break; 115 114 case "researchTechnology": -
binaries/data/mods/public/simulation/templates/structures/athen_civil_centre.xml
15 15 units/{civ}_cavalry_javelinist_b 16 16 </Entities> 17 17 <Technologies datatype="tokens"> 18 -phase_town _generic18 -phase_town 19 19 phase_town_athen 20 -phase_city _generic20 -phase_city 21 21 phase_city_athen 22 22 </Technologies> 23 23 </ProductionQueue> -
binaries/data/mods/public/simulation/templates/structures/ptol_military_colony.xml
64 64 units/{civ}_cavalry_javelinist_merc_b 65 65 </Entities> 66 66 <Technologies datatype="tokens"> 67 -phase_town _generic68 -phase_city _generic67 -phase_town 68 -phase_city 69 69 </Technologies> 70 70 </ProductionQueue> 71 71 <Sound> -
binaries/data/mods/public/simulation/templates/structures/sele_military_colony.xml
63 63 units/{civ}_cavalry_spearman_merc_b 64 64 </Entities> 65 65 <Technologies datatype="tokens"> 66 -phase_town _generic67 -phase_city _generic66 -phase_town 67 -phase_city 68 68 </Technologies> 69 69 </ProductionQueue> 70 70 <Sound> -
binaries/data/mods/public/simulation/templates/template_structure_civic_civil_centre.xml
90 90 units/{civ}_support_female_citizen 91 91 </Entities> 92 92 <Technologies datatype="tokens"> 93 phase_town _generic94 phase_city _generic93 phase_town 94 phase_city 95 95 </Technologies> 96 96 </ProductionQueue> 97 97 <ResourceDropsite>