Difference between revisions of "Recovery time"

From UFOpaedia
Jump to navigation Jump to search
Line 17: Line 17:
  
 
∴ Bed Rest is a random number between 50% or 150% of your lost healh.
 
∴ Bed Rest is a random number between 50% or 150% of your lost healh.
 +
 +
'''Total Days in Bed''' = INT( ('''Lost Health''' ÷ 2) + (RND × '''Lost Health''') )
 +
 +
''Where "RND" is a random number between 0 and 1''
  
 
= Example =
 
= Example =

Revision as of 00:41, 21 November 2005

Overview

When a soldier gets injured in combat, the soldier is put off duty and goes on medical leave for a certain number of days. Sometimes the number of days 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 will not be assigned to any transports.


Formula

The amount of possible recovery time can be determined with the following formula:

Recovery Time Range = INT( Lost Health ± (Lost Health ÷ 2) ) 

or to put it another way

Minimum Days in Bed = INT( Lost Health - (Lost Health ÷ 2) )
Maximum Days in Bed = INT( Lost Health + (Lost Health ÷ 2) )

The game then rolls a random number between the minimum and maximum values. The result will be how many days your soldier ends up staying in bed. Note that any remaining fractions after the values have been calculated will be discarded.

∴ Bed Rest is a random number between 50% or 150% of your lost healh.

Total Days in Bed = INT( (Lost Health ÷ 2) + (RND × Lost Health) )

Where "RND" is a random number between 0 and 1

Example

  • Soldier A ends the mission with 10 lost hit points. Soldier A will need to stay in bed between 5 to 15 days.
  • Soldier B loses 50 hit points. Soldier B will have to stay in bed anywhere between 25 to 75 days.
  • Soldier C loses 59 hit points. Soldier C will have to stay in bed between 29 to 88 days.
  • Genetically mutated über soldier D with 254 lost hitpoint (of 255) will stay in bed for a grand total of 127 to 381 days. With power comes a price. With ultimate power comes the ultimate price.

See Also

Health