http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=998
--- Comment #2 from Bob the Hamster <[email protected]> 2014-07-08 10:46:59 PDT --- I noticed this comment in bmod.rbas: SUB battle_cleanup(byref bat as BattleState, bslot() as BattleSprite) 'FIXME: writestats is called from different places depending on whether you win or not. Unify IF bat.have_written_stats = NO THEN writestats bslot() Which I traced to revision 4264 ------------------------------------------------------------------------ r4264 | teeemcee | 2011-05-01 02:09:46 -0700 (Sun, 01 May 2011) | 4 lines Customisable percentage of normal XP given to heroes not in the active party. I had to move writestats earlier when victory happens. This led to some cleanup of the levelup code, but means there are two different writestats calls. That needs cleaning later. Note that this changes the behaviour of herolevelled and spellslearned. Previously those were not reset for reserve heroes when a battle occurs, but now they are. I think it's pretty unlikely that anyone was relying on this. ------------------------------------------------------------------------ My plan is to call this frequently in battle, but that comment makes me think there is some reason why it would be bad to call it more than once. TMC, do you remember any reason for that that I might be forgetting? -- Configure bugmail: http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
