User Tools

Site Tools


mr:sprout_spell

Sprout Spell - Code References

Sprout Spell

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="Sprout_Name">Sprout</string>
<string name="Sprout_Info">Awaken the dormant seeds.\nHowever, there should be some greenery on the ground for this spell to succeed.</string>

Lua Scripts

Implementation Details

  • Magic Affinity: Elf
  • Targeting Type: cell (targeted at a cell)
  • Level: 2
  • Mana Cost: 5
  • Cast Time: 0.1 seconds
  • Image: Uses image index 1 from “spellsIcons/naturegift.png”
  • Primary Effect: Places Regrowth blob at target cell (caster's skill level * 10)
  • Secondary Effect: Plants random seeds in adjacent passable tiles on plain tiles only
  • Seed Types: Earthroot.Seed, Firebloom.Seed, Sungrass.Seed, Dreamweed.Seed, Sorrowmoss.Seed, Icecap.Seed, Fadeleaf.Seed
  • Plant Chance: Based on caster level vs dungeon depth ratio (caster:lvl()/(RPD.Dungeon.depth + 1) > math.random())
  • Cell Selection: Iterates cells around target using forCellsAround, checks passable and plain tile conditions
  • Required Library: Requires “scripts/lib/commonClasses” and “scripts/lib/spell”
mr/sprout_spell.txt · Last modified: by 127.0.0.1