[1.7.4] Spacetime Tuning oversight

Make all T-Engine/ToME 4 bug reports here

Moderator: Moderator

Post Reply
Message
Author
Tradewind_Rider
Thalore
Posts: 182
Joined: Sat Oct 05, 2019 8:55 pm

[1.7.4] Spacetime Tuning oversight

#1 Post by Tradewind_Rider »

The code do not handle well paradox tuning in all cases:

https://git.net-core.org/tome/t-engine4 ... er.lua#L46

if math.abs(paradox - self.preferred_paradox) > 1 then

This means, the paradox tuning only occurs, if the difference of the actors paradox vs the preferred value if larger than 1.

The problem is: paradox costs & reductions are not integer values.

So sometimes it can happen, the player has 299.37 paradox with a preferred paradox of 300.
The tuning does not happen, and the duration extension from paradox modifier rounds down, so all the
players' durations are reduced...

The player has to cast something, to have a paradox value between 300 and 310 in order to have their paradox tuned back to it's preferred value.


Imo this line should be:

if math.abs(paradox - self.preferred_paradox) > 0 then

Post Reply