ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "DamageReducesReadiness"
From ModEnc
(De-DZed) |
(→See also) |
||
Line 16: | Line 16: | ||
==See also== | ==See also== | ||
− | *{{TTL|InitialAmmo}} | + | * {{TTL|Ammo}} |
− | *{{TTL|Reload}} | + | * {{TTL|InitialAmmo}} |
− | *{{TTL|EmptyReload}} | + | * {{TTL|Reload}} |
− | *{{TTL|ReloadIncrement}} | + | * {{TTL|EmptyReload}} |
+ | * {{TTL|ReloadIncrement}} |
Revision as of 15:39, 3 January 2009
Flag: | DamageReducesReadiness |
File(s): | rules(md).ini |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Default: | no |
Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes |
This flag must be set to yes
on a unit which has Template:TTL set to a floating point value greater than 0, in order to have its ammunition supply reduced when taking damage. This is only applicable to units that have Template:TTL set to an integer other than -1 (unlimited ammo).
The amount of ammo that is removed when the unit takes damage is determined by Template:TTL.
Resources
- Relevant pseudocode is available at http://dc.strategy-x.com/src2/TechnoClass/Ammo.cpp.