====== Pasty Item - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/food/Pasty.java|Pasty.java]] ===== JSON Configuration ===== This entity is implemented in Java, no JSON configuration exists ===== String Resources ===== pasty This is an authentic Cornish pasty with the traditional filling of beef and potato. Rotten pasty This pasty looks quite nasty. pasty This is an authentic Cornish pasty with the traditional filling of beef and potato. ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Special Properties ===== * Restores full hunger (Hunger.STARVING amount of energy) * Price is 25 gold per item * Can morph into RottenPasty when exposed to gas * Sprite reference: ItemSpriteSheet.PASTY (ID: 112) * PseudoPasty and RottenPasty variants exist * Sometimes found as loot in levels ===== Source Code Reference ===== * energy = Hunger.STARVING in constructor * morphTo(RottenPasty.class) method implements poisoning behavior * price() method returns 25 * quantity()