Also endless rest seems to appear on possessed bodies with equilibrium. UPD: But only on them, which have negative equilibrium regen. UPD2: as well, endless rest shows when body has psi regen boost.
UPD3: I think that I'm found cause of endless loop. The answer is when equilibrium user body is possessed, it often has positive steam regen. While my character haven't. Therefore my steam always on 0 of a max 100 and positive regen. Never filled resource.
The solution:
In the superload/mod/class/Player.lua
Add here check if we have steam resource bar available
Code: Select all
if self.steam and self.steam < self.max_steam and self.steam_regen > 0 then
The new one:
Code: Select all
if self.steam and self.steam < self.max_steam and self.steam_regen > 0 and self.knowTalent and self:knowTalent(self.T_STEAM_POOL) then
Thanks Hachem_Muche, asleepInferno and StarKeep for point out how to check steam bar.
Also fix for vim/light/paradox:
Replace this
To this
Code: Select all
if not res_def.invert_values and not res_def.switch_direction then