User Tools

Site Tools


mr:smash_spell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mr:smash_spell [2026/02/20 00:14] – Wiki standards compliance: Fix 5 random pages Qwen Assistantmr:smash_spell [2026/02/20 00:16] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Smash Spell - Code References ======
 +
 +===== Lua Script Implementation =====
 +This spell is implemented entirely in Lua. The main implementation file is:
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/Smash.lua|Smash.lua]]
 +
 +**Spell Configuration (from Lua):**
 +<code lua>
 +image         = 3
 +imageFile     = "spellsIcons/warrior.png"
 +name          = "SmashSpell_Name"
 +info          = "SmashSpell_Info"
 +magicAffinity = "Combat"
 +targetingType = "self"
 +level         = 4
 +spellCost     = 10
 +cooldown      = 10
 +castTime      = 0.5
 +</code>
 +
 +**Spell Effects:**
 +  * Requires a weapon to cast (checks caster:getBelongings().weapon)
 +  * Creates visual fist effect that moves upward (smash_fist)
 +  * Creates blast effect at ground level (smash_blast) with scale 1.5x1.3
 +  * Jumps the caster's sprite upward by 30 units
 +  * Affects all cells around the caster
 +  * Applies [[mr:vertigo_buff|Vertigo]] buff to enemies hit
 +  * Deals physical damage based on weapon damage roll
 +  * Plays "smash" sound effect
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/spells/CustomSpell.java|CustomSpell.java]] - Base class for custom spells
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Vertigo.java|Vertigo.java]] - Buff applied to stunned enemies
 +
 +===== JSON Configuration =====
 +This entity is implemented in Lua, no JSON configuration exists
 +
 +===== String Resources =====
 +<code xml>
 +<string name="SmashSpell_Name">Smash</string>
 +<string name="SmashSpell_Info">Jump upwards and create a powerful smash upon hitting the ground,that temporarily stuns enemies around and at the same time deals physical damage.</string>
 +<string name="SmashSpell_NeedWeapon">I need a weapon for this move.</string>
 +</code>
 +
 +===== Related mr Entities =====
 +  * [[mr:vertigo_buff|Vertigo (Buff)]] - Stun effect applied to enemies
 +  * [[mr:custom_spell_class|CustomSpell (Class)]] - Base class for Lua-implemented spells
 +  * [[mr:combat_affinity|Combat (Affinity)]] - Magic affinity type
 +  * [[mr:spell_targeting_self|Spell Targeting Self]] - Targeting type for self-buffs
  
mr/smash_spell.txt · Last modified: by 127.0.0.1