ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "DamageReducesReadiness"
From ModEnc
EvilRenegade (talk | contribs) m (Replacing Template:TTL with Template:F.) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Flag |
− | + | |values={{Values|bool}} | |
+ | |default=no | ||
+ | |types={{CatAllTypes}} | ||
+ | |ra2=yes | ||
+ | |yr=yes | ||
+ | |rp=yes | ||
+ | }} | ||
+ | |||
+ | This flag must be set to <code>yes</code> on a unit which has {{f|ReadinessReductionMultiplier|link}} set to a [[Help:Values#Floating_Point_Values|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 {{f|Ammo|link}} set to an [[Help:Values#Integers|integer]] other than -1 (unlimited ammo). | ||
+ | |||
+ | The amount of ammo that is removed when the unit takes damage is determined by {{f|ReadinessReductionMultiplier|link}}. | ||
+ | |||
+ | ==Resources== | ||
+ | * {{SourceCode|http://dc.strategy-x.com/src2/TechnoClass/Ammo.cpp}} | ||
+ | |||
+ | ==See also== | ||
+ | * {{f|Ammo|link}} | ||
+ | * {{f|InitialAmmo|link}} | ||
+ | * {{f|Reload|link}} | ||
+ | * {{f|EmptyReload|link}} | ||
+ | * {{f|ReloadIncrement|link}} |
Latest revision as of 09:51, 27 November 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 ReadinessReductionMultiplier 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 Ammo set to an integer other than -1 (unlimited ammo).
The amount of ammo that is removed when the unit takes damage is determined by ReadinessReductionMultiplier.
Resources
- Relevant pseudocode is available at http://dc.strategy-x.com/src2/TechnoClass/Ammo.cpp.