mr:smash_spell
Table of Contents
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
- CustomSpell.java - Base class for custom spells
- Vertigo.java - Buff applied to stunned enemies
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>
Related mr Entities
- Vertigo (Buff) - Stun effect applied to enemies
- CustomSpell (Class) - Base class for Lua-implemented spells
- Combat (Affinity) - Magic affinity type
- Spell Targeting Self - Targeting type for self-buffs
mr/smash_spell.txt · Last modified: by 127.0.0.1
