4 random runtime fixes

This commit is contained in:
Chompstation Bot
2021-07-08 04:54:06 +00:00
parent 7438d0f486
commit b965d1546c
4 changed files with 1071 additions and 3 deletions

View File

@@ -337,7 +337,7 @@
if("helmet")
to_chat(M, "<span class='notice'>\The [piece] hisses [!seal_target ? "closed" : "open"].</span>")
M.update_inv_head()
if(helmet)
if(helmet?.light_system == STATIC_LIGHT)
helmet.update_light(wearer)
//sealed pieces become airtight, protecting against diseases

View File

@@ -1020,7 +1020,9 @@
/obj/item/weapon/reagent_containers/food/snacks/donkpocket/proc/cooltime()
if (src.warm)
spawn(4200)
spawn(420 SECONDS)
if(!src?.reagents)
return
src.warm = 0
for(var/reagent in heated_reagents)
src.reagents.del_reagent(reagent)

File diff suppressed because it is too large Load Diff

View File

@@ -2320,7 +2320,7 @@ Departamental Swimsuits, for general use
item_state = "rgb"
overlay_state = "rgb"
to_chat(user, "The polychromic plates in your cloak activate, turning it white.")
has_suit.update_clothing_icon()
has_suit?.update_clothing_icon()
/obj/item/clothing/accessory/poncho/roles/cloak/fluff/cloakglowing/verb/color_verb()
set name = "Swap color"