User Tools

Site Tools


mr:smash_spell

Smash Spell - Code References

Lua Script Implementation

This spell is implemented entirely in Lua. The main implementation file is:

Spell Configuration (from 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

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.5×1.3
  • Jumps the caster's sprite upward by 30 units
  • Affects all cells around the caster
  • Applies Vertigo buff to enemies hit
  • Deals physical damage based on weapon damage roll
  • Plays “smash” sound effect

Java Classes

JSON Configuration

This entity is implemented in Lua, no JSON configuration exists

String Resources

<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>

mr/smash_spell.txt · Last modified: by 127.0.0.1