mr:poison_buff
Table of Contents
Poison Buff - Code References
Java Classes
- Poison.java - Main buff class implementing Doom interface
- Poison enchantment - Weapon enchantment that applies poison
- PoisonTrap.java - Trap that applies poison
- PoisonParticle.java - Visual particle effects for poison
- PoisonArrow.java - Missile weapon that applies poison
Implementation Details
- Class Hierarchy: `Poison extends Buff implements Doom`
- Icon: `BuffIndicator.POISON` (icon ID 4)
- Damage Formula: `target.damage((int)(timeLeft / 3) + 1, this)` - deals damage based on remaining duration
- Duration Factor: Modified by `RingOfElements.Resistance` buff
- Visual Effect: `PoisonParticle.SPLASH` burst effect (5 particles)
- Status Display: Shows `Char_StaPoisoned` status text on affected character
- Hero Death: Triggers `Badges.validateDeathFromPoison()` and displays death message
JSON Configuration
This entity is implemented in Java, no JSON configuration exists
String Resources
<!-- English strings (values/strings_all.xml) --> <string name="Poison_Name_0">Venomous %s</string> <string name="Poison_Name_1">Venomous %s</string> <string name="Poison_Name_2">Venomous %s</string> <string name="Poison_Death">You died from poison...</string> <string name="PoisonArrow_Name">poison arrow</string> <string name="PoisonArrow_Info">An arrowhead that contains a potent toxin. Damage dealt by this arrow is converted to poison damage.</string> <string name="PoisonArrow_Gender">0</string> <string name="PoisonBuff_Name">Poisoned</string> <string name="PoisonBuff_Info">The poison is slowly eating away at your health.\n\nDamage dealt: %d</string> <string name="Char_StaPoisoned">Poisoned</string> <!-- Russian strings (values-ru/strings_all.xml) --> <string name="Poison_Name_0">Отравленное %s</string> <string name="Poison_Name_1">Отравленный %s</string> <string name="Poison_Name_2">Отравленная %s</string> <string name="Poison_Death">Ты умер от яда...</string> <string name="PoisonArrow_Name">ядовитая стрела</string> <string name="PoisonArrow_Info">Наконечник стрелы содержит сильный токсин. Урон, нанесенный этой стрелой, преобразуется в отравляющий урон.</string> <string name="PoisonArrow_Gender">0</string> <string name="PoisonBuff_Name">Отравление</string> <string name="PoisonBuff_Info">Яд постепенно истощает ваше здоровье.\n\nНанесённый урон: %d</string> <string name="Char_StaPoisoned">Отравлен</string>
Lua Scripts
- https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/RottenFish.lua - Rotten fish that applies poison
- https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/buffs/ChaosShieldLeft.lua - Chaos shield left that can curse enemies with poison
- https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/Stinger.lua - Stinger mob that can apply poison
- https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/CorpseExplosion.lua - Corpse explosion spell that applies poison
- https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/lib/commonClasses.lua - Common classes library that binds the Poison class
Usage in Code
- Used in PoisonTrap.java to apply poison to characters
- Used in PotionOfHealing.java to remove poison buff
- Used in RingOfElements.java for elemental resistance
- Used in various mobs (Scorpio, SpiderServant, SpiderQueen, Zombie, Worm) to apply poison on hit
- Used in FrozenCarpaccio.java and MysteryMeat.java to remove poison
- Used in BuffFactory.java to register the buff
- Used in various enchantments and plant effects
- Damage calculation: deals `(timeLeft / 3) + 1` damage per tick
- Duration is affected by Ring of Elements resistance
mr/poison_buff.txt · Last modified: by 127.0.0.1
