Changeset View
Standalone View
binaries/data/mods/public/simulation/templates/template_structure_defensive_wall_tower.xml
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | <Entity parent="template_structure_defensive_wall"> | ||||
</GarrisonHolder> | </GarrisonHolder> | ||||
<Health> | <Health> | ||||
<Max>4000</Max> | <Max>4000</Max> | ||||
<SpawnEntityOnDeath>decay|rubble/rubble_stone_wall_tower</SpawnEntityOnDeath> | <SpawnEntityOnDeath>decay|rubble/rubble_stone_wall_tower</SpawnEntityOnDeath> | ||||
</Health> | </Health> | ||||
<Identity> | <Identity> | ||||
<GenericName>Wall Turret</GenericName> | <GenericName>Wall Turret</GenericName> | ||||
<SelectionGroupName>template_structure_defensive_wall_tower</SelectionGroupName> | <SelectionGroupName>template_structure_defensive_wall_tower</SelectionGroupName> | ||||
<Tooltip>Shoots arrows. Garrison to defend a city wall against attackers.</Tooltip> | <Tooltip>Garrison Infantry for additional arrows. Needs the “Murder Holes” technology to protect its foot.</Tooltip> | ||||
<Classes datatype="tokens">Tower</Classes> | <Classes datatype="tokens">WallTower</Classes> | ||||
Silier: Breaking: hq L1869
```let numTowers = gameState.getOwnEntitiesByClass("Tower", true).length; //… | |||||
Done Inline Actions
Does it?
Thanks, I'll insert a (ent.hasClass("WallTower") || .
WallTower is covered by StoneWall. Nescio: >Breaking: hq L1869
Does it?
> Breaking attackManager L478
Thanks, I'll insert a `(ent.hasClass… | |||||
Not Done Inline Actions
Yes, as ai would not build sentry towers with starting wall towers which can be garrisoned in case of being attacked so it can use resources elsewhere. Silier: >>Breaking: hq L1869
> Does it?
Yes, as ai would not build sentry towers with starting wall… | |||||
Done Inline ActionsSorry, I still don't quite understand. Nescio: Sorry, I still don't quite understand.
The `headquarters.js` file defines when to build what… | |||||
<Icon>structures/tower.png</Icon> | <Icon>structures/tower.png</Icon> | ||||
</Identity> | </Identity> | ||||
<Loot> | <Loot> | ||||
<stone>18</stone> | <stone>18</stone> | ||||
</Loot> | </Loot> | ||||
<Obstruction> | <Obstruction> | ||||
<ControlPersist/> | <ControlPersist/> | ||||
</Obstruction> | </Obstruction> | ||||
Show All 19 Lines |
Breaking: hq L1869
Also I think wall tower not having class Tower is a bit weird as it clearly is a tower.
Breaking attackManager L478
Breaking attackPlan L1439