mr:rotten_meat_item
Table of Contents
Rotten Meat Item - Code References
Machine-readable reference page for the Rotten Meat item in Remixed Dungeon.
Entity Information
- Entity Kind: rotten_meat
- Item Type: Food (Rotten)
- Tier: Basic food item
- Stackable: Yes
Java Classes
- RottenMeat.java - Main implementation class
- RottenFood.java - Base class that RottenMeat extends
Class Implementation
package com.watabou.pixeldungeon.items.food; import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; public class RottenMeat extends RottenFood { public RottenMeat() { image = ItemSpriteSheet.ROTTEN_MEAT; } @Override public Food purify() { return new MysteryMeat(); } }
Key Methods
- purify(): Returns a new MysteryMeat instance when purified
- Constructor: Sets the sprite image to ItemSpriteSheet.ROTTEN_MEAT
Java Usage References
- ChargrilledMeat.java: Line 22 - poison() method returns morphTo(RottenMeat.class)
- MysteryMeat.java: Line 74 - poison() method returns morphTo(RottenMeat.class)
-
- Line 100 - Import statement
- Line 260 - Registered item class: registerItemClass(RottenMeat.class)
JSON Configuration
No specific JSON configuration found for Rotten Meat item. The item is implemented entirely in Java.
String Resources
<!-- English (values/strings_all.xml) --> <string name="RottenMeat_Name">Rotten meat</string> <string name="RottenMeat_Info">A piece of rotten meat</string> <!-- Russian (values-ru/strings_all.xml) --> <string name="RottenMeat_Name">Испорченное мясо</string> <string name="RottenMeat_Info">Кусок испорченного мяса</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists.
Implementation Details
- Sprite: ItemSpriteSheet.ROTTEN_MEAT
- Parent Class: RottenFood
- Purification: Transforms into MysteryMeat when purified
- Poison Transformation: ChargrilledMeat and MysteryMeat transform into RottenMeat when poisoned
- Function: Alternative food source that is not harmful like regular spoiled food but provides no nutritional benefits
Related Items
- MysteryMeat - Purified form of rotten meat
- RottenFood - Base class for rotten food items
- ChargrilledMeat - Can transform into RottenMeat when poisoned
- Ration - Standard food ration
- Food - Base food class
Wiki Pages
- Rotten Meat (English) - English wiki page
- Food - Food items overview
- Items - All items in the game
mr/rotten_meat_item.txt · Last modified: by 127.0.0.1
