mr:necrotism_buff
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:necrotism_buff [2026/02/18 08:32] – Wiki standards compliance fixes for 5 random pages Qwen Assistant | mr:necrotism_buff [2026/02/18 08:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Necrotism Buff - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * **Main Class:** [[https:// | ||
| + | * **Package: | ||
| + | * **Extends: | ||
| + | * **Related Classes:** | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * No direct JSON configuration for this buff | ||
| + | * Buff is applied through NecromancerArmor ability | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <!-- English (values/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Russian (values-ru/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Spanish (values-es/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== 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: | ||
| + | * **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 ===== | ||
| + | <code java> | ||
| + | // Applied by Necromancer Armor special ability | ||
| + | Buff.affect( user, Necrotism.class ).set(Necrotism.duration, | ||
| + | |||
| + | // Spread mechanic - affects nearby characters | ||
| + | if(Random.Int(1) == 0 && !ch.hasBuff(Necrotism.class)){ | ||
| + | Buff.affect( ch, Necrotism.class ).set(duration, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Related mr: Pages ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/necrotism_buff.txt · Last modified: by 127.0.0.1
