Goonstation 13 - Modules - TypesProc Details

/datum/plant_gene_strain

Procs

changes_after_splicingThis proc is called after a seed is created and received all changes associated with being spliced This should also be called whenever you have changes that need to be done whenever this commut touches a seed
get_plant_stat_modifierThis proc is called when a commut does modify a stat. This lets more plants be affected by stuff like superior quality and move some magic numbers out of plantpot.dm This proc takes the base value of the stat and returns a modifier that is added/subtracted from the plant
on_additionThis proc is called when a plant or seed firstly receives the gene strain in question e.g. through HYPaddCommut, HYPnewcommutcheck. Use this if you want to manipulate the plantgenes if its the first time the generation of seeds gains it This is not called when a seed receive this plant gene through passing along the generation e.g. splicing or HYPpassplantgenes.
on_passingThis proc is called when a plant or seed firstly receives the gene strain in question e.g. throught splicing or HYPpassplantgenes. call this if you want a certain effect to happen multiple times each generation.
on_removalThis proc is called when a plant or seed removes the gene strain in question e.g. through HYPremoveCommut This may be usefull for some whacky gene strains that do something when added and decides at some point to remove themselves and e.g. tank stats as a result

Proc Details

changes_after_splicing

This proc is called after a seed is created and received all changes associated with being spliced This should also be called whenever you have changes that need to be done whenever this commut touches a seed

get_plant_stat_modifier

This proc is called when a commut does modify a stat. This lets more plants be affected by stuff like superior quality and move some magic numbers out of plantpot.dm This proc takes the base value of the stat and returns a modifier that is added/subtracted from the plant

on_addition

This proc is called when a plant or seed firstly receives the gene strain in question e.g. through HYPaddCommut, HYPnewcommutcheck. Use this if you want to manipulate the plantgenes if its the first time the generation of seeds gains it This is not called when a seed receive this plant gene through passing along the generation e.g. splicing or HYPpassplantgenes.

on_passing

This proc is called when a plant or seed firstly receives the gene strain in question e.g. throught splicing or HYPpassplantgenes. call this if you want a certain effect to happen multiple times each generation.

on_removal

This proc is called when a plant or seed removes the gene strain in question e.g. through HYPremoveCommut This may be usefull for some whacky gene strains that do something when added and decides at some point to remove themselves and e.g. tank stats as a result