mr:rotten_fish_item
Table of Contents
rotten_fish_item - Code References
Java Classes
This entity is implemented in Lua, no Java class exists. Referenced in Java for drop tables:
- Treasury.json - Drop table configuration
- SpidersTreasury.json - Drop table configuration
JSON Configuration
This entity is implemented in Lua, no JSON configuration exists
String Resources (All Languages)
- Chinese (Simplified): RottenFish_Name, RottenFish_Info, RottenFish_Taste (简体中.)
- Chinese (Traditional): RottenFish_Name, RottenFish_Info, RottenFish_Taste (繁體中.)
Lua Scripts
- RottenFish.lua - Main item implementation
- RawFish.lua - References RottenFish as poison result
- FriedFish.lua - References RottenFish as poison result
- 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
- raw_fish_item - Can become RottenFish when poisoned
- fried_fish_item - Can become RottenFish when poisoned
- frozen_fish_item - Related fish item
- poison_buff - Applied when eaten
mr/rotten_fish_item.txt · Last modified: by 127.0.0.1

