User Tools

Site Tools


mr:seeds_mechanic

Seeds Mechanic - Code References

Java Classes

Seed Implementations

JSON Configuration

This mechanic is implemented in Java, no JSON configuration exists

String Resources

<!-- English strings (values/strings_all.xml) -->
<string name="Seed_Name">seed</string>
<string name="Seed_Desc">A seed of some plant. It can be planted to grow a plant or eaten for an immediate effect.</string>
 
<!-- Individual seed names would be defined in their respective plant classes -->

Lua Scripts

This mechanic is implemented in Java, no Lua scripts exist for seeds directly

Implementation Details

  • Base Class: Seed extends Item
  • Planting: Uses Level.plant(Seed seed, int pos) method
  • Eating: Seeds can be eaten for immediate effects (different from original Pixel Dungeon)
  • Growth: Seeds grow into plants over time when planted on suitable terrain
  • Seed Pouch: Special bag for storing seeds (SeedPouch.java)

Seed Effects When Eaten

  • Earthroot: Barkskin buff (armor = STR/4), Roots debuff (25 turns)
  • Firebloom: Burning buff, Speed buff (1 turn)
  • Icecap: Heals 0-10% max HP, Frost buff (6-14 turns, 2x duration)
  • Sungrass: Heals 0-25% max HP, Charm debuff (10-15 turns)
  • Sorrowmoss: Poison debuff (level turns), Invisibility buff (2 turns)
  • Fadeleaf: Teleports hero, Vertigo debuff (20 turns) - better to plant and step on plant
  • Dreamweed: Mind Vision buff (1 turn), Vertigo debuff (20 turns)
  • Rotberry: Creates toxic gas and paralytic gas clouds
  • Moongrace: (Refer to Moongrace.java for specific effects)
mr/seeds_mechanic.txt · Last modified: by 127.0.0.1