mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 19:19:12 +01:00
refactors most spans
This commit is contained in:
@@ -127,7 +127,7 @@ var/global/list/image/splatter_cache=list()
|
||||
return
|
||||
var/taken = rand(1,amount)
|
||||
amount -= taken
|
||||
to_chat(user, "<span class='notice'>You get some of \the [src] on your hands.</span>")
|
||||
to_chat(user, span_notice("You get some of \the [src] on your hands."))
|
||||
if (!user.blood_DNA)
|
||||
user.blood_DNA = list()
|
||||
user.blood_DNA |= blood_DNA.Copy()
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
anchored = TRUE
|
||||
|
||||
/obj/effect/decal/cleanable/ash/attack_hand(mob/user as mob)
|
||||
to_chat(user, "<span class='notice'>[src] sifts through your fingers.</span>")
|
||||
to_chat(user, span_notice("[src] sifts through your fingers."))
|
||||
var/turf/simulated/floor/F = get_turf(src)
|
||||
if (istype(F))
|
||||
F.dirt += 4
|
||||
@@ -158,6 +158,6 @@
|
||||
icon_state = "confetti"
|
||||
|
||||
/obj/effect/decal/cleanable/confetti/attack_hand(mob/user)
|
||||
to_chat(user, "<span class='notice'>You start to meticulously pick up the confetti.</span>")
|
||||
to_chat(user, span_notice("You start to meticulously pick up the confetti."))
|
||||
if(do_after(user, 60))
|
||||
qdel(src)
|
||||
|
||||
@@ -35,12 +35,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
|
||||
|
||||
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
|
||||
|
||||
//just check if there is a poster on or adjacent to the wall
|
||||
@@ -56,10 +56,10 @@
|
||||
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
|
||||
|
||||
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, placement_dir=get_dir(user, W), serial=serial_number, itemtype = src.type)
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
if(!P) return
|
||||
|
||||
if(iswall(W) && user && P.loc == user.loc) //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!"))
|
||||
else
|
||||
P.roll_and_drop(P.loc)
|
||||
|
||||
@@ -183,10 +183,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(user.loc)
|
||||
return
|
||||
|
||||
@@ -200,7 +200,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 = 1
|
||||
icon_state = "poster_ripped"
|
||||
@@ -239,4 +239,4 @@
|
||||
//Non-Random Posters
|
||||
|
||||
/obj/structure/sign/poster/custom
|
||||
roll_type = /obj/item/contraband/poster/custom
|
||||
roll_type = /obj/item/contraband/poster/custom
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -56,14 +56,14 @@
|
||||
icon_state = "mummified2"
|
||||
|
||||
/obj/effect/decal/remains/attack_hand(mob/user as mob)
|
||||
to_chat(user, "<span class='notice'>[src] sinks together into a pile of ash.</span>")
|
||||
to_chat(user, span_notice("[src] sinks together into a pile of ash."))
|
||||
var/turf/simulated/floor/F = get_turf(src)
|
||||
if(istype(F))
|
||||
new /obj/effect/decal/cleanable/ash(F)
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/decal/remains/robot/attack_hand(mob/user as mob)
|
||||
to_chat(user, "<span class='notice'>[src] crumbles down into a pile of debris.</span>")
|
||||
to_chat(user, span_notice("[src] crumbles down into a pile of debris."))
|
||||
var/turf/simulated/floor/F = get_turf(src)
|
||||
if(istype(F))
|
||||
new /obj/effect/decal/cleanable/blood/gibs/robot(F)
|
||||
|
||||
Reference in New Issue
Block a user