Table of Contents

Necrotism Buff - Code References

Java Classes

JSON Configuration

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

Buff Mechanics

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);
}