User Tools

Site Tools


mr:heal_spell

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mr:heal_spell [2026/02/14 14:04] – Fix wiki pages based on random selection and standards compliance Remixed Dungeon Wiki Maintainermr:heal_spell [2026/02/14 14:05] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Heal 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 =====
 +<code xml>
 +<string name="Heal_Name">Heal</string>
 +<string name="Heal_Info">Restores HP to target. Higher level targets gain more HP.</string>
 +<string name="Heal_Gender">neuter</string>
 +</code>
 +
 +===== Lua Scripts =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/Heal.lua|Heal.lua]]
 +
 +===== Spell Properties (from Heal.lua) =====
 +  * ''magicAffinity = "Witchcraft"''
 +  * ''targetingType = "char"''
 +  * ''level = 2''
 +  * ''castTime = 1''
 +  * ''spellCost = 5''
 +  * ''cooldown = 2''
 +
 +===== Spell Implementation =====
 +<code lua>
 +castOnChar = function(self, spell, caster, target)
 +    if target then
 +        local heal = target:ht() / 5. * caster:skillLevel()
 +        target:heal(math.max(1, heal), caster)
 +    end
 +    return true
 +end
 +</code>
 +
 +===== Related mr Entities =====
 +  * [[mr:mage_class|Mage (Class)]]
 +  * [[mr:warlock_armor_item|Warlock (Subclass)]]
 +  * [[mr:witchcraft_affinity|Witchcraft (Magic Affinity)]]