This commit is contained in:
Fluffy
2024-03-05 18:05:29 +00:00
committed by GitHub
parent c8bc215b5a
commit 311494926d
9 changed files with 62 additions and 20 deletions
+2 -1
View File
@@ -97,7 +97,8 @@
to_chat(user, "You [anchored ? "attach" : "detach"] the [src] [anchored ? "to" : "from"] the ground")
playsound(src.loc, attacking_item.usesound, 75, 1)
ui = SStgui.try_update_ui(user, src, ui)
if(ui?.user)
ui = SStgui.try_update_ui(user, src, ui)
/obj/machinery/chem_master/ui_interact(mob/user, datum/tgui/ui)
+1 -1
View File
@@ -87,7 +87,7 @@
reagents.apply_force(speed)
/obj/item/reagent_containers/proc/shatter(var/obj/item/W, var/mob/user)
if(reagents.total_volume)
if(reagents?.total_volume)
reagents.splash(src.loc, reagents.total_volume) // splashes the mob holding it or the turf it's on
audible_message(SPAN_WARNING("\The [src] shatters with a resounding crash!"), SPAN_WARNING("\The [src] breaks."))
playsound(src, shatter_sound, 70, 1)