From ad61f4a16a06039848c2e235860eb6cb213c3313 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 24 Dec 2015 19:53:29 -0500 Subject: [PATCH] v0.3.3a: added a little holiday treat ;) --- assets/items.png | Bin 13074 -> 13243 bytes .../items/food/Pasty.java | 73 +++++++++++++++++- .../sprites/ItemSpriteSheet.java | 1 + 3 files changed, 70 insertions(+), 4 deletions(-) diff --git a/assets/items.png b/assets/items.png index 2836f8357bd5e1a1d285e2518595b2cb9e157e6e..471ea791b1f515acde73c7d56468a6e6be1554a1 100644 GIT binary patch literal 13243 zcmbWecT`hN*FHQcgkGdbFNzdVnt=2qC<-bF-he2@Ac`Pe=>kb;Vg-~cEm4%Jf=E$7 z5<~?=iqb@o1f?k@k(xkAe(`>u_x;xIpKq=2o3nDxK701eWSu!P*?V7CZaSW{5f+dW z000Odv$g&Q00>uv06qlw;&HY768FL%YI`;e06~er9|*`Vl;J9Q!;je?;iU-40uAU& z&Td|=3gLai#u{+`9>h0gnE)8r9<#P`j{de-B$%b>lTAY@E}0O?Dn#+!)sQ_ZZ4W-s z`_b1^cOB9Z^CIeNA}W#_zeuQv+a|T>z)M;lr;2sLOQ1LNPV+6FRPpk=!{2G=_2G7t zS*R85$D`-(O$15q&6^9qJt@oym)SyO{Q9|hQf2Q2LZwp~mJ@=*Sf+_7sO}YaFw!C< zCGFbJ@31$T7lC+epVQY>oSW7^r4jTzBjc8d$?sj8%s!k>#BvJbUP!S{#MQR>M2a`` z99`Z{C5CN&sMu`s=koo%u~Ug1^p-^sX_>)Y`((~q-#E!g>YjB59|51V-3EnVE#cyFDj#r-^p4-IwP=MDW32eyA5kq$UwN7Sh% zkuaNbpvBb)$jS_YsRGxFjvJ9t)BlcDKOX%h2H)h%`SY5pKT~k7gbCJ)JtZ!c{Cg+( zwJcoaxM)(%1FMos;Q-ao$IG8seUpm+dDr+{i2w`gl5dlP8_7j!Tj}6)_n*DrCX!Ln z#9HnyVhWP3MI*LqUlXba3NtsNMKu%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S$njCU~;wGfaQ4Fs_95@^?=}3#{{^$a337HUw zuIS;vjC?U_YOs^*tpP~w0k>2 zmZp0ZtlGv0q!ZFA<326s*}pGOP*&10W3c`OipNyU0-bpRCUY$tPsI5Frnt9SM<~3H zHLm;#i~uF#Wc)wS^V6^1UjV!LxaA#Ux%6XPY(0X&507m{Y&VGKg8_H#eD=FGbx^Da ziKY(Cz(`P;2Y``3f<-m7z|<_<{wIG-RqN zp)Zgi9nSfNrd$F~Tw%W9sC7*r7(XgQ%L)3B-#q6LAfwU`p2re5RVm(*Ds-V6uu*6{ z07f`ZDw%2or-bl-gSrC(s|5HP@E>)&uO8{gJUEuzad`hTA<_six&B*4MNo9ZaW@^B z(MkT&`XYrYhs_t-F)Eyvaj)8(4K+*{IfaQR)PQU*$&?fTdH5146|8KbU|3~#m8c%GG Yu1q6|5X|KNc?BFkc>KVN{oV=x3xbB1s{jB1 diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java index cb0e077bb..b281331be 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java @@ -20,23 +20,88 @@ */ package com.shatteredpixel.shatteredpixeldungeon.items.food; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Hunger; +import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; +import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; +import java.util.Calendar; + public class Pasty extends Food { + //TODO: implement fun stuff for other holidays + //TODO: probably should externalize this if I want to add any more festive stuff. + private enum Holiday{ + NONE, + EASTER, //TBD + HALLOWEEN,//TBD + XMAS //3rd week of december through first week of january + } + + private static Holiday holiday; + + static{ + final Calendar calendar = Calendar.getInstance(); + holiday = Holiday.NONE; + //we add 1 to turn it into standard calendar months (1-12 instead of 0-11) + switch(calendar.get(Calendar.MONTH)+1){ + case 1: + if (calendar.get(Calendar.WEEK_OF_MONTH) == 1){ + holiday = Holiday.XMAS; + } + break; + case 12: + if (calendar.get(Calendar.WEEK_OF_MONTH) >= 3){ + holiday = Holiday.XMAS; + } + break; + } + } + { - name = "pasty"; - image = ItemSpriteSheet.PASTY; + + switch(holiday){ + case NONE: + name = "pasty"; + image = ItemSpriteSheet.PASTY; + break; + case XMAS: + name = "candy cane"; + image = ItemSpriteSheet.CANDY_CANE; + break; + } + energy = Hunger.STARVING; hornValue = 5; bones = true; } - + + @Override + public void execute(Hero hero, String action) { + super.execute(hero, action); + if (action.equals(AC_EAT)){ + switch(holiday){ + case NONE: default: + break; //do nothing extra + case XMAS: + Buff.affect( hero, ScrollOfRecharging.Recharging.class, 2f ); //half of a charge + ScrollOfRecharging.charge( hero ); + break; + } + } + } + @Override public String info() { - return "This is authentic Cornish pasty with traditional filling of beef and potato."; + switch(holiday){ + case NONE: default: + return "This is authentic Cornish pasty with traditional filling of beef and potato."; + case XMAS: + return "A huge sugary sweet candy cane! It's big enough to fill you up, " + + "and the sugar might give your wands a tiny bit of extra charge too.\n\nHappy Holidays!"; + } } @Override diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java b/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java index 9d4d306ac..ad3201d37 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java @@ -220,6 +220,7 @@ public class ItemSpriteSheet { public static final int BLANDFRUIT = ROW13+4; public static final int RATION = ROW13+5; public static final int PASTY = ROW13+6; + public static final int CANDY_CANE = ROW13+7; //Row Fourteen: Quest Items public static final int SKULL = ROW14+0;