Problem when levelling up while using Seethe

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Calabria
Cornac
Posts: 33
Joined: Mon Apr 23, 2012 11:50 am

Problem when levelling up while using Seethe

#1 Post by Calabria »

With the new-ish Seethe, if you activate Seethe and then use the level-up dialog, Seethe deactivates and then activates, which results in halving your Hate total again (if you are at level 1 of Seethe).

I looked into fixing this. tome.class.Actor.forceUseTalent is a key function, called by LevelupDialog at the appropriate time, with lots of flags to ignore various pre-conditions. But the relevant information that the talent is just being refreshed is not passed down to the talents activate function, which is really the relevant place to put any code that would ignore the hate loss, and it seems wrong to put special code for this into Actor.lua. Is it OK to add an extra argument to the activate method? Another possibility would be to add a 'reactivate' method that normally just calls deactivate and then activate, but in this case would be overloaded. Or is there some simpler solution?

Calabria
Cornac
Posts: 33
Joined: Mon Apr 23, 2012 11:50 am

Re: Problem when levelling up while using Seethe

#2 Post by Calabria »

OK, here's a diff (attached), following some input from DarkGod.
Attachments
seethe.txt
Diff to fix levelling with Seethe
(2.43 KiB) Downloaded 107 times

Post Reply