mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +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:
@@ -30,7 +30,7 @@
|
||||
|
||||
/obj/machinery/floorlayer/attack_hand(mob/user as mob)
|
||||
on=!on
|
||||
user.visible_message("<span class='notice'>[user] has [!on?"de":""]activated \the [src].</span>", "<span class='notice'>You [!on?"de":""]activate \the [src].</span>")
|
||||
user.visible_message(span_notice("[user] has [!on?"de":""]activated \the [src]."), span_notice("You [!on?"de":""]activate \the [src]."))
|
||||
return
|
||||
|
||||
/obj/machinery/floorlayer/attackby(var/obj/item/W as obj, var/mob/user as mob)
|
||||
@@ -38,22 +38,22 @@
|
||||
var/m = tgui_input_list(usr, "Choose work mode", "Mode", mode)
|
||||
mode[m] = !mode[m]
|
||||
var/O = mode[m]
|
||||
user.visible_message("<span class='notice'>[usr] has set \the [src] [m] mode [!O?"off":"on"].</span>", "<span class='notice'>You set \the [src] [m] mode [!O?"off":"on"].</span>")
|
||||
user.visible_message(span_notice("[usr] has set \the [src] [m] mode [!O?"off":"on"]."), span_notice("You set \the [src] [m] mode [!O?"off":"on"]."))
|
||||
return
|
||||
|
||||
if(istype(W, /obj/item/stack/tile))
|
||||
to_chat(user, "<span class='notice'>\The [W] successfully loaded.</span>")
|
||||
to_chat(user, span_notice("\The [W] successfully loaded."))
|
||||
user.drop_item(T)
|
||||
TakeTile(T)
|
||||
return
|
||||
|
||||
if(W.has_tool_quality(TOOL_CROWBAR))
|
||||
if(!length(contents))
|
||||
to_chat(user, "<span class='notice'>\The [src] is empty.</span>")
|
||||
to_chat(user, span_notice("\The [src] is empty."))
|
||||
else
|
||||
var/obj/item/stack/tile/E = tgui_input_list(usr, "Choose remove tile type.", "Tiles", contents)
|
||||
if(E)
|
||||
to_chat(user, "<span class='notice'>You remove the [E] from \the [src].</span>")
|
||||
to_chat(user, span_notice("You remove the [E] from \the [src]."))
|
||||
E.loc = src.loc
|
||||
T = null
|
||||
return
|
||||
@@ -68,7 +68,7 @@
|
||||
var/dismantle = mode["dismantle"]
|
||||
var/laying = mode["laying"]
|
||||
var/collect = mode["collect"]
|
||||
. += "<span class='notice'>[src] [!T ? "don't " : ""]has [!T ? "" : "[T.get_amount()] [T] "]tile\s, dismantle is [dismantle ? "on" : "off"], laying is [laying ? "on" : "off"], collect is [collect ? "on" : "off"].</span>"
|
||||
. += span_notice("[src] [!T ? "don't " : ""]has [!T ? "" : "[T.get_amount()] [T] "]tile\s, dismantle is [dismantle ? "on" : "off"], laying is [laying ? "on" : "off"], collect is [collect ? "on" : "off"].")
|
||||
|
||||
/obj/machinery/floorlayer/proc/reset()
|
||||
on=0
|
||||
@@ -107,4 +107,4 @@
|
||||
|
||||
/obj/machinery/floorlayer/proc/CollectTiles(var/turf/w_turf)
|
||||
for(var/obj/item/stack/tile/tile in w_turf)
|
||||
TakeTile(tile)
|
||||
TakeTile(tile)
|
||||
|
||||
Reference in New Issue
Block a user