mr:deferred_damage_buff
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:deferred_damage_buff [2026/03/05 23:07] – Wiki standards compliance fixes for 5 random pages Qwen Assistant | mr:deferred_damage_buff [2026/03/05 23:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Deferred Damage Buff - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | **Machine-readable reference page for the Deferred Damage buff entity.** | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | Viscosity.DeferedDamage | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Details ===== | ||
| + | * **Full Class Name**: com.watabou.pixeldungeon.items.armor.glyphs.Viscosity.DeferedDamage | ||
| + | * **Parent Class**: Buff | ||
| + | * **Package**: | ||
| + | * **Type**: Nested static class (DeferedDamage - note spelling) | ||
| + | * **Icon**: BuffIndicator.DEFERRED (ID 28) | ||
| + | |||
| + | ===== Buff Properties ===== | ||
| + | * **Buff Type**: Negative buff (debuff) | ||
| + | * **Applied by**: [[en: | ||
| + | * **Effect**: Delays received damage over time (1 damage per turn instead of all at once) | ||
| + | * **Damage Processing**: | ||
| + | * **Death from Buff**: If target dies from deferred damage, death is attributed to the glyph | ||
| + | |||
| + | ===== Java Code Fragment ===== | ||
| + | <code java> | ||
| + | public static class DeferedDamage extends Buff { | ||
| + | |||
| + | @Packable | ||
| + | public int damage = 0; | ||
| + | |||
| + | @Override | ||
| + | public int icon() { | ||
| + | return BuffIndicator.DEFERRED; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean act() { | ||
| + | if (target.isAlive()) { | ||
| + | target.damage( 1, this ); | ||
| + | if (target == Dungeon.hero && !target.isAlive()) { | ||
| + | Glyph glyph = new Viscosity(); | ||
| + | Dungeon.fail( Utils.format( ResultDescriptions.getDescription(ResultDescriptions.Reason.GLYPH), | ||
| + | GLog.n(StringsManager.getVar(R.string.DeferedDamage_Killed_Txt), | ||
| + | Badges.validateDeathFromGlyph(); | ||
| + | } | ||
| + | spend( TICK ); | ||
| + | if (--damage <= 0) { | ||
| + | detach(); | ||
| + | } | ||
| + | } else { | ||
| + | detach(); | ||
| + | } | ||
| + | return true; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <!-- English (values/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Russian (values-ru/ | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented entirely in Java. No Lua script exists for this buff. | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented entirely in Java. No JSON configuration exists for this buff. | ||
| + | |||
| + | ===== Related mr: Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Notes ===== | ||
| + | * The class name uses the spelling " | ||
| + | * The buff deals exactly 1 damage per tick regardless of the total deferred amount | ||
| + | * If the target dies from deferred damage, it counts as being killed by the Viscosity glyph | ||
