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

fish_evolution

Fish evolution datums

If present in a fish's evolution_types list, and other conditions are met in check_conditions() then there's a chance the offspring may be of a new type rather than the same as its source or mate (if any).

Vars

conditions_noteA text string shown in the catalog, containing information on conditions specific to this evolution.
new_fish_typeThe obj/item/fish path of the new fish
new_traitsA list of traits added to the new fish. These take priority over the parents' traits.
removed_traitsIf set, these traits will be removed from the new fish.
required_temperature_maxThe maximum required temperature for the evolved fish to spawn
required_temperature_minThe minimum required temperature for the evolved fish to spawn

Procs

check_conditionsThe main proc that checks whether this can happen or not. Please do keep in mind a mate may not be present for fish with the self-reproductive trait.
get_evolution_tooltipCalled by the fish analyzer right click function. Returns a text string used as tooltip.
register_fishProc called to let evolution register signals that are needed for various conditions.

Var Details

conditions_note

A text string shown in the catalog, containing information on conditions specific to this evolution.

new_fish_type

The obj/item/fish path of the new fish

new_traits

A list of traits added to the new fish. These take priority over the parents' traits.

removed_traits

If set, these traits will be removed from the new fish.

required_temperature_max

The maximum required temperature for the evolved fish to spawn

required_temperature_min

The minimum required temperature for the evolved fish to spawn

Proc Details

check_conditions

The main proc that checks whether this can happen or not. Please do keep in mind a mate may not be present for fish with the self-reproductive trait.

get_evolution_tooltip

Called by the fish analyzer right click function. Returns a text string used as tooltip.

register_fish

Proc called to let evolution register signals that are needed for various conditions.