Shiptest 13 - Modules - TypesVar Details - Proc Details

fish_source

Where the fish actually come from - every fishing spot has one assigned but multiple fishing holes can share single source, ie single shared one for ocean/lavaland river

Vars

backgroundBackground image name from /datum/asset/simple/fishing_minigame
catalog_descriptionHow the spot type is described in fish catalog section about fish sources, will be skipped if null
dudsText shown as baloon alert when you roll a dud in the table
fish_countsIf a key from fish_table is present here, that fish is availible in limited quantity and is reduced by one on successful fishing
fish_tableFish catch weight table - these are relative weights
fishing_difficultyBaseline difficulty for fishing in this spot

Procs

calculate_difficultyDIFFICULTY = (SPOT_BASE_VALUE + FISH_MODIFIER + ROD_MODIFIER + FAV/DISLIKED_BAIT_MODIFIER + TRAITS_ADDITIVE) * TRAITS_MULTIPLICATIVE , For non-fish it's just SPOT_BASE_VALUE
can_fishCan we fish in this spot at all. Returns DENIAL_REASON or null if we're good to go
dispense_rewardGives out the reward if possible
get_modified_fish_tableBuilds a fish weights table modified by bait/rod/user properties
is_matching_baitChecks if bait matches identifier from fav/disliked bait list
roll_rewardIn case you want more complex rules for specific spots

Var Details

background

Background image name from /datum/asset/simple/fishing_minigame

catalog_description

How the spot type is described in fish catalog section about fish sources, will be skipped if null

duds

Text shown as baloon alert when you roll a dud in the table

fish_counts

If a key from fish_table is present here, that fish is availible in limited quantity and is reduced by one on successful fishing

fish_table

Fish catch weight table - these are relative weights

fishing_difficulty

Baseline difficulty for fishing in this spot

Proc Details

calculate_difficulty

DIFFICULTY = (SPOT_BASE_VALUE + FISH_MODIFIER + ROD_MODIFIER + FAV/DISLIKED_BAIT_MODIFIER + TRAITS_ADDITIVE) * TRAITS_MULTIPLICATIVE , For non-fish it's just SPOT_BASE_VALUE

can_fish

Can we fish in this spot at all. Returns DENIAL_REASON or null if we're good to go

dispense_reward

Gives out the reward if possible

get_modified_fish_table

Builds a fish weights table modified by bait/rod/user properties

is_matching_bait

Checks if bait matches identifier from fav/disliked bait list

roll_reward

In case you want more complex rules for specific spots