mr:sorrowmoss_seed_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:sorrowmoss_seed_item [2026/07/11 12:32] – Fix red link in elven_bow_item.txt: change arrows to arrows_item Qwen Assistant | mr:sorrowmoss_seed_item [2026/07/12 00:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Sorrowmoss Seed - Code References ====== | ||
| + | This page contains raw code references and configuration excerpts for the Sorrowmoss Seed entity. | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | * **getEntityKind() value:** Sorrowmoss.Seed (inner class of Sorrowmoss plant) | ||
| + | |||
| + | ===== Java Implementation ===== | ||
| + | * **Plant class:** [[https:// | ||
| + | - Contains inner Seed class extending Seed base class | ||
| + | - image = 2 (uses same sprite as plant) | ||
| + | - plantClass = Sorrowmoss.class | ||
| + | - alchemyClass = PotionOfToxicGas.class | ||
| + | - Eating effect: Applies Poison (duration based on hero level) + Invisibility (2 turns) | ||
| + | * **Seed registration: | ||
| + | - registerItemClassByName(Sorrowmoss.Seed.class, | ||
| + | * **Level object registration: | ||
| + | - registerObjectClass(Sorrowmoss.class) | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no dedicated JSON configuration exists | ||
| + | |||
| + | ===== Lua Implementation ===== | ||
| + | **Alchemy recipe:** [[https:// | ||
| + | <code lua> | ||
| + | -- Recipe: 1 Sorrowmoss seed + 1 Corpse Dust = Potion of Toxic Gas | ||
| + | local sorrowmossRecipe = {} | ||
| + | table.insert(sorrowmossRecipe, | ||
| + | table.insert(sorrowmossRecipe, | ||
| + | RPD.AlchemyRecipes.registerRecipeFromLua(sorrowmossRecipe, | ||
| + | </ | ||
| + | |||
| + | **Sprout spell (random seed selection): | ||
| + | * Sorrowmoss.Seed included in random seed pool | ||
| + | |||
| + | **Spawner trap:** [[https:// | ||
| + | * Sorrowmoss can spawn as level object from trap | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | * **English: | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <!-- Seed name becomes "seed of Sorrowmoss" | ||
| + | </ | ||
| + | |||
| + | * **Russian: | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <!-- Seed name becomes " | ||
| + | </ | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | * **Plant:** [[mr: | ||
| + | * **Alchemy Result:** [[mr: | ||
| + | * **Base Classes:** Seed, Plant | ||
mr/sorrowmoss_seed_item.txt · Last modified: by 127.0.0.1
