mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +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:
@@ -312,13 +312,13 @@
|
||||
|
||||
/obj/item/gun/projectile/automatic/l6_saw/special_check(mob/user)
|
||||
if(cover_open)
|
||||
to_chat(user, "<span class='warning'>[src]'s cover is open! Close it before firing!</span>")
|
||||
to_chat(user, span_warning("[src]'s cover is open! Close it before firing!"))
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
/obj/item/gun/projectile/automatic/l6_saw/proc/toggle_cover(mob/user)
|
||||
cover_open = !cover_open
|
||||
to_chat(user, "<span class='notice'>You [cover_open ? "open" : "close"] [src]'s cover.</span>")
|
||||
to_chat(user, span_notice("You [cover_open ? "open" : "close"] [src]'s cover."))
|
||||
update_icon()
|
||||
update_held_icon()
|
||||
|
||||
@@ -345,13 +345,13 @@
|
||||
|
||||
/obj/item/gun/projectile/automatic/l6_saw/load_ammo(var/obj/item/A, mob/user)
|
||||
if(!cover_open)
|
||||
to_chat(user, "<span class='warning'>You need to open the cover to load [src].</span>")
|
||||
to_chat(user, span_warning("You need to open the cover to load [src]."))
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/gun/projectile/automatic/l6_saw/unload_ammo(mob/user, var/allow_dump=1)
|
||||
if(!cover_open)
|
||||
to_chat(user, "<span class='warning'>You need to open the cover to unload [src].</span>")
|
||||
to_chat(user, span_warning("You need to open the cover to unload [src]."))
|
||||
return
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user