|Values:||Percentages: Either a direct percentage (e.g. "50%"), or a floating point value (e.g. "0.5").|
The cost to recover 1:hitpoints every minutes can be calculated by the following formula
"repair step cost" = RepairPercent * ( Cost / ( Strength / RepairStep) )
If the result is a floating point value, all decimal places are ignored. Also, if the result is less than 1, it is bumped up to 1.
1 ↑ The division done in this formula is integer division, which means that any decimal places will be knocked off; i.e. 5/2 = 2, not 2.5.
- Relevant pseudocode is available at http://dc.strategy-x.com/src2/TechnoTypeClass/GetRepairStepCost.cpp.