plant 
Vars | |
| base_endurance | The starting amount of endurance this plant has. |
|---|---|
| base_harvest_amt | How many times you can harvest this plant. |
| base_harvest_yield | How many instances of the product are yielded per harvest. |
| base_health | The starting health value of this plant. |
| base_maturation | The baseline amount of seconds to reach maturity. Half of this value is the time to reach "Growing" |
| base_potency | The starting amount of potency this plant has. |
| base_production | The baseline amount of seconds AFTER reaching maturity to produce a harvest. |
| force_single_harvest | If TRUE, this plant can only ever be harvested once. However, it will receive benefits to compensate. |
| gene_holder | The genes of the plant. |
| generation | The generation of this plant. Cool tracking to see how far the genepool as come. |
| genome | A pseudoarbitrary value. When attempting to splice two plants together, a larger difference in genome value makes it more difficult. 0 genome delta is a 100% splice chance, 10 is 0% |
| growing_icon | the file that stores the sprites of the growing plant from this seed. |
| growthstages | How many icon states there are between start and mature (inclusive) |
| 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]. |
| in_seed | Ref to the seed we're in, if any. |
| innate_genes | Innate genes that all instances of this plant have. |
| is_hybrid | If this plant was created as a result of genetic splicing. |
| latent_genes | Genes this plant has, may or may not be active. |
| needs_water | If the plant needs water to survive. |
| plant_status | The status of the plant in the tray. Whether it's harvestable, alive, missing or dead. |
| possible_mutations | Possible mutation paths for this plant. |
| product_path | Typepath of the product upon harvesting. |
| rarity | Rarity, decides export value. |
| reagents_per_potency | Per 1 point of potency, the product will contain that much reagent. |
| seed_path | Type of seed produced. |
| species | Used to update icons. Should match the name in the sprites unless all icon_* are overridden. |
Procs | |
| get_effective_stat | Returns the given stat, including active gene modifiers. |
| get_growth_for_state | Get the required growth value to reach a given state. |
| get_growth_status | Returns the plant's growth state. Args: |
| inherit_reagents_from_genes | Replace reagents_per_potency with genes. |
| prepare_product | This is where plant chemical products are handled. |
| set_base_stat | Returns the given stat, including active gene modifiers. |
Var Details
base_endurance 
The starting amount of endurance this plant has.
base_harvest_amt 
How many times you can harvest this plant.
base_harvest_yield 
How many instances of the product are yielded per harvest.
base_health 
The starting health value of this plant.
base_maturation 
The baseline amount of seconds to reach maturity. Half of this value is the time to reach "Growing"
base_potency 
The starting amount of potency this plant has.
base_production 
The baseline amount of seconds AFTER reaching maturity to produce a harvest.
force_single_harvest 
If TRUE, this plant can only ever be harvested once. However, it will receive benefits to compensate.
gene_holder 
The genes of the plant.
generation 
The generation of this plant. Cool tracking to see how far the genepool as come.
genome 
A pseudoarbitrary value. When attempting to splice two plants together, a larger difference in genome value makes it more difficult. 0 genome delta is a 100% splice chance, 10 is 0%
growing_icon 
the file that stores the sprites of the growing plant from this seed.
growthstages 
How many icon states there are between start and mature (inclusive)
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].
in_seed 
Ref to the seed we're in, if any.
innate_genes 
Innate genes that all instances of this plant have.
is_hybrid 
If this plant was created as a result of genetic splicing.
latent_genes 
Genes this plant has, may or may not be active.
needs_water 
If the plant needs water to survive.
plant_status 
The status of the plant in the tray. Whether it's harvestable, alive, missing or dead.
possible_mutations 
Possible mutation paths for this plant.
product_path 
Typepath of the product upon harvesting.
rarity 
Rarity, decides export value.
reagents_per_potency 
Per 1 point of potency, the product will contain that much reagent.
seed_path 
Type of seed produced.
species 
Used to update icons. Should match the name in the sprites unless all icon_* are overridden.
Proc Details
get_effective_stat
Returns the given stat, including active gene modifiers.
get_growth_for_state
Get the required growth value to reach a given state.
get_growth_status
Returns the plant's growth state. Args:
- gene_holder: The plant's plant_gene_holder
- growth: Given growth time
inherit_reagents_from_genes
Replace reagents_per_potency with genes.
prepare_product
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_base_stat
Returns the given stat, including active gene modifiers.