User Tools

Site Tools


mr:ration_item

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
mr:ration_item [2026/08/31 06:45] – wiki: fix compliance issues on 5 random wiki pages Wiki Maintenancemr:ration_item [2026/08/31 06:46] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Ration Item - Code References ======
  
 +===== Java Classes =====
 +  * Main class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/food/Ration.java|Ration.java]]
 +  * Item factory: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java#L258|ItemFactory.java]] (registerItemClass)
 +  * Base class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/food/Food.java|Food.java]]
 +  * Related: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/food/RottenRation.java|RottenRation.java]] (poisoned ration)
 +
 +===== Class Implementation Details =====
 +  * Package: com.watabou.pixeldungeon.items.food
 +  * Extends: Food
 +  * Image: ItemSpriteSheet.RATION
 +  * Energy: Hunger.HUNGRY (restores hunger to HUNGRY level)
 +  * Price formula: 10 * quantity (base price of 10 gold per ration)
 +  * Poison behavior: When poisoned, morphs to RottenRation class
 +
 +===== JSON Configuration =====
 +  * Starting items: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/hero/initHeroes.json|initHeroes.json]] (Ration in starting items for most hero classes)
 +  * Treasury drops: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json#L39|Treasury.json]] (Ration drop chance)
 +  * Spiders Treasury: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json#L39|SpidersTreasury.json]] (Ration drop chance)
 +
 +===== String Resources (All Languages) =====
 +  * English: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L1765-L1766|Ration_Name, Ration_Info]]
 +  * Russian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml#L1764-L1765|Ration_Name, Ration_Info]]
 +  * Spanish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-es/strings_all.xml#L1768-L1769|Ration_Name, Ration_Info]]
 +  * Portuguese (Brazilian): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pt-rBR/strings_all.xml#L1763-L1764|Ration_Name, Ration_Info]]
 +  * Chinese (Simplified): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rCN/strings_all.xml#L1761-L1762|Ration_Name, Ration_Info]]
 +  * Chinese (Traditional): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rTW/strings_all.xml#L1781-L1782|Ration_Name, Ration_Info]]
 +  * German: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-de/strings_all.xml#L1772-L1773|Ration_Name, Ration_Info]]
 +  * French: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-fr/strings_all.xml#L1766-L1767|Ration_Name, Ration_Info]]
 +  * Japanese: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ja/strings_all.xml#L1766-L1767|Ration_Name, Ration_Info]]
 +  * Korean: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ko/strings_all.xml#L1759-L1760|Ration_Name, Ration_Info]]
 +  * Italian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-it/strings_all.xml#L1760-L1761|Ration_Name, Ration_Info]]
 +  * Polish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pl/strings_all.xml#L1771-L1772|Ration_Name, Ration_Info]]
 +  * Ukrainian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-uk/strings_all.xml#L1795-L1796|Ration_Name, Ration_Info]]
 +  * Hungarian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-hu/strings_all.xml#L1761-L1762|Ration_Name, Ration_Info]]
 +  * Turkish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-tr/strings_all.xml#L1768-L1769|Ration_Name, Ration_Info]]
 +  * Greek: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-el/strings_all.xml#L1760-L1761|Ration_Name, Ration_Info]]
 +  * Indonesian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-in/strings_all.xml#L1758-L1759|Ration_Name, Ration_Info]]
 +  * Malay: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ms/strings_all.xml#L1758-L1759|Ration_Name, Ration_Info]]
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists
 +
 +===== Related Files =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Hunger.java|Hunger.java]] - Hunger buff system
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/sprites/ItemSpriteSheet.java|ItemSpriteSheet.java]] - Sprite definitions (RATION constant)
mr/ration_item.txt · Last modified: by 127.0.0.1