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

reagent

Reagent genes store a reagent ID and reagent ratio.

Vars

rateThe amount of reagent generated by the plant. The equation is [1 + ((max_volume*(potency/100)) * rate)]
reagent_idThe typepath of the actual reagent that this gene is tied to.

Procs

try_upgrade_geneIntends to compare a reagent gene with a set of seeds, and if the seeds contain the same gene, with more production rate, upgrades the rate to the highest of the two.

Var Details

rate

The amount of reagent generated by the plant. The equation is [1 + ((max_volume*(potency/100)) * rate)]

reagent_id

The typepath of the actual reagent that this gene is tied to.

Proc Details

try_upgrade_gene

Intends to compare a reagent gene with a set of seeds, and if the seeds contain the same gene, with more production rate, upgrades the rate to the highest of the two.

Called when plants are crossbreeding, this looks for two matching reagent_ids, where the rates are greater, in order to upgrade.