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

seeds

Vars

enduranceAmount of health the plant has.
genesStarts as a list of paths, is converted to a list of types on init. Plant gene datums are stored here, see plant_genes.dm for more info.
graft_geneType-path of trait to be applied when grafting a plant.
graftedDetermines if the plant has had a graft removed or not.
growing_iconthe file that stores the sprites of the growing plant from this seed.
growthstagesAmount of growth sprites the plant has.
icon_deadUsed to override dead icon (default is "[species]-dead"). You can use one dead icon for multiple closely related plants with it.
icon_growUsed to override grow icon (default is "[species]-grow"). You can use one grow icon for multiple closely related plants with it.
icon_harvestUsed to override harvest icon (default is "[species]-harvest"). If null, plant will use [icon_grow][growthstages].
lifespanHow long before the plant begins to take damage from age.
maturationUsed to determine which sprite to switch to when growing.
mutatelistThe type of plants that this plant can mutate into.
plant_icon_offsetUsed to offset the plant sprite so that it appears at proper height in the tray
plantnameName of plant when planted.
potencyThe 'power' of a plant. Generally effects the amount of reagent in a plant, also used in other ways.
productA type path. The thing that is created when the plant is harvested.
productdescDescribes the product on the product path.
productionChanges the amount of time needed for a plant to become harvestable.
rarityHow rare the plant is. Used for giving points to cargo when shipping off to CentCom.
reagents_addA list of reagents to add to product.
seed_flagsDetermines if the plant should be allowed to mutate early at 30+ instability.
speciesUsed to update icons. Should match the name in the sprites unless all icon_* are overridden.
weed_chancePercentage chance per tray update to grow weeds
weed_rateIf the chance below passes, then this many weeds sprout during growth
yieldAmount of growns created per harvest. If is -1, the plant/shroom/weed is never meant to be harvested.

Procs

CopyCopy all the variables from one seed to a new instance of the same seed and return it.
adjust_enduranceAdjusts seed endurance up or down according to adjustamt. (Max 100)
adjust_instabilityAdjusts seed instability up or down according to adjustamt. (Max 100)
adjust_lifespanAdjusts seed lifespan up or down according to adjustamt. (Max 100)
adjust_potencyAdjusts seed potency up or down according to adjustamt. (Max 100)
adjust_productionAdjusts seed production seed up or down according to adjustamt. (Max 10)
adjust_weed_chanceAdjusts seed weed chance up or down according to adjustamt. (Max 67%)
adjust_weed_rateAdjusts seed weed grwoth speed up or down according to adjustamt. (Max 10)
adjust_yieldSetters procs Adjusts seed yield up or down according to adjustamt. (Max 10)
apply_graftApplies a graft to this plant.
create_graftCreates a graft from this plant.
get_reagent_purityReturns reagent purity based on seed stats
get_unique_analyzer_textOverride for seeds with unique text for their analyzer. (No newlines at the start or end of unique text!) Returns null if no unique text, or a string of text if there is.
on_chem_reactionOverride for seeds with special chem reactions.
prepare_resultThis is where plant chemical products are handled.
set_enduranceSets the plant's endurance stat to the value of adjustamt. (Max 100)
set_instabilitySets the plant's instability stat to the value of adjustamt. (Max 100)
set_lifespanSets the plant's lifespan stat to the value of adjustamt. (Max 100)
set_potencySets the plant's potency stat to the value of adjustamt. (Max 100)
set_productionSets the plant's production stat to the value of adjustamt. (Max 10)
set_weed_chanceSets the plant's weed growth percentage to the value of adjustamt. (Max 67%)
set_weed_rateSets the plant's weed production rate to the value of adjustamt. (Max 10)
set_yieldSets the plant's yield stat to the value of adjustamt. (Max 10, or 5 with some traits)

Var Details

endurance

Amount of health the plant has.

genes

Starts as a list of paths, is converted to a list of types on init. Plant gene datums are stored here, see plant_genes.dm for more info.

graft_gene

Type-path of trait to be applied when grafting a plant.

grafted

Determines if the plant has had a graft removed or not.

growing_icon

the file that stores the sprites of the growing plant from this seed.

growthstages

Amount of growth sprites the plant has.

