User Tools

Site Tools


mr:sprout_spell

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
mr:sprout_spell [2026/04/07 23:13] – Fix wiki page issues: broken links, duplicate content, image consistency, mr: page improvements Qwen Assistantmr:sprout_spell [2026/04/07 23:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 =====
 +<code xml>
 +<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>
 +</code>
 +
 +===== 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)]]
  
mr/sprout_spell.txt · Last modified: by 127.0.0.1