hydroponics
Vars | |
age | Current age |
---|---|
cycledelay | About 10 seconds / cycle |
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 reagent container size of 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 |
plant_status | The status of the plant in the tray. Whether it's harvestable, alive, missing or dead. |
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 | |
adjust_pestlevel | Adjust Pests. Raises the tray's pest level stat by a given amount. |
adjust_plant_health | Adjust Health. Raises the tray's plant_health stat by a given amount, with total health determined by the seed's endurance. |
adjust_toxic | Adjust toxicity. Raises the plant's toxic stat by a given amount. |
adjust_waterlevel | Adjust water. Raises or lowers tray water values by a set value. Adding water will dillute toxicity from the tray. Returns the amount of water actually added/taken |
adjust_weedlevel | 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. |
can_bee_pollinate | Bee pollinate proc. Checks if the bee can pollinate the plant |
mutatepest | Pest Mutation Proc. When a tray is mutated with high pest values, it will spawn spiders. |
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 its reagents to that nearby plant. |
set_seed | Sets a new value for the myseed variable, which is the seed of the plant that's growing inside the tray. |
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 seed, 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
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 reagent container size of 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
plant_status
The status of the plant in the tray. Whether it's harvestable, alive, missing or dead.
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
adjust_pestlevel
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.
adjust_plant_health
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.
adjust_toxic
Adjust toxicity. Raises the plant's toxic stat by a given amount.
- adjustamt - Determines how much the toxic will be adjusted upwards or downwards.
adjust_waterlevel
Adjust water. Raises or lowers tray water values by a set value. Adding water will dillute toxicity from the tray. Returns the amount of water actually added/taken
- adjustamt - determines how much water the tray will be adjusted upwards or downwards.
adjust_weedlevel
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.
can_bee_pollinate
Bee pollinate proc. Checks if the bee can pollinate the plant
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.
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 its reagents to that nearby plant.
- Range - The Oview range of trays to which to look for plants to donate reagents.
set_seed
Sets a new value for the myseed variable, which is the seed of the plant that's growing inside the tray.
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 seed, 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.