Recovery time

From UFOpaedia
Revision as of 06:19, 11 September 2007 by Zombie (talk | contribs) (→‎Examples: Cut width down.)
Jump to navigation Jump to search

When a soldier is injured in combat, the soldier is put off duty and goes on medical leave for a certain recovery time which is calculated as a number of days. Sometimes the number can be ridiculously high, and at other times it may appear to not even exist. If injured troopers are assigned to a transport, they will be removed. Once the soldier has healed, they'll go back on duty, but must be manually reassigned to a transport. The amount of time remaining for an injured soldier to return is updated at midnight on each day.

Formula

The number of days a soldier will spend in recovery ranges randomly according to the following formulas:

Min Days = INT(Health Lost × 0.5) to
Max Days = INT(Health Lost × 1.5)

Note that any fractions in the final number will be rounded down (hence the INT). See the table below for some examples of the results of this formula.

Examples

Health Lost Min days Max days
101
10515
11516
201030
402060
592988
254127381

Notice how odd numbers have the fraction rounded down to the nearest integer, i.e. 11 would be 5.5 to 16.5 without rounding, but both the remainders are truncated to give the 5 to 16 shown above.

Also, for players that like to cheat, as you can see with the final example, with power comes a price and with ultimate power comes the ultimate price.

See Also

Health