OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: wcho035 on July 02, 2020, 07:25:25 pm

Title: [Solved] manaRecoveryPerDay: -1 weird issue.
Post by: wcho035 on July 02, 2020, 07:25:25 pm
Hi, with manaRecoveryPerDay: -1 attached to a facility in facility.rul

I am encountering this weird issue where I can't transfer any soldier to a craft.

Why is this? Please see screen shot.

The first day when a soldier was hired. The Woundrecovery to infinity would never shows.

However, after it will after the first day he or she is hired.

Is the manaRecoveryPerDay: -1  still supported? Or there's something else that causes it? I have cut out all the scripts from my mod in testing, it is only when manaRecoveryPerDay: -1 this occurs.

Title: Re: manaRecoveryPerDay: -1 weird issue.
Post by: Meridian on July 03, 2020, 04:33:12 pm
If the soldier exceeds the missing mana threshold, it will count as wounded... and won't be able to go to a mission.

The threshold is 200 by default and can be modded.
Title: Re: manaRecoveryPerDay: -1 weird issue.
Post by: wcho035 on July 03, 2020, 07:40:57 pm
Is this feature is a recent addition. woundThreshold:

I have never seen it before.

I use negative manaRecoveryPerDay: -1 as a counter to measure a clone soldier aging. Soldiers before transformation are not declare with mana, only after transformation they are.

1) How can I allow a vanilla soldier type (Without transformation) that's without mana stats not to be affected by this missing mana threshold? If this is possible?

2) If not, then a default value is needed for the soldier's mana stats during its creation in the game. What value I can used for woundThreshold: so a vanilla soldier type with minimum mana value can stay forever and not affected by Woundrecovery?

Thanks.

A contributor has put in a lot of time to enable of this feature to work in my mod. I do not wish to see this feature disabled, for his sake.
Title: Re: manaRecoveryPerDay: -1 weird issue.
Post by: Meridian on July 03, 2020, 08:06:50 pm
The threshold is 200 by default and can be modded.
Title: Re: manaRecoveryPerDay: -1 weird issue.
Post by: wcho035 on July 03, 2020, 09:06:46 pm
Alright, then would the threshold support negative values?
Title: Re: manaRecoveryPerDay: -1 weird issue.
Post by: Meridian on July 03, 2020, 09:28:02 pm
You need a positive threshold to solve your issue, not negative.
Title: Re: manaRecoveryPerDay: -1 weird issue.
Post by: wcho035 on July 04, 2020, 05:42:53 am
Thanks Capability restored.