v0.9.0: fixed HP errors when game is loaded while hero is degraded

This commit is contained in:
Evan Debenham
2020-09-28 01:18:25 -04:00
parent c34c3cf82e
commit 846a6f34eb
@@ -256,6 +256,12 @@ public class Hero extends Char {
@Override
public void restoreFromBundle( Bundle bundle ) {
lvl = bundle.getInt( LEVEL );
exp = bundle.getInt( EXPERIENCE );
HTBoost = bundle.getInt(HTBOOST);
super.restoreFromBundle( bundle );
heroClass = HeroClass.restoreInBundle( bundle );
@@ -266,12 +272,7 @@ public class Hero extends Char {
defenseSkill = bundle.getInt( DEFENSE );
STR = bundle.getInt( STRENGTH );
lvl = bundle.getInt( LEVEL );
exp = bundle.getInt( EXPERIENCE );
HTBoost = bundle.getInt(HTBOOST);
belongings.restoreFromBundle( bundle );
}