mr:cloak_spell
Table of Contents
Cloak Spell - Code References
Java Classes
This entity is implemented in Lua, no Java class exists
JSON Configuration
This entity is implemented in Lua, no JSON configuration exists
String Resources
<string name="CloakSpell_Name">Cloak</string> <string name="CloakSpell_Info">Step into the shadows to become unseen. Greatly reduce your chances of being detected. Can't be used while enemies are nearby.</string> <string name="CloakSpell_EnemiesNearby">You can't step into the shadows while enemies are nearby.</string> <string name="CloakBuff_Name">Cloak</string> <string name="CloakBuff_Info">You are invisible, greatly reducing your chances of being detected.</string>
Lua Scripts
- Cloak.lua (Spell) - Main spell implementation
- Cloak.lua (Buff) - Buff applied by spell
Spell Details
- Magic Affinity: Rogue
- Targeting: self
- Level: 1
- Mana Cost: 5
- Cooldown: 20 turns
- Cast Time: 0.5 turns
- Duration: Caster's skill level * 5 turns
Key Functions
- `cast(caster, target)` - Main spell casting function
- `canCast(caster, target)` - Checks if spell can be cast (no visible enemies)
- `onCastComplete(caster, target)` - Applies cloak buff on successful cast
- `attach(target, duration)` - Attaches cloak buff to target
Buff Details
- Type: Debuff (positive for caster)
- Effect: Invisibility, stealth bonus
- Stealth Bonus: Caster's skill level + caster's level / 4
- Duration: Expires automatically after duration
- Visual: Invisible status effect
Related mr Entities
- Cloak Buff - Buff applied by this spell
- Hide in Grass Spell - Similar stealth spell
- Invisibility Buff - Related status effect
Code References
- Spell.java - Base spell class
- MagicAffinity.java - Rogue affinity definition
- Invisibility.java - Base invisibility buff
mr/cloak_spell.txt · Last modified: by 127.0.0.1

