Fixes Examine Crashes (#17430)

* Fixes Examine Crashes

* fukken indentations
This commit is contained in:
Wowzewow (Wezzy)
2023-09-27 10:22:04 +00:00
committed by GitHub
parent 725d999680
commit fd26ff32e2
32 changed files with 147 additions and 136 deletions
@@ -111,9 +111,9 @@
to_chat(user, SPAN_NOTICE("You adjusted the pressure nozzle. You'll now use [amount_per_transfer_from_this] units per spray, with a [spray_size] lane spray."))
/obj/item/reagent_containers/spray/examine(mob/user, distance, is_adjacent)
. = ..()
if(is_adjacent)
to_chat(user, "[round(reagents.total_volume)] units left.")
return
/obj/item/reagent_containers/spray/verb/empty()
@@ -170,7 +170,7 @@
/obj/item/reagent_containers/spray/pepper/examine(mob/user, distance, is_adjacent)
. = ..()
if(distance <= 1)
if(is_adjacent)
to_chat(user, "The safety is [safety ? "on" : "off"].")
/obj/item/reagent_containers/spray/pepper/AltClick()