Player can now level up on attacking/counterattacking.
Player will go through the graphical level up system (regardless if they needed to discard an item or not). This was a bug I discovered earlier, where the unit's turn will end of they don't have a full inventory, causing the level up to happen internally, but not graphically.
To test the above, go ahead and have the unit have a full inventory, and level up on counterattacks/attacks. Then try it without a full inventory.
Updated base_player to keep track of bonuses, as well as allowing the player to level up their HP.
Implemented entire graphical level up flow.
NOTE: I've edited the computeExperience function to always return 100 exp for testing. I've also edited the percentage at which the player's stats will increase within base_player. Once this is merged, please revert these back.
This pull request implements the graphical level up system. You will need the latest media from: https://bitbucket.org/chessmasterhong/wateremblem-media/downloads
To highlight some changes:
base_player
to keep track of bonuses, as well as allowing the player to level up their HP.NOTE: I've edited the
computeExperience
function to always return 100 exp for testing. I've also edited the percentage at which the player's stats will increase withinbase_player
. Once this is merged, please revert these back.All that is left is to hook in the EXP bar.