mr:wand_of_icebolt_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:wand_of_icebolt_item [2026/07/14 11:22] – Fix mr: namespace wand pages - correct Wand of Frost (non-existent) vs Wand of Icebolt (actual implementation) Bot | mr:wand_of_icebolt_item [2026/07/14 11:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Wand Of Icebolt Item - Code References ====== | ||
| + | ===== Java Classes ===== | ||
| + | * '' | ||
| + | * Extends: [[https:// | ||
| + | * Registered in: [[https:// | ||
| + | * Used by: [[https:// | ||
| + | |||
| + | ===== Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.items.icecaves; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.audio.Sample; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.Assets; | ||
| + | import com.watabou.pixeldungeon.Dungeon; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Frost; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Slow; | ||
| + | import com.watabou.pixeldungeon.effects.MagicMissile; | ||
| + | import com.watabou.pixeldungeon.levels.Level; | ||
| + | import com.watabou.pixeldungeon.mechanics.Ballistica; | ||
| + | import com.watabou.pixeldungeon.scenes.GameScene; | ||
| + | import com.watabou.pixeldungeon.utils.GLog; | ||
| + | import com.watabou.utils.Callback; | ||
| + | |||
| + | public class WandOfIcebolt extends Wand { | ||
| + | |||
| + | { | ||
| + | setDefaultImage( ItemSpriteSheet.WAND_ICEBOLT ); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | protected void onZap( int cell, Char ch ) { | ||
| + | if ( ch != null ) { | ||
| + | int lvl = effectiveLevel(); | ||
| + | ch.damage( Random.NormalIntRange( lvl + 2, lvl + 10 ), this ); | ||
| + | |||
| + | if ( Random.Float() < 0.3f ) { | ||
| + | Frost.prolong( ch, Frost.DURATION * ( 1 + lvl / 10f ) ); | ||
| + | } | ||
| + | if ( Random.Float() < 0.2f ) { | ||
| + | Slow.prolong( ch, Slow.DURATION * ( 1 + lvl / 10f ) ); | ||
| + | } | ||
| + | } else { | ||
| + | GLog.n( StringsManager.getVar( R.string.WandOfIcebolt_Info1 ) ); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | protected void fx( int cell, Callback callback ) { | ||
| + | MagicMissile.iceBolt( getOwner().getSprite().getParent(), | ||
| + | Sample.INSTANCE.play( Assets.SND_ZAP ); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String desc() { | ||
| + | return StringsManager.getVar( R.string.WandOfIcebolt_Info ); | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Key Mechanics ===== | ||
| + | * **Damage:** Random range of (level + 2) to (level + 10) | ||
| + | * **Frost Chance:** 30% chance to apply Frost debuff with duration scaling by level | ||
| + | * **Slow Chance:** 20% chance to apply Slow debuff with duration scaling by level | ||
| + | * **Visual Effect:** Uses MagicMissile.iceBolt() for zap animation | ||
| + | * **Sound:** Plays Assets.SND_ZAP on zap | ||
| + | * **Default Image:** ItemSpriteSheet.WAND_ICEBOLT | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | No dedicated JSON configuration file found. Wand is implemented entirely in Java. | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English ('' | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian ('' | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Chinese Simplified ('' | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Chinese Traditional ('' | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | No Lua script implementation. This wand is implemented entirely in Java. | ||
| + | |||
| + | ===== Related Effects ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | {{tag> rpd wands items mr icecaves}} | ||
mr/wand_of_icebolt_item.txt · Last modified: by 127.0.0.1
