Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
RM2k Battle fixes - turns and action switches #1419
This PR fixes some bugs in the rm2k battle system. It resolves some of the issues in #985 and makes hh3 playable past the intro (before the battle was impossible to lose).
I don't believe any of these code changes touch 2k3 but I haven't tested that.
I think the increment is in the wrong place. Before it changed after selecting all actions but before actually running them. The result is that enemy actions that are conditional on turns that are off by one but troop pages that are conditional on turns are correct.
I can look at moving it forward to before selecting any actions. Just need to be careful not to mess up the special "turn 0" which can be used to trigger troop pages at the beginning of the battle.