v0.9.2: fixed save/load messing with the pacifist badge

This commit is contained in:
Evan Debenham 2021-02-21 16:56:26 -05:00
parent 94de68caad
commit 868b6d6995

View File

@ -87,6 +87,8 @@ public class Statistics {
private static final String DURATION = "duration"; private static final String DURATION = "duration";
private static final String NO_KILLING_QUALIFIED = "qualifiedForNoKilling";
private static final String AMULET = "amuletObtained"; private static final String AMULET = "amuletObtained";
public static void storeInBundle( Bundle bundle ) { public static void storeInBundle( Bundle bundle ) {
@ -106,6 +108,8 @@ public class Statistics {
bundle.put( DURATION, duration ); bundle.put( DURATION, duration );
bundle.put(NO_KILLING_QUALIFIED, qualifiedForNoKilling);
bundle.put( AMULET, amuletObtained ); bundle.put( AMULET, amuletObtained );
} }
@ -126,6 +130,8 @@ public class Statistics {
duration = bundle.getFloat( DURATION ); duration = bundle.getFloat( DURATION );
qualifiedForNoKilling = bundle.getBoolean( NO_KILLING_QUALIFIED );
amuletObtained = bundle.getBoolean( AMULET ); amuletObtained = bundle.getBoolean( AMULET );
} }