====== Sprout Spell - Code References ====== {{ rpd:images:sprout_spell.png|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 ===== Sprout Awaken the dormant seeds.\nHowever, there should be some greenery on the ground for this spell to succeed. ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/Sprout.lua|Sprout.lua]] - Main spell implementation ===== 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" ===== Related mr Entities ===== * [[mr:elf_class|Elf (Class)]] * [[mr:nature_armor_spell|Nature Armor (Spell)]] * [[mr:hide_in_grass_spell|Hide in Grass (Spell)]]