Files
Yogstation/yogstation/code/datums/components/fishable.dm
Byemoh c884a992ed Adds fishing for real this time (#13622)
* Fishing

* test

* put fish in your damn hands

* fish types and bait types and

* fixing things

* Update rods.dm

* more stuff

* ok

* yes

* all this stuff

* Update _basemap.dm

* Update game_options.txt

* Apply suggestions from code review

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* component

* move fishing

* Update yogstation.dme

* new icons

* yeah does what tatax yeah

* um new fishing cloths

* working more

* Update fishingbonus.dm

* yeah

* yup

* um ok

* Update fish.dm

* Update fishing.dm

* yep

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>
2022-06-11 13:45:56 +01:00

29 lines
943 B
Plaintext

/datum/component/fishable
dupe_mode = COMPONENT_DUPE_UNIQUE
var/datum/fishing_loot/common_loot = new /datum/fishing_loot/water/common
/datum/component/fishable/proc/getCommonLoot()
return pick(common_loot.rewards)
/datum/component/fishable/Initialize()
if(!istype(parent, /turf))
return COMPONENT_INCOMPATIBLE
//LOOT TABLES
/datum/fishing_loot
var/list/rewards = list()
/datum/fishing_loot/water/common
rewards = list(
/obj/item/reagent_containers/food/snacks/fish/goldfish,
/obj/item/reagent_containers/food/snacks/fish/goldfish/giant,
/obj/item/reagent_containers/food/snacks/fish/salmon,
/obj/item/reagent_containers/food/snacks/fish/bass,
/obj/item/reagent_containers/food/snacks/fish/tuna,
/obj/item/reagent_containers/food/snacks/fish/shrimp,
/obj/item/reagent_containers/food/snacks/fish/squid,
/obj/item/reagent_containers/food/snacks/fish/puffer,
/obj/item/reagent_containers/food/snacks/bait/leech
)