Fix issues discovered via TypeMaker (#87596)

## About The Pull Request
Fixes issues with var typing and proc arguments, discovered using
OpenDream's WIP TypeMaker feature (using improvements I haven't PR'd
upstream yet).

## Why It's Good For The Game
Codebase maintenance.
This commit is contained in:
Penelope Haze
2024-11-19 15:24:52 -05:00
committed by GitHub
parent 3c8fa5630f
commit b67a0901f2
93 changed files with 336 additions and 338 deletions
@@ -445,7 +445,7 @@ GLOBAL_LIST_EMPTY(virtual_pets_list)
for(var/type_index as anything in hat_selections)
if(level >= hat_selections[type_index])
var/obj/item/hat = type_index
var/obj/item/hat_name = initial(hat.name)
var/hat_name = initial(hat.name)
if(length(SSachievements.achievements)) // The Achievements subsystem is active.
var/datum/award/required_cheevo = cheevo_hats[hat]
if(required_cheevo && !user.client.get_award_status(required_cheevo))