mr:necrotism_buff
Table of Contents
Necrotism Buff - Code References
Java Classes
- Main Class: Necrotism.java
- Package: com.nyrds.pixeldungeon.mechanics.buffs
- Extends: Buff, implements Doom
- Related Classes:
- NecromancerArmor.java - Armor that applies Necrotism
- Doom.java - Interface implemented by Necrotism
- BuffIndicator.java - Icon constant (NECROTISM = 39)
JSON Configuration
- No direct JSON configuration for this buff
- Buff is applied through NecromancerArmor ability
String Resources
<!-- English (values/strings_all.xml) --> <string name="NecrotismBuff_Name">Necrotism</string> <string name="NecrotismBuff_Info">The mark of death itself, the reek from which affects the ones nearby and causes them to share the same plight.</string> <string name="Necrotism_ACSpecial">NECROTISM</string> <string name="Necrotism_Death">You died from necrotism...</string> <string name="ResultDescriptions_Necrotism">Died from Necrotism on level %d</string> <string name="Badges_DeathNecrotism">Death from necrotism</string> <!-- Russian (values-ru/strings_all.xml) --> <string name="NecrotismBuff_Name">Некротизм</string> <string name="NecrotismBuff_Info">Метка смерти, смрад от которой поражает всех вокруг и заставляет их разделить ту же учесть.</string> <!-- Spanish (values-es/strings_all.xml) --> <string name="NecrotismBuff_Name">Necrosis</string> <string name="NecrotismBuff_Info">La propia marca de la muerte, cuyo hedor afecta a los que están cerca y les hace compartir la misma situación.</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Key Methods
- act() - Main buff logic: damages target, spreads to nearby mobs
- icon() - Returns BuffIndicator.NECROTISM (39)
- set(float duration, int i) - Sets buff duration and iteration counter
- onHeroDeath() - Validates badge and triggers game over
Buff Mechanics
- Duration: 3 ticks (base duration)
- Damage: Scales with iteration - increases over time
- Spread: Infects nearby non-hero, non-NPC characters
- Boss Damage: Reduced damage to bosses (hp/200)
- Normal Damage: target.hp() / max(3, (21 - iteration))
- Visual Effect: Target sprite bursts with color 0x6935a5 (purple)
Usage in Code
// Applied by Necromancer Armor special ability Buff.affect( user, Necrotism.class ).set(Necrotism.duration, 1); // Spread mechanic - affects nearby characters if(Random.Int(1) == 0 && !ch.hasBuff(Necrotism.class)){ Buff.affect( ch, Necrotism.class ).set(duration, iteration + 1); }
Related mr: Pages
- Necromancer Armor Item - Code References - Armor that applies Necrotism
- Necromancer Class - Machine Readable Data - Hero class that can use Necromancer Armor
- buff_system - Base buff system documentation
mr/necrotism_buff.txt · Last modified: by 127.0.0.1
