====== Sorrowmoss Level Object - Code References ====== ===== Java Implementation ===== * **Plant class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/plants/Sorrowmoss.java|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:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/levels/objects/LevelObjectsFactory.java|LevelObjectsFactory.java]] line 80 - registerObjectClass(Sorrowmoss.class) * **Seed registration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java|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:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/alchemy_recipes.lua|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):** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/Sprout.lua|Sprout.lua]] * Sorrowmoss.Seed included in random seed pool **Spawner trap:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/traps/Spawner.lua|Spawner.lua]] * Sorrowmoss can spawn as level object from trap ===== String Resources ===== * **English:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|strings_all.xml]] Sorrowmoss A Sorrowmoss is a flower (not a moss) with razor-sharp petals, coated with a deadly venom. * **Russian:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml|strings_all.xml (ru)]] Грустномох Грустномох - это цветок (а не мох) с бритвенно острыми лепестками, покрытыми смертельным ядом. ===== Related mr Entities ===== * **Seed:** [[mr:sorrowmoss_seed_item|Sorrowmoss Seed]] * **Alchemy Result:** [[mr:potion_of_toxic_gas_item|Potion of Toxic Gas]] * **Base Classes:** Plant, Seed