cleans up some of the old << in favor of to_chat (#11156)

This commit is contained in:
Kashargul
2025-07-08 21:25:03 +02:00
committed by GitHub
parent e77ace94bd
commit 5a04ab175d
11 changed files with 40 additions and 42 deletions

View File

@@ -34,13 +34,13 @@
/obj/item/gun/projectile/automatic/mg42/special_check(mob/user)
if(cover_open)
user << span_warning("[src]'s cover is open! Close it before firing!")
to_chat(user, span_warning("[src]'s cover is open! Close it before firing!"))
return 0
return ..()
/obj/item/gun/projectile/automatic/mg42/proc/toggle_cover(mob/user)
cover_open = !cover_open
user << span_notice("You [cover_open ? "open" : "close"] [src]'s cover.")
to_chat(user, span_notice("You [cover_open ? "open" : "close"] [src]'s cover."))
update_icon()
update_held_icon()
@@ -63,12 +63,12 @@
/obj/item/gun/projectile/automatic/mg42/load_ammo(var/obj/item/A, mob/user)
if(!cover_open)
user << span_warning("You need to open the cover to load [src].")
to_chat(user, span_warning("You need to open the cover to load [src]."))
return
..()
/obj/item/gun/projectile/automatic/mg42/unload_ammo(mob/user, var/allow_dump=1)
if(!cover_open)
user << span_warning("You need to open the cover to unload [src].")
to_chat(user, span_warning("You need to open the cover to unload [src]."))
return
..()