code/__DEFINES/fish.dm ![code/__DEFINES/fish.dm0](git.png)
FISHING_DUD | Use in fish tables to denote miss chance. |
---|---|
FISHING_RANDOM_SEED | Used in the the hydro tray fishing spot to define a random seed reward |
FISHING_RANDOM_ORGAN | Used in the surgery fishing spot to define a random organ reward |
FISHING_INFLUENCE | Used in the dimensional rift fishing spot to define influence gain |
FISHING_RANDOM_ARM | Used in the dimensional rift fishing spot to define arm procurement |
FISHING_VENDING_CHUCK | Represents the chance of getting squashed by the vending machine from the vending machine fish source |
FISHING_MINIMUM_DIFFICULTY | The minimum value of the difficulty of the minigame (unless it reaches 0 than it's auto-win) Any lower than this and the fish will be way too lethargic for the minigame to be engaging in the slightest. |
FAV_BAIT_DIFFICULTY_MOD | Difficulty modifier when bait is fish's favorite |
DISLIKED_BAIT_DIFFICULTY_MOD | Difficulty modifier when bait is fish's disliked |
EXPERT_FISHER_DIFFICULTY_MOD | Difficulty modifier when our fisherman has the trait TRAIT_EXPERT_FISHER |
ROD_SLOT_BAIT | Slot defines for the fishing rod and its equipment |
FISHING_HOOK_WEIGHTED | Fishing hook trait that lessens the bounce from hitting the edges of the minigame bar. |
FISHING_HOOK_BIDIRECTIONAL | See FISHING_MINIGAME_RULE_BIDIRECTIONAL |
FISHING_HOOK_NO_ESCAPE | Prevents the user from losing the game by letting the fish get away. |
FISHING_HOOK_ENSNARE | Limits the completion loss of the minigame when the fsh is not on the bait area. |
FISHING_HOOK_KILL | Automatically kills the fish after a while, at the cost of killing it. |
FISHING_LINE_CLOAKED | Reduces the difficulty of the minigame |
FISHING_LINE_BOUNCY | Much like FISHING_HOOK_ENSNARE but for the fishing line. |
FISHING_LINE_STIFF | The sorta opposite of FISHING_LINE_BOUNCY. It makes it slower to gain completion and faster to lose it. |
FISHING_LINE_AUTOREEL | Skip the biting phase and go straight to the fishing phase. |
FISHING_MINIGAME_RULE_BIDIRECTIONAL | Keeps the bait from falling from gravity, instead allowing the player to move the bait down with right click. |
FISHING_MINIGAME_RULE_NO_ESCAPE | Prevents the player from losing the minigame when the completion reaches 0 |
FISHING_MINIGAME_RULE_KILL | Automatically kills the fish after a while, at the cost of killing it |
FISHING_MINIGAME_RULE_NO_EXP | Prevents the fishing skill from having an effect on the minigame and experience from being awarded |
FISHING_MINIGAME_RULE_ANTIGRAV | If enabled, the minigame will occasionally screw around and invert the velocity of the bait |
FISHING_MINIGAME_RULE_FLIP | Will filp the minigame hud for the duration of the effect |
FISHING_MINIGAME_AUTOREEL | Skip the biting phase and go straight to the minigame, avoiding the penalty for having slow reflexes. |
FISHING_MINIGAME_RULE_CAMO | The fish will fade in and out at intervals |
FISHING_MINIGAME_ACTIVE_EFFECTS | all the effects that are active and will last for a few seconds before triggering a cooldown |
FISHING_DEFAULT_HOOK_BONUS_ADDITIVE | The default additive value for fishing hook catch weight modifiers. |
FISHING_DEFAULT_HOOK_BONUS_MULTIPLICATIVE | The default multiplicative value for fishing hook catch weight modifiers. |
AQUARIUM_LAYER_STEP | The distance that should separate each layer of the aquarium |
AQUARIUM_MIN_OFFSET | Aquarium content layer offsets |
AQUARIUM_GLASS_LAYER | The layer of the glass overlay |
AQUARIUM_BORDERS_LAYER | The layer of the aquarium pane borders |
AQUARIUM_BELOW_GLASS_LAYER | Layer for stuff rendered below the glass overlay |
FISH_SIZE_TINY_MAX | Fish size thresholds for w_class. |
FISH_SIZE_TWO_HANDS_REQUIRED | size threshold for requiring two-handed carry |
MAX_FISH_DEVIATION_COEFF | The coefficient for maximum weight/size divergence relative to the averages. |
FISH_GROWTH_MULT | Base multiplier of the difference between current size and weight and their maximum value used to calculate how much fish grow each time they're fed, alongside with the current hunger, and the current size and weight, meaning bigger fish naturally tend to grow way slowier |
FISH_GROWTH_PEAK | Growth peaks at 45% hunger but very rapidly wanes past that. |
FISH_SIZE_WEIGHT_GROWTH_MALUS | Used as part of the divisor to slow down growth of bigger fish |
FISH_GRIND_RESULTS_WEIGHT_DIVISOR | The volume of the grind results is multiplied by the fish' weight and divided by this. |
FISH_FILLET_NUMBER_SIZE_DIVISOR | The number of fillets is multiplied by the fish' size and divided by this. |
FISH_WEIGHT_SLOWDOWN | The slowdown of the fish when carried begins at this value |
FISH_WEIGHT_SLOWDOWN_DIVISOR | The value of the slowdown equals to the weight divided by this (and then at the power of a sub-1 exponent) |
FISH_WEIGHT_SLOWDOWN_EXPONENT | The sub-one exponent that results in the final slowdown of the fish item |
FISH_WEIGHT_FORCE_DIVISOR | Used to calculate the force of the fish by comparing (1 + log(weight/this_define)) and the w_class of the item. |
FISH_WEIGHT_GRIND_TO_BITE_MULT | The multiplier used in the FISH_WEIGHT_BITE_DIVISOR define |
FISH_WEIGHT_BITE_DIVISOR | Used to calculate how many bites a fish can take and therefore the amount of reagents it has. |
GET_FISH_SLOWDOWN | Set of operations that calculate the slowdown of fish based on weight |
GET_FISH_WEIGHT_RANK | Gets a "rank" for fish weight to determine the force of the fish (or fish tank) basically, a gross estimate based on how weight generaly scales up (250, 500, 1000, 2000, 4000 etc...) for most fish |
NEW_FISH_BREEDING_TIMEOUT_MULT | The breeding timeout for newly instantiated fish is multiplied by this. |
NEW_FISH_LAST_FEEDING_MULT | The last feeding timestamp of newly instantiated fish is multiplied by this: ergo, they spawn 50% hungry. |
FISH_FLAG_SHOW_IN_CATALOG | This fish is shown in the catalog and on the wiki (this only matters as an initial, compile-time value) |
FISH_DO_FLOP_ANIM | This fish has a flopping animation done through matrices |
FISH_FLAG_PETTED | This fish has been petted in the last 30 seconds |
FISH_FLAG_EXPERIMENT_SCANNABLE | This fish can be scanned to complete fish scanning experiments |
FISH_FLAG_UPDATING_SIZE_AND_WEIGHT | It lets us know that fish/update_size_and_weight() is currently running. |
FISH_FLAG_OVERPOPULATED | Flag added when the population of this fish type exceeeds the stable population inside the aquarium |
FISH_FLAG_SAFE_TEMPERATURE | Flag added when in an aquarium which temperature is within its safe limits |
FISH_FLAG_SAFE_FLUID | Flag added when in an aquarium with the right fluid type. |
FISH_RARITY_BASIC | How likely one's to find a given fish from random fish cases. |
AQUARIUM_FLUID_FRESHWATER | Aquarium fluid variables. The fish' required fluid has to match this, or it'll slowly die. |
AQUARIUM_COMPANY | Fluff. The name of the aquarium company shown in the fish catalog |
ELECTROGENESIS_DURATION | how long between electrogenesis zaps |
ELECTROGENESIS_VARIANCE | a random range the electrogenesis cooldown varies by |
FISHING_MINIGAME_AREA | The height of the minigame slider. Not in pixels, but minigame units. |
FISH_SAFE_COOKING_DURATION | The fish needs to be cooked for at least this long so that it can be safely eaten |
FISH_PROPERTIES_FAV_BAIT | Defines for fish properties from the collect_fish_properties proc |
FISH_BAIT_TYPE | Define for favorite and disliked baits that aren't just item typepaths. |
FISH_WEIGHT_MULT_WITHOUT_BAIT | We multiply the weight of fish inside the loot table by this value if we are goofy enough to fish without a bait. |
FISH_SOURCE_FLAG_EXPLOSIVE_MALUS | Flag for fish sources. It makes large explosions less efficient at spawning fish. Meant for lazy fishing spots that cover multiple turfs (rivers, oceans etc.) |
FISH_SOURCE_FLAG_NO_BLUESPACE_ROD | The fish source is not elegible for random rewards from bluespace fishing rods |
FISH_SOURCE_FLAG_IGNORE_HIDDEN_ON_CATALOG | When examined by someone with enough fishing skill, this will also display fish that doesn't have FISH_FLAG_SHOW_IN_CATALOG |
FISH_SOURCE_FLAG_EXPLOSIVE_NONE | This fish source will not spawn fish on explosions |
FISH_AUTOWIKI_FILENAME | A macro to ensure the wikimedia filenames of fish icons are unique, especially since there're a couple fish that have quite ambiguous names/icon_states like "checkered" or "pike" |
FISH_SOURCE_AUTOWIKI_NAME | The list keys for the autowiki for fish sources |
FISH_SOURCE_AUTOWIKI_DUD | Special value for the name key that always comes first when the data is sorted, regardless of weight. |
FISH_SOURCE_AUTOWIKI_OTHER | Special value for the name key that always comes last |
FISH_SOURCE_AUTOWIKI_QUESTIONMARK | The filename for the icon for "other stuff" which we don't articulate about on the autowiki |
Define Details
AQUARIUM_BELOW_GLASS_LAYER ![code/__DEFINES/fish.dm 123](git.png)
Layer for stuff rendered below the glass overlay
AQUARIUM_BORDERS_LAYER ![code/__DEFINES/fish.dm 121](git.png)
The layer of the aquarium pane borders
AQUARIUM_COMPANY ![code/__DEFINES/fish.dm 228](git.png)
Fluff. The name of the aquarium company shown in the fish catalog
AQUARIUM_FLUID_FRESHWATER ![code/__DEFINES/fish.dm 220](git.png)
Aquarium fluid variables. The fish' required fluid has to match this, or it'll slowly die.
AQUARIUM_GLASS_LAYER ![code/__DEFINES/fish.dm 119](git.png)
The layer of the glass overlay
AQUARIUM_LAYER_STEP ![code/__DEFINES/fish.dm 114](git.png)
The distance that should separate each layer of the aquarium
AQUARIUM_MIN_OFFSET ![code/__DEFINES/fish.dm 116](git.png)
Aquarium content layer offsets
DISLIKED_BAIT_DIFFICULTY_MOD ![code/__DEFINES/fish.dm 27](git.png)
Difficulty modifier when bait is fish's disliked
ELECTROGENESIS_DURATION ![code/__DEFINES/fish.dm 231](git.png)
how long between electrogenesis zaps
ELECTROGENESIS_VARIANCE ![code/__DEFINES/fish.dm 233](git.png)
a random range the electrogenesis cooldown varies by
EXPERT_FISHER_DIFFICULTY_MOD ![code/__DEFINES/fish.dm 29](git.png)
Difficulty modifier when our fisherman has the trait TRAIT_EXPERT_FISHER
FAV_BAIT_DIFFICULTY_MOD ![code/__DEFINES/fish.dm 25](git.png)
Difficulty modifier when bait is fish's favorite
FISHING_DEFAULT_HOOK_BONUS_ADDITIVE ![code/__DEFINES/fish.dm 86](git.png)
The default additive value for fishing hook catch weight modifiers.
FISHING_DEFAULT_HOOK_BONUS_MULTIPLICATIVE ![code/__DEFINES/fish.dm 88](git.png)
The default multiplicative value for fishing hook catch weight modifiers.
FISHING_DUD ![code/__DEFINES/fish.dm 2](git.png)
Use in fish tables to denote miss chance.
FISHING_HOOK_BIDIRECTIONAL ![code/__DEFINES/fish.dm 48](git.png)
See FISHING_MINIGAME_RULE_BIDIRECTIONAL
FISHING_HOOK_ENSNARE ![code/__DEFINES/fish.dm 52](git.png)
Limits the completion loss of the minigame when the fsh is not on the bait area.
FISHING_HOOK_KILL ![code/__DEFINES/fish.dm 54](git.png)
Automatically kills the fish after a while, at the cost of killing it.
FISHING_HOOK_NO_ESCAPE ![code/__DEFINES/fish.dm 50](git.png)
Prevents the user from losing the game by letting the fish get away.
FISHING_HOOK_WEIGHTED ![code/__DEFINES/fish.dm 46](git.png)
Fishing hook trait that lessens the bounce from hitting the edges of the minigame bar.
FISHING_INFLUENCE ![code/__DEFINES/fish.dm 8](git.png)
Used in the dimensional rift fishing spot to define influence gain
FISHING_LINE_AUTOREEL ![code/__DEFINES/fish.dm 63](git.png)
Skip the biting phase and go straight to the fishing phase.
FISHING_LINE_BOUNCY ![code/__DEFINES/fish.dm 59](git.png)
Much like FISHING_HOOK_ENSNARE but for the fishing line.
FISHING_LINE_CLOAKED ![code/__DEFINES/fish.dm 57](git.png)
Reduces the difficulty of the minigame
FISHING_LINE_STIFF ![code/__DEFINES/fish.dm 61](git.png)
The sorta opposite of FISHING_LINE_BOUNCY. It makes it slower to gain completion and faster to lose it.
FISHING_MINIGAME_ACTIVE_EFFECTS ![code/__DEFINES/fish.dm 83](git.png)
all the effects that are active and will last for a few seconds before triggering a cooldown
FISHING_MINIGAME_AREA ![code/__DEFINES/fish.dm 249](git.png)
The height of the minigame slider. Not in pixels, but minigame units.
FISHING_MINIGAME_AUTOREEL ![code/__DEFINES/fish.dm 78](git.png)
Skip the biting phase and go straight to the minigame, avoiding the penalty for having slow reflexes.
FISHING_MINIGAME_RULE_ANTIGRAV ![code/__DEFINES/fish.dm 74](git.png)
If enabled, the minigame will occasionally screw around and invert the velocity of the bait
FISHING_MINIGAME_RULE_BIDIRECTIONAL ![code/__DEFINES/fish.dm 66](git.png)
Keeps the bait from falling from gravity, instead allowing the player to move the bait down with right click.
FISHING_MINIGAME_RULE_CAMO ![code/__DEFINES/fish.dm 80](git.png)
The fish will fade in and out at intervals
FISHING_MINIGAME_RULE_FLIP ![code/__DEFINES/fish.dm 76](git.png)
Will filp the minigame hud for the duration of the effect
FISHING_MINIGAME_RULE_KILL ![code/__DEFINES/fish.dm 70](git.png)
Automatically kills the fish after a while, at the cost of killing it
FISHING_MINIGAME_RULE_NO_ESCAPE ![code/__DEFINES/fish.dm 68](git.png)
Prevents the player from losing the minigame when the completion reaches 0
FISHING_MINIGAME_RULE_NO_EXP ![code/__DEFINES/fish.dm 72](git.png)
Prevents the fishing skill from having an effect on the minigame and experience from being awarded
FISHING_MINIMUM_DIFFICULTY ![code/__DEFINES/fish.dm 22](git.png)
The minimum value of the difficulty of the minigame (unless it reaches 0 than it's auto-win) Any lower than this and the fish will be way too lethargic for the minigame to be engaging in the slightest.
FISHING_RANDOM_ARM ![code/__DEFINES/fish.dm 10](git.png)
Used in the dimensional rift fishing spot to define arm procurement
FISHING_RANDOM_ORGAN ![code/__DEFINES/fish.dm 6](git.png)
Used in the surgery fishing spot to define a random organ reward
FISHING_RANDOM_SEED ![code/__DEFINES/fish.dm 4](git.png)
Used in the the hydro tray fishing spot to define a random seed reward
FISHING_VENDING_CHUCK ![code/__DEFINES/fish.dm 13](git.png)
Represents the chance of getting squashed by the vending machine from the vending machine fish source
FISH_AUTOWIKI_FILENAME ![code/__DEFINES/fish.dm 289](git.png)
A macro to ensure the wikimedia filenames of fish icons are unique, especially since there're a couple fish that have quite ambiguous names/icon_states like "checkered" or "pike"
FISH_BAIT_TYPE ![code/__DEFINES/fish.dm 262](git.png)
Define for favorite and disliked baits that aren't just item typepaths.
FISH_DO_FLOP_ANIM ![code/__DEFINES/fish.dm 194](git.png)
This fish has a flopping animation done through matrices
FISH_FILLET_NUMBER_SIZE_DIVISOR ![code/__DEFINES/fish.dm 159](git.png)
The number of fillets is multiplied by the fish' size and divided by this.
FISH_FLAG_EXPERIMENT_SCANNABLE ![code/__DEFINES/fish.dm 198](git.png)
This fish can be scanned to complete fish scanning experiments
FISH_FLAG_OVERPOPULATED ![code/__DEFINES/fish.dm 202](git.png)
Flag added when the population of this fish type exceeeds the stable population inside the aquarium
FISH_FLAG_PETTED ![code/__DEFINES/fish.dm 196](git.png)
This fish has been petted in the last 30 seconds
FISH_FLAG_SAFE_FLUID ![code/__DEFINES/fish.dm 206](git.png)
Flag added when in an aquarium with the right fluid type.
FISH_FLAG_SAFE_TEMPERATURE ![code/__DEFINES/fish.dm 204](git.png)
Flag added when in an aquarium which temperature is within its safe limits
FISH_FLAG_SHOW_IN_CATALOG ![code/__DEFINES/fish.dm 192](git.png)
This fish is shown in the catalog and on the wiki (this only matters as an initial, compile-time value)
FISH_FLAG_UPDATING_SIZE_AND_WEIGHT ![code/__DEFINES/fish.dm 200](git.png)
It lets us know that fish/update_size_and_weight() is currently running.
FISH_GRIND_RESULTS_WEIGHT_DIVISOR ![code/__DEFINES/fish.dm 157](git.png)
The volume of the grind results is multiplied by the fish' weight and divided by this.
FISH_GROWTH_MULT ![code/__DEFINES/fish.dm 150](git.png)
Base multiplier of the difference between current size and weight and their maximum value used to calculate how much fish grow each time they're fed, alongside with the current hunger, and the current size and weight, meaning bigger fish naturally tend to grow way slowier
FISH_GROWTH_PEAK ![code/__DEFINES/fish.dm 152](git.png)
Growth peaks at 45% hunger but very rapidly wanes past that.
FISH_PROPERTIES_FAV_BAIT ![code/__DEFINES/fish.dm 255](git.png)
Defines for fish properties from the collect_fish_properties proc
FISH_RARITY_BASIC ![code/__DEFINES/fish.dm 213](git.png)
How likely one's to find a given fish from random fish cases.
FISH_SAFE_COOKING_DURATION ![code/__DEFINES/fish.dm 252](git.png)
The fish needs to be cooked for at least this long so that it can be safely eaten
FISH_SIZE_TINY_MAX ![code/__DEFINES/fish.dm 134](git.png)
Fish size thresholds for w_class.
FISH_SIZE_TWO_HANDS_REQUIRED ![code/__DEFINES/fish.dm 139](git.png)
size threshold for requiring two-handed carry
FISH_SIZE_WEIGHT_GROWTH_MALUS ![code/__DEFINES/fish.dm 154](git.png)
Used as part of the divisor to slow down growth of bigger fish
FISH_SOURCE_AUTOWIKI_DUD ![code/__DEFINES/fish.dm 299](git.png)
Special value for the name key that always comes first when the data is sorted, regardless of weight.
FISH_SOURCE_AUTOWIKI_NAME ![code/__DEFINES/fish.dm 292](git.png)
The list keys for the autowiki for fish sources
FISH_SOURCE_AUTOWIKI_OTHER ![code/__DEFINES/fish.dm 301](git.png)
Special value for the name key that always comes last
FISH_SOURCE_AUTOWIKI_QUESTIONMARK ![code/__DEFINES/fish.dm 303](git.png)
The filename for the icon for "other stuff" which we don't articulate about on the autowiki
FISH_SOURCE_FLAG_EXPLOSIVE_MALUS ![code/__DEFINES/fish.dm 277](git.png)
Flag for fish sources. It makes large explosions less efficient at spawning fish. Meant for lazy fishing spots that cover multiple turfs (rivers, oceans etc.)
FISH_SOURCE_FLAG_EXPLOSIVE_NONE ![code/__DEFINES/fish.dm 283](git.png)
This fish source will not spawn fish on explosions
FISH_SOURCE_FLAG_IGNORE_HIDDEN_ON_CATALOG ![code/__DEFINES/fish.dm 281](git.png)
When examined by someone with enough fishing skill, this will also display fish that doesn't have FISH_FLAG_SHOW_IN_CATALOG
FISH_SOURCE_FLAG_NO_BLUESPACE_ROD ![code/__DEFINES/fish.dm 279](git.png)
The fish source is not elegible for random rewards from bluespace fishing rods
FISH_WEIGHT_BITE_DIVISOR ![code/__DEFINES/fish.dm 172](git.png)
Used to calculate how many bites a fish can take and therefore the amount of reagents it has.
FISH_WEIGHT_FORCE_DIVISOR ![code/__DEFINES/fish.dm 168](git.png)
Used to calculate the force of the fish by comparing (1 + log(weight/this_define)) and the w_class of the item.
FISH_WEIGHT_GRIND_TO_BITE_MULT ![code/__DEFINES/fish.dm 170](git.png)
The multiplier used in the FISH_WEIGHT_BITE_DIVISOR define
FISH_WEIGHT_MULT_WITHOUT_BAIT ![code/__DEFINES/fish.dm 270](git.png)
We multiply the weight of fish inside the loot table by this value if we are goofy enough to fish without a bait.
FISH_WEIGHT_SLOWDOWN ![code/__DEFINES/fish.dm 162](git.png)
The slowdown of the fish when carried begins at this value
FISH_WEIGHT_SLOWDOWN_DIVISOR ![code/__DEFINES/fish.dm 164](git.png)
The value of the slowdown equals to the weight divided by this (and then at the power of a sub-1 exponent)
FISH_WEIGHT_SLOWDOWN_EXPONENT ![code/__DEFINES/fish.dm 166](git.png)
The sub-one exponent that results in the final slowdown of the fish item
GET_FISH_SLOWDOWN ![code/__DEFINES/fish.dm 175](git.png)
Set of operations that calculate the slowdown of fish based on weight
GET_FISH_WEIGHT_RANK ![code/__DEFINES/fish.dm 182](git.png)
Gets a "rank" for fish weight to determine the force of the fish (or fish tank) basically, a gross estimate based on how weight generaly scales up (250, 500, 1000, 2000, 4000 etc...) for most fish
MAX_FISH_DEVIATION_COEFF ![code/__DEFINES/fish.dm 143](git.png)
The coefficient for maximum weight/size divergence relative to the averages.
NEW_FISH_BREEDING_TIMEOUT_MULT ![code/__DEFINES/fish.dm 185](git.png)
The breeding timeout for newly instantiated fish is multiplied by this.
NEW_FISH_LAST_FEEDING_MULT ![code/__DEFINES/fish.dm 187](git.png)
The last feeding timestamp of newly instantiated fish is multiplied by this: ergo, they spawn 50% hungry.
ROD_SLOT_BAIT ![code/__DEFINES/fish.dm 34](git.png)
Slot defines for the fishing rod and its equipment