Re: File Annotation Project
gate_defences, hasn't that got to do with whether the wall level has reinforced gates or not?
Re: File Annotation Project
My experience tinkering with building effects led to these conclusions:
Construction time bonuses (and presumably cost as well) are 1% per point. construction_time_bonus_defensive 50 will reduce the building time for defensive buildings (what counts as a defensive, religious, etc building?) by 50%. The game also "always rounds up," so to speak. A 90% decrease on a 4 turn building will result in the building still taking 1 turn to build. You'll notice the same thing occurs with the Halicarnassus wonder and its 20% construction time bonus. Anything that takes fewer than 5 turns to build is unaffected (4 turns - 20% = 3.2, which "rounds up" to 4).
Weapon and armour upgrade bonuses have a maximum of 3. No matter how many buildings add bonuses of whatever size, the end result is a bonus of 3. The unit recruitment screen says otherwise, but when you actually build the unit it'll only have a +3 bonus. Also, I think I read somewhere that you can put negative values but they'll only negate positive ones. For example, a weapon bonus of -1 will have no effect if no other building gives a bonus, but if another building gives a bonus it'll decrease that bonus by 1.
Note that the upgrade maximum also makes the Awesome and Pantheion level Artemis temples useless. They grant a +4 and +5 bonus respectively, but any unit you (re)train will only actually get +3.
I hope that helps a little bit. Feel free to test those effects yourself if you want to be absolutely certain.
Re: File Annotation Project
I'd agree it would be good to have more comprehensive (and accurate) narrative, but would it not be easier to compile into a modding manual which can be regularly updated than amend every single mod's files?
Re: File Annotation Project
No,
The reinforcement level of gates is defined in gate_strength; gate_defences would refer to scorched sand/boiling oil which (I think) is 1 and 2 respectively.
tower_level seems to vary from 1 (arrow towers) to ballista towers (2) but one assumes watchtowers must be in their somewhere? I did not test forts - do they have watchtowers rather than arrows towers?
wall_level is
0 - palisade (ram hit = 8% damage)
1 - wooden_wall (ram hit = 4% damage)
2 - stone_wall (not rammable)
3 - large_stone_wall (not rammable)
4 - epic_stone_wall (not rammable)
gate_strength is
0 - wooden (ram hit = 10% damage)
1 - reinforced (6-7% damage)
2 - iron-bound (or Iron Gates?) (5% damage)
However, gate_strength 2 was only 4% damage with a ram when I had epic walls despite still having a value of 2.
I think there's more to it than my simple (and not thoroughly tested) examples above.
But back to annotation....yes, I think it's a great idea!
I've already worked on some values for the well-known export units file if you want them.