mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 10:35:41 +01:00
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
This commit is contained in:
@@ -13,10 +13,38 @@ PROCESSING_SUBSYSTEM_DEF(fishing)
|
||||
fish_properties = list()
|
||||
for(var/fish_type in subtypesof(/obj/item/fish))
|
||||
var/obj/item/fish/fish = new fish_type(null, FALSE)
|
||||
fish_properties[fish_type] = list()
|
||||
fish_properties[fish_type][FISH_PROPERTIES_FAV_BAIT] = fish.favorite_bait.Copy()
|
||||
fish_properties[fish_type][FISH_PROPERTIES_BAD_BAIT] = fish.disliked_bait.Copy()
|
||||
fish_properties[fish_type][FISH_PROPERTIES_TRAITS] = fish.fish_traits.Copy()
|
||||
var/list/properties = list()
|
||||
fish_properties[fish_type] = properties
|
||||
properties[FISH_PROPERTIES_FAV_BAIT] = fish.favorite_bait.Copy()
|
||||
properties[FISH_PROPERTIES_BAD_BAIT] = fish.disliked_bait.Copy()
|
||||
properties[FISH_PROPERTIES_TRAITS] = fish.fish_traits.Copy()
|
||||
|
||||
var/list/evo_types = fish.evolution_types?.Copy()
|
||||
properties[FISH_PROPERTIES_EVOLUTIONS] = evo_types
|
||||
for(var/type in evo_types)
|
||||
LAZYADD(GLOB.fishes_by_fish_evolution[type], fish_type)
|
||||
|
||||
var/beauty_score = "???"
|
||||
switch(fish.beauty)
|
||||
if(-INFINITY to FISH_BEAUTY_DISGUSTING)
|
||||
beauty_score = "OH HELL NAW!"
|
||||
if(FISH_BEAUTY_DISGUSTING to FISH_BEAUTY_UGLY)
|
||||
beauty_score = "☆☆☆☆☆"
|
||||
if(FISH_BEAUTY_UGLY to FISH_BEAUTY_BAD)
|
||||
beauty_score = "★☆☆☆☆"
|
||||
if(FISH_BEAUTY_BAD to FISH_BEAUTY_NULL)
|
||||
beauty_score = "★★☆☆☆"
|
||||
if(FISH_BEAUTY_NULL to FISH_BEAUTY_GENERIC)
|
||||
beauty_score = "★★★☆☆"
|
||||
if(FISH_BEAUTY_GENERIC to FISH_BEAUTY_GOOD)
|
||||
beauty_score = "★★★★☆"
|
||||
if(FISH_BEAUTY_GOOD to FISH_BEAUTY_GREAT)
|
||||
beauty_score = "★★★★★"
|
||||
if(FISH_BEAUTY_GREAT to INFINITY)
|
||||
beauty_score = "★★★★★★"
|
||||
|
||||
properties[FISH_PROPERTIES_BEAUTY_SCORE] = beauty_score
|
||||
|
||||
qdel(fish)
|
||||
|
||||
///init the list of things lures can catch
|
||||
|
||||
Reference in New Issue
Block a user