mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
refactors most spans
This commit is contained in:
@@ -41,12 +41,12 @@
|
||||
//must place on a wall and user must not be inside a closet/mecha/whatever
|
||||
var/turf/W = A
|
||||
if(!iswall(W) || !isturf(user.loc))
|
||||
to_chat(user, "<span class='warning'>You can't place this here!</span>")
|
||||
to_chat(user, span_warning("You can't place this here!"))
|
||||
return FALSE
|
||||
|
||||
var/placement_dir = get_dir(user, W)
|
||||
if(!(placement_dir in cardinal))
|
||||
to_chat(user, "<span class='warning'>You must stand directly in front of the wall you wish to place that on.</span>")
|
||||
to_chat(user, span_warning("You must stand directly in front of the wall you wish to place that on."))
|
||||
return FALSE
|
||||
|
||||
//just check if there is a poster on or adjacent to the wall
|
||||
@@ -62,15 +62,15 @@
|
||||
break
|
||||
|
||||
if(stuff_on_wall)
|
||||
to_chat(user, "<span class='notice'>There is already a poster there!</span>")
|
||||
to_chat(user, span_notice("There is already a poster there!"))
|
||||
return FALSE
|
||||
|
||||
to_chat(user, "<span class='notice'>You start placing the poster on the wall...</span>") //Looks like it's uncluttered enough. Place the poster.
|
||||
to_chat(user, span_notice("You start placing the poster on the wall...")) //Looks like it's uncluttered enough. Place the poster.
|
||||
|
||||
var/obj/structure/sign/poster/P = new poster_type(user.loc, get_dir(user, W), src)
|
||||
|
||||
if(do_after(user, 17)) //Let's check if everything is still there
|
||||
to_chat(user, "<span class='notice'>You place the poster!</span>")
|
||||
to_chat(user, span_notice("You place the poster!"))
|
||||
qdel(src)
|
||||
return TRUE
|
||||
|
||||
@@ -168,10 +168,10 @@
|
||||
if(W.has_tool_quality(TOOL_WIRECUTTER))
|
||||
playsound(src, W.usesound, 100, 1)
|
||||
if(ruined)
|
||||
to_chat(user, "<span class='notice'>You remove the remnants of the poster.</span>")
|
||||
to_chat(user, span_notice("You remove the remnants of the poster."))
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You carefully remove the poster from the wall.</span>")
|
||||
to_chat(user, span_notice("You carefully remove the poster from the wall."))
|
||||
roll_and_drop(get_turf(user))
|
||||
return
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
if(ruined || !user.Adjacent(src))
|
||||
return
|
||||
|
||||
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
||||
visible_message(span_warning("[user] rips [src] in a single, decisive motion!") )
|
||||
playsound(src, 'sound/items/poster_ripped.ogg', 100, 1)
|
||||
ruined = TRUE
|
||||
icon_state = "poster_ripped"
|
||||
|
||||
Reference in New Issue
Block a user