mr:sorrowmoss_level_object
Table of Contents
Sorrowmoss Level Object - Code References
Java Implementation
- Plant class: Sorrowmoss.java
- Extends Plant base class
- Sprite: image = PlantSpriteSheet.SORROWMOSS
- Seed class: inner Seed class extending Seed base class
- Alchemy result: PotionOfToxicGas.class
- Eating seed effect: Applies Poison (duration based on hero level) + Invisibility (2 turns)
- Level object registration: LevelObjectsFactory.java line 80
- registerObjectClass(Sorrowmoss.class)
- Seed registration: ItemFactory.java line 415
- registerItemClassByName(Sorrowmoss.Seed.class, “Sorrowmoss.Seed”)
JSON Configuration
This entity is implemented in Java, no dedicated JSON configuration exists
Lua Implementation
Alchemy recipe: alchemy_recipes.lua
-- Recipe: 1 Sorrowmoss seed + 1 Corpse Dust = Potion of Toxic Gas local sorrowmossRecipe = {} table.insert(sorrowmossRecipe, {name = "Sorrowmoss.Seed", count = 1}) table.insert(sorrowmossRecipe, {name = "CorpseDust", count = 1}) RPD.AlchemyRecipes.registerRecipeFromLua(sorrowmossRecipe, "PotionOfToxicGas")
Sprout spell (random seed selection): Sprout.lua
- Sorrowmoss.Seed included in random seed pool
Spawner trap: Spawner.lua
- Sorrowmoss can spawn as level object from trap
String Resources
- English: strings_all.xml
<string name="Sorrowmoss_Name">Sorrowmoss</string> <string name="Sorrowmoss_Desc">A Sorrowmoss is a flower (not a moss) with razor-sharp petals, coated with a deadly venom.</string>
- Russian: strings_all.xml (ru)
<string name="Sorrowmoss_Name">Грустномох</string> <string name="Sorrowmoss_Desc">Грустномох - это цветок (а не мох) с бритвенно острыми лепестками, покрытыми смертельным ядом.</string>
Related mr Entities
- Seed: Sorrowmoss Seed
- Alchemy Result: Potion of Toxic Gas
- Base Classes: Plant, Seed
mr/sorrowmoss_level_object.txt · Last modified: by 127.0.0.1
