aliens

Author Topic: [Solved] manaRecoveryPerDay: -1 weird issue.  (Read 2512 times)

wcho035

  • Guest
[Solved] manaRecoveryPerDay: -1 weird issue.
« 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.

« Last Edit: February 12, 2023, 10:24:24 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: manaRecoveryPerDay: -1 weird issue.
« Reply #1 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.

wcho035

  • Guest
Re: manaRecoveryPerDay: -1 weird issue.
« Reply #2 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.
« Last Edit: July 03, 2020, 07:45:47 pm by Precentor Apollyon »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: manaRecoveryPerDay: -1 weird issue.
« Reply #3 on: July 03, 2020, 08:06:50 pm »
The threshold is 200 by default and can be modded.

wcho035

  • Guest
Re: manaRecoveryPerDay: -1 weird issue.
« Reply #4 on: July 03, 2020, 09:06:46 pm »
Alright, then would the threshold support negative values?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: manaRecoveryPerDay: -1 weird issue.
« Reply #5 on: July 03, 2020, 09:28:02 pm »
You need a positive threshold to solve your issue, not negative.

wcho035

  • Guest
Re: manaRecoveryPerDay: -1 weird issue.
« Reply #6 on: July 04, 2020, 05:42:53 am »
Thanks Capability restored.