en:rpd:pumpkin_pie_item
Table of Contents
Pumpkin Pie
Description
A delicious pumpkin pie, perfect for special occasions. This food item is a seasonal treat that restores your hunger completely.
Stats
- Nutrition Value: Restores complete hunger (Hunger.STARVING amount = 395 units)
- Energy: Hunger.STARVING (completely satiates hunger to maximum level)
- Price: 30 gold per pie (30 * quantity())
- Image: Index 9 in food.png sprite sheet
- Sprite File: items/food.png (defined in imageFile variable)
- Type: Food item (inherits from Food class)
Mechanics
- Satiates Hunger: Completely restores the hunger bar when consumed (equivalent to Hunger.STARVING units)
- Spoilage: Can spoil and turn into Rotten Pumpkin Pie over time (standard food spoilage mechanics)
- Transformation: When poisoned, transforms into Rotten Pumpkin Pie using poison() method
- Pricing: Price is calculated as 30 * quantity() in the price() method
Code References
- Java Class: PumpkinPie.java
- Constructor Implementation: PumpkinPie.java#L7-L11 - Sets image, energy, and sprite properties
- Base Class: Food.java - General food mechanics
- Hunger Mechanics: Hunger.java - Hunger system implementation
- Spoilage Handling: Uses Food class poison() method to transform to RottenPumpkinPie
- Price Calculation: PumpkinPie.java#L13-L15 - Price method implementation
String Resources
- PumpkinPie_Name - “Pumpkin pie”
- PumpkinPie_Info - “Delicious pumpkin pie, mmm, just like mom used to make.”
- PumpkinPie_Info - “Rotten pumpkin pie”
- PumpkinPie_Info - “Even with mom's love, this is no good to eat.”
Strategy
- Useful for completely restoring hunger when at low levels
- More expensive than regular food but provides full satiation
- Better to consume before it spoils
- Good for emergency situations when you need to fully satisfy hunger quickly
Related Items
- Rotten Pumpkin Pie - What it becomes when spoiled
- Ration - Standard food item
- Overpriced Ration - Another expensive food option
- Food - Parent class and general information about food items
en/rpd/pumpkin_pie_item.txt · Last modified: by 127.0.0.1

