mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Two as anything greps (and some other cleanup) (#92974)
This commit is contained in:
@@ -68,7 +68,7 @@ GLOBAL_LIST_INIT_TYPED(chasm_detritus_types, /datum/chasm_detritus, init_chasm_d
|
||||
/datum/chasm_detritus/proc/get_chasm_contents(turf/fishing_spot)
|
||||
. = list()
|
||||
for(var/obj/effect/abstract/chasm_storage/storage in range(5, fishing_spot))
|
||||
for (var/thing as anything in storage.contents)
|
||||
for (var/thing in storage.contents)
|
||||
. += thing
|
||||
|
||||
/// Variant of the chasm detritus that allows for an easier time at fishing out
|
||||
@@ -81,7 +81,7 @@ GLOBAL_LIST_INIT_TYPED(chasm_detritus_types, /datum/chasm_detritus, init_chasm_d
|
||||
/datum/chasm_detritus/restricted/get_chasm_contents(turf/fishing_spot)
|
||||
. = list()
|
||||
for(var/obj/effect/abstract/chasm_storage/storage in range(5, fishing_spot))
|
||||
for (var/thing as anything in storage.contents)
|
||||
for (var/thing in storage.contents)
|
||||
if(!istype(thing, chasm_storage_restricted_type))
|
||||
continue
|
||||
. += thing
|
||||
|
||||
@@ -9,7 +9,7 @@ GLOBAL_LIST_INIT(spontaneous_fish_traits, populate_spontaneous_fish_traits())
|
||||
|
||||
/proc/populate_spontaneous_fish_traits()
|
||||
var/list/list = list()
|
||||
for(var/trait_path as anything in GLOB.fish_traits)
|
||||
for(var/trait_path in GLOB.fish_traits)
|
||||
var/datum/fish_trait/trait = GLOB.fish_traits[trait_path]
|
||||
if(isnull(trait.spontaneous_manifest_types))
|
||||
continue
|
||||
|
||||
@@ -615,7 +615,7 @@ GLOBAL_LIST_INIT(specific_fish_icons, generate_specific_fish_icons())
|
||||
table_copy -= FISHING_DUD
|
||||
var/exponent = weight_leveling_exponents[trait]
|
||||
var/multiplier = weight_result_multiplier[trait]
|
||||
for(var/fish as anything in table_copy)
|
||||
for(var/fish in table_copy)
|
||||
if(!ispath(fish, /obj/item/fish))
|
||||
continue
|
||||
table_copy[fish] = round(table_copy[fish] * multiplier, 1)
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
var/static/list/weighted_traits
|
||||
if(!weighted_traits)
|
||||
weighted_traits = list()
|
||||
for(var/trait_type as anything in GLOB.fish_traits)
|
||||
for(var/trait_type in GLOB.fish_traits)
|
||||
var/datum/fish_trait/trait = GLOB.fish_traits[trait_type]
|
||||
weighted_traits[trait.type] = round(trait.inheritability**2/100)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user