mr:vertigo_buff
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mr:vertigo_buff [2025/12/25 18:23] – auto lint fix Mikhael | mr:vertigo_buff [2026/03/23 01:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Vertigo Buff - Code References ====== | ||
| + | |||
| + | ==== Java Classes ==== | ||
| + | * **Main Class**: [[https:// | ||
| + | * **Package**: | ||
| + | * **Parent Class**: FlavourBuff | ||
| + | * **Registration**: | ||
| + | |||
| + | ==== Java Class Content ==== | ||
| + | <code java> | ||
| + | package com.watabou.pixeldungeon.actors.buffs; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.items.rings.RingOfElements.Resistance; | ||
| + | import com.watabou.pixeldungeon.sprites.CharSprite; | ||
| + | import com.watabou.pixeldungeon.ui.BuffIndicator; | ||
| + | |||
| + | public class Vertigo extends FlavourBuff { | ||
| + | |||
| + | public static final float DURATION = 10f; | ||
| + | |||
| + | @Override | ||
| + | public int icon() { | ||
| + | return BuffIndicator.VERTIGO; | ||
| + | } | ||
| + | |||
| + | public static float duration( Char ch ) { | ||
| + | Resistance r = ch.buff( Resistance.class ); | ||
| + | return r != null ? r.durationFactor() * DURATION : DURATION; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void attachVisual() { | ||
| + | target.showStatus(CharSprite.NEGATIVE, | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ==== Lua Scripts ==== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ==== Code Implementation Details ==== | ||
| + | This buff has the following properties based on the Java implementation: | ||
| + | * **Duration**: | ||
| + | * **Duration Calculation**: | ||
| + | * **Visual Effect**: Shows " | ||
| + | * **Icon**: BuffIndicator.VERTIGO (icon ID 29) | ||
| + | * **Buff Type**: Extends FlavourBuff | ||
| + | * **Resistance**: | ||
| + | * **Movement Effect**: Causes random movement when trying to walk to adjacent tiles (see Char.java) | ||
| + | |||
| + | ==== Applied By ==== | ||
| + | * **Spider Elite mobs**: 20% chance to apply when attacking | ||
| + | * **Kusarigama weapon**: Applies 3-turn duration | ||
| + | * **Dreamweed plant**: Applies 20-turn duration (Vertigo.DURATION * 2) | ||
| + | * **Fadeleaf plant**: Applies 20-turn duration (Vertigo.DURATION * 2) | ||
| + | * **Horror weapon enchantment**: | ||
| + | * **Wand of Amok**: Applies duration based on victim | ||
| + | * **Scroll of Curse**: Can curse items to apply vertigo | ||
| + | * **Miasma Gas**: Applies Vertigo.duration(ch) | ||
| + | * **Confusion Gas**: Applies Vertigo.duration(ch) | ||
| + | * **Hunger**: May apply when starving (Vertigo.duration(target)) | ||
| + | |||
| + | ==== Immunities ==== | ||
| + | * **Lich subclass**: Has immunity to Vertigo | ||
| + | * **Enslaved Soul mob**: Has immunity type resistance | ||
| + | |||
| + | ==== Sprite References ==== | ||
| + | * **Buff Icon**: {{rpd: | ||
| + | * **Buff Indicator ID**: 29 | ||
| + | |||
| + | ==== Related Entities ==== | ||
| + | * **Ring of Elements**: [[mr: | ||
| + | * **Lich Subclass**: [[mr: | ||
| + | * **English Page**: [[en: | ||
| + | * **Russian Page**: [[ru: | ||
| + | |||
| + | {{tag> rpd buffs debuffs status_effects disorientation}} | ||
