mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
set src in view(1)
|
||||
|
||||
if(usr.incapacitated() || !istype(usr, /mob/living) || istype(usr, /mob/living/simple_mob)) //CHOMPEdit - Preventing simple_mobs from interacting
|
||||
to_chat(usr, "<span class='warning'>You can't do that.</span>")
|
||||
to_chat(usr, span_warning("You can't do that."))
|
||||
return
|
||||
|
||||
if(!Adjacent(usr))
|
||||
to_chat(usr, "<span class='warning'>You can't reach it.</span>")
|
||||
to_chat(usr, span_warning("You can't reach it."))
|
||||
return
|
||||
|
||||
if(enabled)
|
||||
@@ -37,11 +37,11 @@
|
||||
set src in view(1)
|
||||
|
||||
if(usr.incapacitated() || !istype(usr, /mob/living) || istype(usr, /mob/living/simple_mob)) //CHOMPEdit - Preventing simple_mobs from interacting
|
||||
to_chat(usr, "<span class='warning'>You can't do that.</span>")
|
||||
to_chat(usr, span_warning("You can't do that."))
|
||||
return
|
||||
|
||||
if(!Adjacent(usr))
|
||||
to_chat(usr, "<span class='warning'>You can't reach it.</span>")
|
||||
to_chat(usr, span_warning("You can't reach it."))
|
||||
return
|
||||
|
||||
proc_eject_id(usr)
|
||||
@@ -53,11 +53,11 @@
|
||||
set src in view(1)
|
||||
|
||||
if(usr.incapacitated() || !istype(usr, /mob/living) || istype(usr, /mob/living/simple_mob)) //CHOMPEdit - Preventing simple_mobs from interacting
|
||||
to_chat(usr, "<span class='warning'>You can't do that.</span>")
|
||||
to_chat(usr, span_warning("You can't do that."))
|
||||
return
|
||||
|
||||
if(!Adjacent(usr))
|
||||
to_chat(usr, "<span class='warning'>You can't reach it.</span>")
|
||||
to_chat(usr, span_warning("You can't reach it."))
|
||||
return
|
||||
|
||||
proc_eject_usb(usr)
|
||||
@@ -197,4 +197,4 @@
|
||||
|
||||
return
|
||||
|
||||
..()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user