[1.7.4][Embers of Rage 1.1.10] Mecharachnid resurrection life percentage mistake

Make all T-Engine/ToME 4 bug reports here

Moderator: Moderator

Post Reply
Message
Author
ScienceBall
Higher
Posts: 70
Joined: Thu Jun 10, 2021 12:58 pm

[1.7.4][Embers of Rage 1.1.10] Mecharachnid resurrection life percentage mistake

#1 Post by ScienceBall »

The Mecharachnid talent can be used to resurrect the mecharachnid with a certain percentage of its maximum life. The function giving this percentage is as follows:

Code: Select all

getPower = function(self, t) return (60 + self:combatTalentSteamDamage(t, 15, 450)) / 7, 7, self:combatTalentLimit(t, 100, 27, 55) end, --Limit life gain < 100%
This function returns three values, but all the code that calls getPower only uses the first value. I'm guessing that the three values are meant to be wrapped in a util.bound call.

Supporting evidence for this code being bugged is that the comment says "Limit life gain < 100%" and yet (according to Tometips) the percentage can go over 100%.

Post Reply