OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Nerva on December 10, 2016, 12:54:50 am

Title: Option for Energy Recovery based on total TU’s, not recruit TU’s.
Post by: Nerva on December 10, 2016, 12:54:50 am
According to the wiki, the game determines a soldier's Energy Recovery rate based on their TU's when they were recruited, so the recovery rate is fixed.   It seems logical to me for the rate to reflect the improved TU's instead.   I'd like it to be an option in the game settings.
Title: Re: Option for Energy Recovery based on total TU’s, not recruit TU’s.
Post by: Meridian on December 10, 2016, 01:42:51 am
This can be modded in OXCE/OXCE+ if you're interested.
Title: Re: Option for Energy Recovery based on total TU’s, not recruit TU’s.
Post by: Solarius Scorch on December 10, 2016, 01:15:15 pm
X-Com Files actually makes Stamina recovery dependant on Health, not TUs (following Piratez as an example). Which personally I consider a more logical approach. Yes, if you get high TUs and low Health, the soldier will tire fast, but that only means you need to send them to a gym or something. Additionally, it actually depends on current Health, not maximum Health, which means wounded characters get winded much faster.

Here's the code for it (in armours), works only for OXCE and OXCE+:

Code: [Select]
    recovery:
      energy:
        flatHundred: 0.1
        healthCurrent: 0.25

I'm fairly sure you could do something with TUs instead of Health, if you'd like.