mr:food_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:food_item [2026/02/22 23:46] – Wiki maintenance: Fix translation consistency and add missing pages Qwen Assistant | mr:food_item [2026/02/22 23:51] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Food Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | Food items are primarily implemented in Java. Some food-related configurations may exist in: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <!-- Base Food --> | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Chargrilled Meat --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Mystery Meat --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Rotten Meat --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Pasty --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Food Ration --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Small Ration --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Fruit --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Berry --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | Food items are primarily implemented in Java. No specific Lua scripts exist for basic food items. | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | * **Base Class**: `com.watabou.pixeldungeon.items.food.Food` | ||
| + | * **Entity Kind**: Varies by subclass (e.g., " | ||
| + | * **Sprite**: Defined in [[https:// | ||
| + | * **Default Action**: `CommonActions.AC_EAT` | ||
| + | * **Time to Eat**: 3 turns (TIME_TO_EAT constant) | ||
| + | * **Stackable**: | ||
| + | * **Identified**: | ||
| + | * **Upgradable**: | ||
| + | |||
| + | ===== Food Mechanics ===== | ||
| + | * **Energy**: Each food item provides energy value (varies by type) | ||
| + | * **Satiation**: | ||
| + | * **Eating Time**: Takes 3 turns to consume any food item | ||
| + | * **Message**: | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/food_item.txt · Last modified: by 127.0.0.1
