/tg/ Station 13 - Modules - TypesVar Details - Proc Details

hydroponics

Vars

ageCurrent age
cycledelayAbout 10 seconds / cycle
deadIs it dead?
harvestReady to harvest?
lastcycleUsed for timing of cycles.
lastproduceLast time it was harvested
lastuserThe last user to add a reagent to the tray, mostly for logging purposes.
maxnutriThe maximum nutrient of water in the tray
maxwaterThe maximum amount of water in the tray
mutmodNutriment's effect on mutations
myseedThe currently planted seed
nutridrainHow many units of nutrients will be drained in the tray.
pestlevelThe amount of pests in the tray (max 10)
plant_healthIts health
ratingObtained from the quality of the parts used in the tray, determines nutrient drain rate.
recent_bee_visitHave we been visited by a bee recently, so bees dont overpollinate one plant
self_sustainingIf the tray generates nutrients and water on its own
self_sustaining_overlay_icon_stateThe icon state for the overlay used to represent that this tray is self-sustaining.
toxicToxicity in the tray?
unwrenchableCan it be unwrenched to move?
waterlevelThe amount of water in the tray (max 100)
weedlevelThe amount of weeds in the tray (max 10)
yieldmodNutriment's effect on yield

Procs

adjustHealthAdjust Health. Raises the tray's plant_health stat by a given amount, with total health determined by the seed's endurance.
adjustPestsAdjust Pests. Raises the tray's pest level stat by a given amount.
adjustToxicAdjust Health. Raises the plant's plant_health stat by a given amount, with total health determined by the seed's endurance.
adjustWaterTray 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.
adjustWeedsAdjust Weeds. Raises the plant's weed level stat by a given amount.
after_mutationCalled after plant mutation, update the appearance of the tray content and send a visible_message()
apply_chemicalsThis 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.
mutatepestPest Mutation Proc. When a tray is mutated with high pest values, it will spawn spiders.
mutation_rollContains the reagents within the tray.
plantdiesPlant Death Proc. Cleans up various stats for the plant upon death, including pests, harvestability, and plant health.
pollinatePlant 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.
spawnplantSpawn Plant. Upon using strange reagent on a tray, it will spawn a killer tomato or killer tree at random.
update_trayUpdate 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.
weedinvasionWhat 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.

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.