hydroponics

Vars | |
age | Current age |
---|---|
cycledelay | About 10 seconds / cycle |
dead | Is it dead? |
harvest | Ready to harvest? |
lastcycle | Used for timing of cycles. |
lastproduce | Last time it was harvested |
lastuser | The last user to add a reagent to the tray, mostly for logging purposes. |
maxnutri | The maximum nutrient of water in the tray |
maxwater | The maximum amount of water in the tray |
mutmod | Nutriment's effect on mutations |
myseed | The currently planted seed |
nutridrain | How many units of nutrients will be drained in the tray. |
pestlevel | The amount of pests in the tray (max 10) |
plant_health | Its health |
rating | Obtained from the quality of the parts used in the tray, determines nutrient drain rate. |
recent_bee_visit | Have we been visited by a bee recently, so bees dont overpollinate one plant |
self_sustaining | If the tray generates nutrients and water on its own |
self_sustaining_overlay_icon_state | The icon state for the overlay used to represent that this tray is self-sustaining. |
toxic | Toxicity in the tray? |
unwrenchable | Can it be unwrenched to move? |
waterlevel | The amount of water in the tray (max 100) |
weedlevel | The amount of weeds in the tray (max 10) |
yieldmod | Nutriment's effect on yield |
Procs | |
adjustHealth | Adjust Health. Raises the tray's plant_health stat by a given amount, with total health determined by the seed's endurance. |
adjustPests | Adjust Pests. Raises the tray's pest level stat by a given amount. |
adjustToxic | Adjust Health. Raises the plant's plant_health stat by a given amount, with total health determined by the seed's endurance. |
adjustWater | Tray Setters - The following procs adjust the tray or plants variables, and make sure that the stat doesn't go out of bounds. Adjust water. Raises or lowers tray water values by a set value. Adding water will dillute toxicity from the tray. |
adjustWeeds | Adjust Weeds. Raises the plant's weed level stat by a given amount. |
after_mutation | Called after plant mutation, update the appearance of the tray content and send a visible_message() |
apply_chemicals | This is NOW the gradual affects that each chemical applies on every process() proc. Nutrients now use a more robust reagent holder in order to apply less insane stat changes as opposed to 271 lines of individual statline effects. Shoutout to the original comments on chems, I just cleaned a few up. |
mutatepest | Pest Mutation Proc. When a tray is mutated with high pest values, it will spawn spiders. |
mutation_roll | Contains the reagents within the tray. |
plantdies | Plant Death Proc. Cleans up various stats for the plant upon death, including pests, harvestability, and plant health. |
pollinate | Plant Cross-Pollination. Checks all plants in the tray's oview range, then averages out the seed's potency, instability, and yield values. If the seed's instability is >= 20, the seed donates one of it's reagents to that nearby plant. |
spawnplant | Spawn Plant. Upon using strange reagent on a tray, it will spawn a killer tomato or killer tree at random. |
update_tray | Update Tray Proc Handles plant harvesting on the tray side, by clearing the sead, names, description, and dead stat. Shuts off autogrow if enabled. Sends messages to the cleaer about plants harvested, or if nothing was harvested at all. |
weedinvasion | What happens when a tray's weeds grow too large. Plants a new weed in an empty tray, then resets the tray. |
Var Details
age

Current age
cycledelay

About 10 seconds / cycle
dead

Is it dead?
harvest

Ready to harvest?
lastcycle

Used for timing of cycles.
lastproduce

Last time it was harvested
lastuser

The last user to add a reagent to the tray, mostly for logging purposes.
maxnutri

The maximum nutrient of water in the tray
maxwater

The maximum amount of water in the tray
mutmod

Nutriment's effect on mutations
myseed

The currently planted seed
nutridrain

How many units of nutrients will be drained in the tray.
pestlevel

The amount of pests in the tray (max 10)
plant_health

Its health
rating

Obtained from the quality of the parts used in the tray, determines nutrient drain rate.
recent_bee_visit

Have we been visited by a bee recently, so bees dont overpollinate one plant
self_sustaining

If the tray generates nutrients and water on its own
self_sustaining_overlay_icon_state

The icon state for the overlay used to represent that this tray is self-sustaining.
toxic

Toxicity in the tray?
unwrenchable

Can it be unwrenched to move?
waterlevel

The amount of water in the tray (max 100)
weedlevel

The amount of weeds in the tray (max 10)
yieldmod

Nutriment's effect on yield
Proc Details
adjustHealth
Adjust Health. Raises the tray's plant_health stat by a given amount, with total health determined by the seed's endurance.
- adjustamt - Determines how much the plant_health will be adjusted upwards or downwards.
adjustPests
Adjust Pests. Raises the tray's pest level stat by a given amount.
- adjustamt - Determines how much the pest level will be adjusted upwards or downwards.
adjustToxic
Adjust Health. Raises the plant's plant_health stat by a given amount, with total health determined by the seed's endurance.
- adjustamt - Determines how much the plant_health will be adjusted upwards or downwards.
adjustWater
Tray Setters - The following procs adjust the tray or plants variables, and make sure that the stat doesn't go out of bounds. Adjust water. Raises or lowers tray water values by a set value. Adding water will dillute toxicity from the tray.
- adjustamt - determines how much water the tray will be adjusted upwards or downwards.
adjustWeeds
Adjust Weeds. Raises the plant's weed level stat by a given amount.
- adjustamt - Determines how much the weed level will be adjusted upwards or downwards.
after_mutation
Called after plant mutation, update the appearance of the tray content and send a visible_message()
apply_chemicals
This is NOW the gradual affects that each chemical applies on every process() proc. Nutrients now use a more robust reagent holder in order to apply less insane stat changes as opposed to 271 lines of individual statline effects. Shoutout to the original comments on chems, I just cleaned a few up.
mutatepest
Pest Mutation Proc. When a tray is mutated with high pest values, it will spawn spiders.
- User - Person who last added chemicals to the tray for logging purposes.
mutation_roll
Contains the reagents within the tray.
plantdies
Plant Death Proc. Cleans up various stats for the plant upon death, including pests, harvestability, and plant health.
pollinate
Plant Cross-Pollination. Checks all plants in the tray's oview range, then averages out the seed's potency, instability, and yield values. If the seed's instability is >= 20, the seed donates one of it's reagents to that nearby plant.
- Range - The Oview range of trays to which to look for plants to donate reagents.
spawnplant
Spawn Plant. Upon using strange reagent on a tray, it will spawn a killer tomato or killer tree at random.
update_tray
Update Tray Proc Handles plant harvesting on the tray side, by clearing the sead, names, description, and dead stat. Shuts off autogrow if enabled. Sends messages to the cleaer about plants harvested, or if nothing was harvested at all.
- User - The mob who clears the tray.
weedinvasion
What happens when a tray's weeds grow too large. Plants a new weed in an empty tray, then resets the tray.