fish_trait ![code/modules/fishing/fish/fish_traits.dm 24](git.png)
Vars | |
added_difficulty | Depending on the value, fish with trait will be reported as more or less difficult in the catalog. |
---|---|
catalog_description | Description of the trait in the fishing catalog and scanner |
diff_traits_inheritability | Same as above, but for when only one has it. |
fish_whitelist | An optional whitelist of fish that can get this trait |
incompatible_traits | A list of traits fish cannot have in conjunction with this trait. |
infusion_entry | If set, the fish may return this infusion entry when get_infusion_entry is called instead of /datum/infuser_entry/fish |
inheritability | The probability this trait can be inherited by offsprings when both mates have it |
reagents_to_add | Reagents to add to the fish whenever the COMSIG_GENERATE_REAGENTS_TO_ADD signal is sent. Their values will be multiplied later. |
spontaneous_manifest_types | A list of fish types and traits that they can spontaneously manifest with associated probabilities |
Procs | |
add_reagents | Signal sent when we need to generate an abstract holder containing reagents to be transfered, usually as a result of the fish being eaten by someone |
add_venom | Proc that adds or changes the venomous when the fish size and/or weight are updated |
apply_to_fish | Applies some special qualities to the fish that has been spawned |
apply_to_mob | Applies some special qualities to basic mobs generated by fish (i.e. chasm chrab --> young lobstrosity --> lobstrosity). |
catch_weight_mod | Catch weight table modifier from this mod, needs to return a list with two values |
change_venom_on_death | Proc that changes the venomous element based on if the fish is alive or dead (basically dead fish are weaker). |
difficulty_mod | Difficulty modifier from this mod, needs to return a list with two values |
eat_fish | Proc used by both the predator and necrophage traits. |
minigame_mod | Returns special minigame rules and effects applied by this trait |
Var Details
added_difficulty ![code/modules/fishing/fish/fish_traits.dm 39](git.png)
Depending on the value, fish with trait will be reported as more or less difficult in the catalog.
catalog_description ![code/modules/fishing/fish/fish_traits.dm 27](git.png)
Description of the trait in the fishing catalog and scanner
diff_traits_inheritability ![code/modules/fishing/fish/fish_traits.dm 33](git.png)
Same as above, but for when only one has it.
fish_whitelist ![code/modules/fishing/fish/fish_traits.dm 37](git.png)
An optional whitelist of fish that can get this trait
incompatible_traits ![code/modules/fishing/fish/fish_traits.dm 29](git.png)
A list of traits fish cannot have in conjunction with this trait.
infusion_entry ![code/modules/fishing/fish/fish_traits.dm 45](git.png)
If set, the fish may return this infusion entry when get_infusion_entry is called instead of /datum/infuser_entry/fish
inheritability ![code/modules/fishing/fish/fish_traits.dm 31](git.png)
The probability this trait can be inherited by offsprings when both mates have it
reagents_to_add ![code/modules/fishing/fish/fish_traits.dm 41](git.png)
Reagents to add to the fish whenever the COMSIG_GENERATE_REAGENTS_TO_ADD signal is sent. Their values will be multiplied later.
spontaneous_manifest_types ![code/modules/fishing/fish/fish_traits.dm 35](git.png)
A list of fish types and traits that they can spontaneously manifest with associated probabilities
Proc Details
add_reagents
Signal sent when we need to generate an abstract holder containing reagents to be transfered, usually as a result of the fish being eaten by someone
add_venom
Proc that adds or changes the venomous when the fish size and/or weight are updated
apply_to_fish
Applies some special qualities to the fish that has been spawned
apply_to_mob
Applies some special qualities to basic mobs generated by fish (i.e. chasm chrab --> young lobstrosity --> lobstrosity).
catch_weight_mod
Catch weight table modifier from this mod, needs to return a list with two values
change_venom_on_death
Proc that changes the venomous element based on if the fish is alive or dead (basically dead fish are weaker).
difficulty_mod
Difficulty modifier from this mod, needs to return a list with two values
eat_fish
Proc used by both the predator and necrophage traits.
minigame_mod
Returns special minigame rules and effects applied by this trait