Files
Bubberstation/code/game/objects/items/food/bait.dm
Ghom 023bfd0e5d Autowiki for fishing. (#86035)
## About The Pull Request
I've come to realize manually updating all fishing stuff on the very
much outdated wiki would be a colossal pain in the rear, so I've decided
to automate a few bits to generate autowiki lists containing information
about fish, fish traits, bait, hooks, reels, fishng rods, fish sources
and fish experiments.

Now tested.

## Why It's Good For The Game
Making a huge autowiki for a feature that's being constantly updated (by
me) but still has a particularly lame and outdated page on the wiki.

## Changelog
N/A
2024-09-10 12:58:05 -04:00

92 lines
3.2 KiB
Plaintext

/obj/item/food/bait
name = "this is bait"
desc = "you got baited."
icon = 'icons/obj/fishing.dmi'
/// Quality trait of this bait
var/bait_quality = TRAIT_BASIC_QUALITY_BAIT
/// Icon state added to main fishing rod icon when this bait is equipped
var/rod_overlay_icon_state
/// Is this included in the autowiki?
var/show_on_wiki = TRUE
/obj/item/food/bait/Initialize(mapload)
. = ..()
ADD_TRAIT(src, bait_quality, INNATE_TRAIT)
/obj/item/food/bait/worm
name = "worm"
desc = "It's a wriggling worm from a can of fishing bait. You're not going to eat it are you ?"
icon = 'icons/obj/fishing.dmi'
icon_state = "worm"
food_reagents = list(/datum/reagent/consumable/nutriment/protein = 1)
tastes = list("meat" = 1, "worms" = 1)
foodtypes = GROSS | MEAT | BUGS
w_class = WEIGHT_CLASS_TINY
bait_quality = TRAIT_BASIC_QUALITY_BAIT
rod_overlay_icon_state = "worm_overlay"
/obj/item/food/bait/worm/premium
name = "extra slimy worm"
desc = "This worm looks very sophisticated."
bait_quality = TRAIT_GOOD_QUALITY_BAIT
/obj/item/food/bait/natural
name = "natural bait"
desc = "Fish can't seem to get enough of this!"
icon = 'icons/obj/medical/chemical.dmi'
icon_state = "pill9"
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi'
righthand_file = 'icons/mob/inhands/items_righthand.dmi'
inhand_icon_state = "pen"
bait_quality = TRAIT_GREAT_QUALITY_BAIT //this is only here for autowiki purposes, it's removed on init.
food_reagents = list(/datum/reagent/drug/kronkaine = 2) //The kronkaine is the thing that makes this a great bait.
tastes = list("hypocrisy" = 1)
/obj/item/food/bait/natural/Initialize(mapload)
. = ..()
REMOVE_TRAIT(src, bait_quality, INNATE_TRAIT)
/obj/item/food/bait/doughball
name = "doughball"
desc = "Small piece of dough. Simple but effective fishing bait."
icon = 'icons/obj/fishing.dmi'
icon_state = "doughball"
food_reagents = list(/datum/reagent/consumable/nutriment/protein = 1)
tastes = list("dough" = 1)
foodtypes = GRAIN
w_class = WEIGHT_CLASS_TINY
bait_quality = TRAIT_BASIC_QUALITY_BAIT
rod_overlay_icon_state = "dough_overlay"
///The abstract synthetic doughball type.
/obj/item/food/bait/doughball/synthetic
name = "synthetic doughball"
icon_state = "doughball_blue"
preserved_food = TRUE
show_on_wiki = FALSE //It's an abstract item.
/obj/item/food/bait/doughball/synthetic/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_OMNI_BAIT, INNATE_TRAIT)
///Found in the can of omni-baits, only available from the super fishing toolbox, from the fishing mystery box.
/obj/item/food/bait/doughball/synthetic/super
name = "super-doughball"
desc = "Be they herbivore or carnivores, no fish will be able to resist this."
bait_quality = TRAIT_GREAT_QUALITY_BAIT
show_on_wiki = TRUE
/**
* Bound to the tech fishing rod, from which cannot be removed,
* Bait-related preferences and traits, both negative and positive,
* should be ignored by this bait.
* Otherwise it'd be hard/impossible to cath some fish with it,
* making that rod a shoddy choice in the long run.
*/
/obj/item/food/bait/doughball/syntethic/unconsumable
/obj/item/food/bait/doughball/synthetic/unconsumable/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_BAIT_UNCONSUMABLE, INNATE_TRAIT)