mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 00:53:23 +01:00
Chem Dispensers no longer work while unanchored (#21685)
* Goodbye mobile dispensers * Fixes message
This commit is contained in:
@@ -187,6 +187,8 @@
|
||||
return
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
if(!anchored)
|
||||
return
|
||||
|
||||
. = TRUE
|
||||
switch(actions)
|
||||
@@ -310,6 +312,9 @@
|
||||
/obj/machinery/chem_dispenser/attack_hand(mob/user)
|
||||
if(stat & BROKEN)
|
||||
return
|
||||
if(!anchored)
|
||||
to_chat("<span class='warning'>[src] must be anchored first!</span>")
|
||||
return
|
||||
ui_interact(user)
|
||||
|
||||
/obj/machinery/chem_dispenser/AltClick(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user