From 0f30fb19ce58b4b2a91c02332eae3119e9bf37c1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 5 Nov 2016 03:06:38 -0400 Subject: [PATCH] v0.4.3b: fixed bugs with cornish pasty holiday values --- .../shatteredpixeldungeon/items/food/Pasty.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java index 537a88493..145c0b226 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java @@ -45,11 +45,11 @@ public class Pasty extends Food { private static Holiday holiday; static{ + + holiday = Holiday.NONE; + final Calendar calendar = Calendar.getInstance(); switch(calendar.get(Calendar.MONTH)){ - default: - holiday = Holiday.NONE; - break; case Calendar.JANUARY: if (calendar.get(Calendar.WEEK_OF_MONTH) == 1) holiday = Holiday.XMAS; @@ -98,7 +98,7 @@ public class Pasty extends Food { if (action.equals(AC_EAT)){ switch(holiday){ - case NONE: default: + case NONE: break; //do nothing extra case HWEEN: //heals for 10% max hp