User Tools

Site Tools


mr:raw_fish_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mr:raw_fish_item [2026/03/27 21:47] – Wiki maintenance: Fix broken links and improve mr: namespace page Qwen Assistantmr:raw_fish_item [2026/04/04 19:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Raw Fish Item - Code References ======
 +
 +{{ rpd:images:raw_fish_item.png|Raw Fish }}
 +
 +**Raw Fish** is a basic food item in Remixed Pixel Dungeon. It is dropped by Piranhas and can be consumed to restore hunger, though it may have negative effects.
 +
 +==== Java Implementation ====
 +This entity is not implemented as a separate Java class. It is a basic food item that uses the default item system.
 +
 +Usage in Java code:
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Piranha.java|Piranha.java]] - Piranhas drop RawFish when collected
 +
 +<code java>
 +// From Piranha.java
 +collect(ItemFactory.itemByName("RawFish"));
 +</code>
 +
 +==== JSON Configuration ====
 +RawFish is referenced in level configuration files as a placeable item:
 +
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/TestLevelSewers.json|TestLevelSewers.json]] - Placed at coordinates (13, 10)
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json|Treasury.json]] - Listed in item distribution
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json|SpidersTreasury.json]] - Listed in item distribution
 +
 +<code json>
 +// From TestLevelSewers.json
 +{"kind":"RawFish","x":13,"y":10}
 +
 +// From Treasury.json and SpidersTreasury.json
 +"RawFish": 0
 +</code>
 +
 +==== String Resources ====
 +RawFish has localized strings in all supported languages:
 +
 +<code xml>
 +<!-- English (values/strings_all.xml) -->
 +<string name="RawFish_Name">raw fish</string>
 +<string name="RawFish_Info">Raw fish, eat at your own risk</string>
 +<string name="RawFish_Taste">Fishy!</string>
 +
 +<!-- Russian (values-ru/strings_all.xml) -->
 +<string name="RawFish_Name">сырая рыба</string>
 +<string name="RawFish_Info">Сырая рыба, ешьте на свой страх и риск</string>
 +<string name="RawFish_Taste">Рыбненько!</string>
 +
 +<!-- German (values-de/strings_all.xml) -->
 +<string name="RawFish_Name">Roher Fisch</string>
 +<string name="RawFish_Info">Roher Fisch, essen auf eigene Gefahr</string>
 +<string name="RawFish_Taste">Fischig!</string>
 +
 +<!-- Japanese (values-ja/strings_all.xml) -->
 +<string name="RawFish_Name">生の魚</string>
 +<string name="RawFish_Info">生魚は自己責任で食べること</string>
 +<string name="RawFish_Taste">魚っぽい!</string>
 +</code>
 +
 +==== Lua Scripts ====
 +No Lua scripts are associated with this entity. It is a basic consumable item.
 +
 +==== Game Mechanics ====
 +  * **Type**: Food item
 +  * **Rarity**: Common drop from Piranhas
 +  * **Effect**: Basic hunger restoration (specific values defined in game constants)
 +  * **Taste Message**: "Fishy!" when consumed
 +  * **Risk**: May have negative effects (implied by "eat at your own risk" description)
 +
 +==== Related Entities ====
 +  * [[mr:piranha_mob|Piranha]] - Mob that drops this item
 +  * Food system - Part of the game's hunger mechanics