User Tools

Site Tools


mr:rotten_meat_item

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

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

  • 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

Wiki Pages

mr/rotten_meat_item.txt · Last modified: by 127.0.0.1