Plant System

From Muds and Dragons
Jump to: navigation, search

The plant system handles all growth of specific trees and plants. Most plants die in the winter if they aren't harvested, some go dormant until their next cycle.

  • Trees take 3 years to fruit and produce fruit for 7+ years.

See also: Plant Table

Plant Commands

SEARCH FOR <plant> searches immediate area for a specific plant
PICK <item> FROM <plant> item refers to fruit, berry, flower
DISSECT <item> FROM <plant> item refers to leaf, root, etc.
CULTIVATE <plant> picks whole plant, only way to get root or to plant elsewhere
PLANT <plant/seed> plants whole plant (must be undamaged and in suitable environment) or seed
HARVEST <plant> picks whole plant for general use

plant_data

  • idx
  • plant_id
  • plant_map
  • plant_x
  • plant_y
  • plant_z
  • plant_leaf - Current Yield
  • plant_root - Current Yield
  • plant_flower - Current Yield
  • plant_fruit - Current Yield
  • plant_age - plant date / birth
  • plant_stage - seedling, growing, budding, blooming, fruiting
  • plant_dc - difficulty locating the plant
  • NOTES

plant_table

  • plant_id
  • plant_name - I.E. cherry, almond, pepper, belladonna, deathroot, foxglove, wolfsbane, daffodil, hemlock, nightshade, mandrake
  • plant_type - tree, plant
  • plant_ftype - fruit, nut, spice, poison, herb
  • plant_leaf - Max Yield
  • plant_root - Max Yield
  • plant_flower - Max Yield
  • plant_fruit - Max Yield
  • plant_rarity
  • plant_zone - wild, domestic, both
  • plant_terrain - plains, forest, tundra, desert, saltwater, freshwater, mountain
  • plant_season - when does the plant get planted?
  • plant_duration - time from planting to full bloom (in days)
  • plant_dc - difficulty when looking for plant

functions

  • update_plants() - ticks to increase the plant_duration / age dayly
  • load_plant()
  • unload_plant (plant id) or (plant location) - no reason to keep all plants in memory if players aren't around them.
  • show_plant(plant id)
  • list_plants(location, dc)