Jump to content

WX78 has 200 max sanity


Crestwave
  • Fixed

The lines initializing WX's stats were removed in the refresh due to their ties to the old upgrade mechanism, and were not replaced.

    inst.components.hunger.max = math.ceil(TUNING.WX78_MIN_HUNGER + inst.level * (TUNING.WX78_MAX_HUNGER - TUNING.WX78_MIN_HUNGER) / max_upgrades)
    inst.components.health.maxhealth = math.ceil(TUNING.WX78_MIN_HEALTH + inst.level * (TUNING.WX78_MAX_HEALTH - TUNING.WX78_MIN_HEALTH) / max_upgrades)
    inst.components.sanity.max = math.ceil(TUNING.WX78_MIN_SANITY + inst.level * (TUNING.WX78_MAX_SANITY - TUNING.WX78_MIN_SANITY) / max_upgrades)

Because of this, their stats were automatically set to default, which includes a max sanity of 200.
Tuning vars and the compendium still list WX's max sanity as 150.


Steps to Reproduce

1. Go in-game as WX and note the max sanity of 200

2. Open tuning.lua/the compendium and note the max sanity of 150

3. Open prefabs/wx78.lua and note that their stats are not being set

  • Like 2



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...