====== rotten_fish_item - Code References ====== {{ rpd:images:rotten_fish_item.png|Rotten Fish }} ===== Java Classes ===== This entity is implemented in Lua, no Java class exists. Referenced in Java for drop tables: * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json|Treasury.json]] - Drop table configuration * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json|SpidersTreasury.json]] - Drop table configuration ===== JSON Configuration ===== This entity is implemented in Lua, no JSON configuration exists ===== String Resources (All Languages) ===== * English: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L795-L797|RottenFish_Name, RottenFish_Info, RottenFish_Taste]] * Russian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml#L1804-L1806|RottenFish_Name, RottenFish_Info, RottenFish_Taste (рус.)]] * Spanish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-es/strings_all.xml#L1739-L1741|RottenFish_Name, RottenFish_Info, RottenFish_Taste (esp.)]] * Portuguese: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pt-rBR/strings_all.xml#L1701-L1703|RottenFish_Name, RottenFish_Info, RottenFish_Taste (port.)]] * Chinese (Simplified): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rCN/strings_all.xml#L1721-L1723|RottenFish_Name, RottenFish_Info, RottenFish_Taste (简体中.)]] * Chinese (Traditional): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rTW/strings_all.xml#L1667-L1669|RottenFish_Name, RottenFish_Info, RottenFish_Taste (繁體中.)]] * Japanese: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ja/strings_all.xml#L1743-L1745|RottenFish_Name, RottenFish_Info, RottenFish_Taste (日本語)]] * Korean: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ko/strings_all.xml#L1603-L1605|RottenFish_Name, RottenFish_Info, RottenFish_Taste (한국어)]] * German: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-de/strings_all.xml#L1737-L1739|RottenFish_Name, RottenFish_Info, RottenFish_Taste (Deutsch)]] * French: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-fr/strings_all.xml#L1784-L1786|RottenFish_Name, RottenFish_Info, RottenFish_Taste (français)]] * Italian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-it/strings_all.xml#L1585-L1587|RottenFish_Name, RottenFish_Info, RottenFish_Taste (italiano)]] * Polish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pl/strings_all.xml#L1793-L1795|RottenFish_Name, RottenFish_Info, RottenFish_Taste (polski)]] * Ukrainian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-uk/strings_all.xml#L1695-L1697|RottenFish_Name, RottenFish_Info, RottenFish_Taste (укр.)]] * Turkish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-tr/strings_all.xml#L1712-L1714|RottenFish_Name, RottenFish_Info, RottenFish_Taste (Türkçe)]] * Greek: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-el/strings_all.xml#L1786-L1788|RottenFish_Name, RottenFish_Info, RottenFish_Taste (Ελληνικά)]] * Indonesian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-in/strings_all.xml#L1688-L1690|RottenFish_Name, RottenFish_Info, RottenFish_Taste (Indonesia)]] * Malay: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ms/strings_all.xml#L1604-L1606|RottenFish_Name, RottenFish_Info, RottenFish_Taste (Melayu)]] * Hungarian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-hu/strings_all.xml#L1620-L1622|RottenFish_Name, RottenFish_Info, RottenFish_Taste (magyar)]] ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/RottenFish.lua|RottenFish.lua]] - Main item implementation * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/RawFish.lua|RawFish.lua]] - References RottenFish as poison result * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/FriedFish.lua|FriedFish.lua]] - References RottenFish as poison result * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/ai/BlackCat.lua|BlackCat.lua]] - AI preference for RottenFish ===== Implementation Details ===== * **Type:** item * **Package:** scripts/items * **Base Entity:** Item (Lua implementation) * **Image:** 15 (food.png sprite sheet index) * **Image File:** items/food.png * **Stackable:** true * **Action:** eat ===== Behavior ===== * **On Eat:** Applies Poison buff for 2 * random(1, hero:lvl()) turns * **Hunger Restoration:** Restores RPD.Buffs.Hunger.HUNGRY / 4 hunger * **Taste Message:** Displays "RottenFish_Taste" string * **Poison Effect:** Uses RPD.affectBuff with RPD.Buffs.Poison ===== Related mr Entities ===== * [[mr:raw_fish_item|raw_fish_item]] - Can become RottenFish when poisoned * [[mr:fried_fish_item|fried_fish_item]] - Can become RottenFish when poisoned * [[mr:frozen_fish_item|frozen_fish_item]] - Related fish item * [[mr:poison_buff|poison_buff]] - Applied when eaten {{tag> mr rpd items food fish}}