Ticket #3707: gate.patch
File gate.patch, 5.5 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/globalscripts/Templates.js
265 265 if (template.WallPiece) 266 266 ret.wallPiece = {"length": +template.WallPiece.Length}; 267 267 268 if (template.Gate) 269 ret.gate = true; 270 268 271 return ret; 269 272 } 270 273 -
binaries/data/mods/public/gui/common/tooltips.js
279 279 280 280 let totalCosts = multiplyEntityCosts(template, trainNum); 281 281 totalCosts.time = Math.ceil(template.cost.time * (entity ? Engine.GuiInterfaceCall("GetBatchTime", { "entity": entity, "batchSize": trainNum }) : 1)); 282 // build time does not apply for gates (conversion of walls) 283 if (template.gate) 284 totalCosts.time = 0; 282 285 283 286 let costs = []; 284 287 if (totalCosts.food) costs.push(sprintf(translate("%(component)s %(cost)s"), { "component": getCostComponentDisplayName("food"), "cost": totalCosts.food })); -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall.xml
1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Entity parent="template_structure_defense"> 3 3 <BuildRestrictions> 4 4 <PlacementType>land-shore</PlacementType> 5 5 <Category>Wall</Category> 6 6 </BuildRestrictions> 7 7 <Capturable disable=""/> 8 <Repairable> 9 <RepairTimeRatio>4.5</RepairTimeRatio> 10 </Repairable> 8 11 <Cost> 9 12 <BuildTime>25</BuildTime> 10 13 <Resources> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall_gate.xml
9 9 <Category>Wall</Category> 10 10 </BuildRestrictions> 11 11 <Capturable disable=""/> 12 <Repairable> 13 <RepairTimeRatio>4.5</RepairTimeRatio> 14 </Repairable> 12 15 <Cost> 13 <BuildTime> 0</BuildTime>16 <BuildTime>45</BuildTime> 14 17 <Resources> 15 18 <stone>50</stone> 16 19 </Resources> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall_long.xml
1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Entity parent="template_structure_defense_wall"> 3 3 <Armour> 4 4 <Hack>18.0</Hack> 5 5 <Pierce>40.0</Pierce> 6 6 <Crush>4.0</Crush> … … 26 26 </Resources> 27 27 </Cost> 28 28 <Health> 29 29 <SpawnEntityOnDeath>rubble/rubble_stone_wall_long</SpawnEntityOnDeath> 30 30 </Health> 31 31 <GarrisonHolder> 32 32 <Max>5</Max> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall_medium.xml
22 22 <Cost> 23 23 <BuildTime>30</BuildTime> 24 24 <Resources> 25 25 <stone>22</stone> 26 26 </Resources> 27 27 </Cost> 28 28 <GarrisonHolder> … … 46 46 </GarrisonHolder> 47 47 <Health> 48 48 <Max>2000</Max> 49 49 <SpawnEntityOnDeath>rubble/rubble_stone_wall_medium</SpawnEntityOnDeath> 50 50 </Health> 51 51 </Entity> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall_short.xml
13 13 </Cost> 14 14 <Health> 15 15 <Max>1000</Max> 16 16 <SpawnEntityOnDeath>rubble/rubble_stone_wall_short</SpawnEntityOnDeath> 17 17 </Health> 18 18 </Entity> -
binaries/data/mods/public/simulation/templates/template_structure_defense_wall_tower.xml
29 29 <Category>Wall</Category> 30 30 </BuildRestrictions> 31 31 <Capturable disable=""/> 32 <Repairable> 33 <RepairTimeRatio>4.5</RepairTimeRatio> 34 </Repairable> 32 35 <Cost> 33 36 <BuildTime>80</BuildTime> 34 37 <Resources>