mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Two as anything greps (and some other cleanup) (#92974)
This commit is contained in:
@@ -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