Skip to content

Commit

Permalink
v0.9.2: fixed save/load messing with the pacifist badge
Browse files Browse the repository at this point in the history
  • Loading branch information
00-Evan committed Feb 25, 2021
1 parent 94de68c commit 868b6d6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public static void reset() {
private static final String SPAWNERS = "spawnersAlive";

private static final String DURATION = "duration";

private static final String NO_KILLING_QUALIFIED = "qualifiedForNoKilling";

private static final String AMULET = "amuletObtained";

Expand All @@ -105,6 +107,8 @@ public static void storeInBundle( Bundle bundle ) {
bundle.put( SPAWNERS, spawnersAlive );

bundle.put( DURATION, duration );

bundle.put(NO_KILLING_QUALIFIED, qualifiedForNoKilling);

bundle.put( AMULET, amuletObtained );
}
Expand All @@ -125,6 +129,8 @@ public static void restoreFromBundle( Bundle bundle ) {
spawnersAlive = bundle.getInt( SPAWNERS );

duration = bundle.getFloat( DURATION );

qualifiedForNoKilling = bundle.getBoolean( NO_KILLING_QUALIFIED );

amuletObtained = bundle.getBoolean( AMULET );
}
Expand Down

0 comments on commit 868b6d6

Please sign in to comment.