icon_dead

Used to override dead icon (default is "[species]-dead"). You can use one dead icon for multiple closely related plants with it.

icon_grow

Used to override grow icon (default is "[species]-grow"). You can use one grow icon for multiple closely related plants with it.

icon_harvest

Used to override harvest icon (default is "[species]-harvest"). If null, plant will use [icon_grow][growthstages].

lifespan

How long before the plant begins to take damage from age.

maturation

Used to determine which sprite to switch to when growing.

mutatelist

The type of plants that this plant can mutate into.

plant_icon_offset

Used to offset the plant sprite so that it appears at proper height in the tray

plantname

Name of plant when planted.

potency

The 'power' of a plant. Generally effects the amount of reagent in a plant, also used in other ways.

product

A type path. The thing that is created when the plant is harvested.

productdesc

Describes the product on the product path.

production

Changes the amount of time needed for a plant to become harvestable.

rarity

How rare the plant is. Used for giving points to cargo when shipping off to CentCom.

reagents_add

A list of reagents to add to product.

seed_flags

Determines if the plant should be allowed to mutate early at 30+ instability.

species

Used to update icons. Should match the name in the sprites unless all icon_* are overridden.

weed_chance

Percentage chance per tray update to grow weeds

weed_rate

If the chance below passes, then this many weeds sprout during growth

yield

Amount of growns created per harvest. If is -1, the plant/shroom/weed is never meant to be harvested.

Proc Details

Copy

Copy all the variables from one seed to a new instance of the same seed and return it.

adjust_endurance

Adjusts seed endurance up or down according to adjustamt. (Max 100)

adjust_instability

Adjusts seed instability up or down according to adjustamt. (Max 100)

adjust_lifespan

Adjusts seed lifespan up or down according to adjustamt. (Max 100)

adjust_potency

Adjusts seed potency up or down according to adjustamt. (Max 100)

adjust_production

Adjusts seed production seed up or down according to adjustamt. (Max 10)

adjust_weed_chance

Adjusts seed weed chance up or down according to adjustamt. (Max 67%)

adjust_weed_rate

Adjusts seed weed grwoth speed up or down according to adjustamt. (Max 10)

adjust_yield

Setters procs Adjusts seed yield up or down according to adjustamt. (Max 10)

apply_graft

Applies a graft to this plant.

Adds the graft trait to this plant if possible. Increases plant stats by 2/3 of the grafts stats to a maximum of 100 (10 for yield). Returns TRUE if the graft could apply its trait successfully, FALSE if it fails to apply the trait. NOTE even if the graft fails to apply the trait it still adjusts the plant's stats and reagents.

Arguments:

create_graft

Creates a graft from this plant.

Creates a new graft from this plant. Sets the grafts trait to this plants graftable trait. Gives the graft a reference to this plant. Copies all the relevant stats from this plant to the graft. Returns the created graft.

get_reagent_purity

Returns reagent purity based on seed stats

get_unique_analyzer_text

Override for seeds with unique text for their analyzer. (No newlines at the start or end of unique text!) Returns null if no unique text, or a string of text if there is.

on_chem_reaction

Override for seeds with special chem reactions.

prepare_result

This is where plant chemical products are handled.

Individually, the formula for individual amounts of chemicals is Potency * the chemical production %, rounded to the fullest 1. Specific chem handling is also handled here, like bloodtype, food taste within nutriment, and the auto-distilling/autojuicing traits. This is where chemical reactions can occur, and the heating / cooling traits effect the reagent container.

set_endurance

Sets the plant's endurance stat to the value of adjustamt. (Max 100)

set_instability

Sets the plant's instability stat to the value of adjustamt. (Max 100)

set_lifespan

Sets the plant's lifespan stat to the value of adjustamt. (Max 100)

set_potency

Sets the plant's potency stat to the value of adjustamt. (Max 100)

set_production

Sets the plant's production stat to the value of adjustamt. (Max 10)

set_weed_chance

Sets the plant's weed growth percentage to the value of adjustamt. (Max 67%)

set_weed_rate

Sets the plant's weed production rate to the value of adjustamt. (Max 10)

set_yield

Sets the plant's yield stat to the value of adjustamt. (Max 10, or 5 with some traits)