mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +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:
@@ -60,13 +60,13 @@ GLOBAL_LIST_EMPTY(solars_list)
|
||||
|
||||
if(W.has_tool_quality(TOOL_CROWBAR))
|
||||
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||
user.visible_message("<span class='notice'>[user] begins to take the glass off the solar panel.</span>")
|
||||
user.visible_message(span_notice("[user] begins to take the glass off the solar panel."))
|
||||
if(do_after(user, 50))
|
||||
var/obj/item/solar_assembly/S = new(loc)
|
||||
S.anchored = TRUE
|
||||
new glass_type(loc, 2)
|
||||
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
|
||||
user.visible_message("<span class='notice'>[user] takes the glass off the solar panel.</span>")
|
||||
user.visible_message(span_notice("[user] takes the glass off the solar panel."))
|
||||
qdel(src)
|
||||
return
|
||||
else if (W)
|
||||
@@ -209,13 +209,13 @@ GLOBAL_LIST_EMPTY(solars_list)
|
||||
if(!anchored)
|
||||
if(W.has_tool_quality(TOOL_WRENCH))
|
||||
anchored = TRUE
|
||||
user.visible_message("<span class='notice'>[user] wrenches the solar assembly into place.</span>")
|
||||
user.visible_message(span_notice("[user] wrenches the solar assembly into place."))
|
||||
playsound(src, W.usesound, 75, 1)
|
||||
return 1
|
||||
else
|
||||
if(W.has_tool_quality(TOOL_WRENCH))
|
||||
anchored = FALSE
|
||||
user.visible_message("<span class='notice'>[user] unwrenches the solar assembly from it's place.</span>")
|
||||
user.visible_message(span_notice("[user] unwrenches the solar assembly from it's place."))
|
||||
playsound(src, W.usesound, 75, 1)
|
||||
return 1
|
||||
|
||||
@@ -223,14 +223,14 @@ GLOBAL_LIST_EMPTY(solars_list)
|
||||
var/obj/item/stack/material/S = W
|
||||
if(S.use(2))
|
||||
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||
user.visible_message("<span class='notice'>[user] places the glass on the solar assembly.</span>")
|
||||
user.visible_message(span_notice("[user] places the glass on the solar assembly."))
|
||||
if(tracker)
|
||||
new /obj/machinery/power/tracker(get_turf(src), W.type)
|
||||
else
|
||||
new /obj/machinery/power/solar(get_turf(src), W.type)
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You need two sheets of glass to put them into a solar panel.</span>")
|
||||
to_chat(user, span_warning("You need two sheets of glass to put them into a solar panel."))
|
||||
return
|
||||
return 1
|
||||
|
||||
@@ -239,13 +239,13 @@ GLOBAL_LIST_EMPTY(solars_list)
|
||||
tracker = 1
|
||||
user.drop_item()
|
||||
qdel(W)
|
||||
user.visible_message("<span class='notice'>[user] inserts the electronics into the solar assembly.</span>")
|
||||
user.visible_message(span_notice("[user] inserts the electronics into the solar assembly."))
|
||||
return 1
|
||||
else
|
||||
if(W.has_tool_quality(TOOL_CROWBAR))
|
||||
new /obj/item/tracker_electronics(src.loc)
|
||||
tracker = 0
|
||||
user.visible_message("<span class='notice'>[user] takes out the electronics from the solar assembly.</span>")
|
||||
user.visible_message(span_notice("[user] takes out the electronics from the solar assembly."))
|
||||
return 1
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user