Merge pull request #10971 from VOREStation/Arokha/4runtimefixes

4 random runtime fixes
This commit is contained in:
Aronai Sieyes
2021-07-08 00:53:52 -04:00
committed by GitHub
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -335,7 +335,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
+3 -1
View File
@@ -1014,7 +1014,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)
+1 -1
View File
@@ -123,7 +123,7 @@
add_reagent_id = "[item]juice"
if(add_reagent_id) //If we did find it, add it to our list of reagents to add, and add the number to our total.
add_reagents[add_reagent_id] += data[item]
totalnum += data[item]
totalnum += data[item]
if(totalnum)
var/multconst = amount/totalnum //We're going to add these extra reagents so that they share the ratio described, but only add up to 1x the existing amount at the most
@@ -2319,7 +2319,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"