mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
refactors most spans
This commit is contained in:
@@ -104,13 +104,13 @@ GLOBAL_DATUM(gateway_station, /obj/machinery/gateway/centerstation)
|
||||
if(linked.len != 8) return
|
||||
if(!powered()) return
|
||||
if(!awaygate)
|
||||
to_chat(user, "<span class='notice'>Error: No destination found. Please program gateway.</span>")
|
||||
to_chat(user, span_notice("Error: No destination found. Please program gateway."))
|
||||
return
|
||||
if(world.time < wait)
|
||||
to_chat(user, "<span class='notice'>Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes.</span>")
|
||||
to_chat(user, span_notice("Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes."))
|
||||
return
|
||||
if(!awaygate.calibrated && !LAZYLEN(awaydestinations)) //VOREStation Edit
|
||||
to_chat(user, "<span class='notice'>Error: Destination gate uncalibrated. Gateway unsafe to use without far-end calibration update.</span>")
|
||||
to_chat(user, span_notice("Error: Destination gate uncalibrated. Gateway unsafe to use without far-end calibration update."))
|
||||
return
|
||||
|
||||
for(var/obj/machinery/gateway/G in linked)
|
||||
@@ -209,7 +209,7 @@ GLOBAL_DATUM(gateway_station, /obj/machinery/gateway/centerstation)
|
||||
sleep(1)
|
||||
MI.Paralyse(10)
|
||||
MI << 'sound/effects/bamf.ogg'
|
||||
to_chat(MI,"<span class='warning'>You're starting to come to. You feel like you've been out for a few minutes, at least...</span>")
|
||||
to_chat(MI,span_warning("You're starting to come to. You feel like you've been out for a few minutes, at least..."))
|
||||
for(var/obj/item/I in L)
|
||||
if(istype(I,/obj/item/implant) || istype(I,/obj/item/nif))
|
||||
continue
|
||||
@@ -219,7 +219,7 @@ GLOBAL_DATUM(gateway_station, /obj/machinery/gateway/centerstation)
|
||||
sleep(1)
|
||||
L.Paralyse(10)
|
||||
L << 'sound/effects/bamf.ogg'
|
||||
to_chat(L,"<span class='warning'>You're starting to come to. You feel like you've been out for a few minutes, at least...</span>")
|
||||
to_chat(L,span_warning("You're starting to come to. You feel like you've been out for a few minutes, at least..."))
|
||||
//VOREStation Addition End
|
||||
return
|
||||
|
||||
@@ -231,7 +231,7 @@ GLOBAL_DATUM(gateway_station, /obj/machinery/gateway/centerstation)
|
||||
else
|
||||
awaygate = locate(/obj/machinery/gateway/centeraway)
|
||||
if(!awaygate) // We still can't find the damn thing because there is no destination.
|
||||
to_chat(user, "<span class='notice'>Error: Programming failed. No destination found.</span>")
|
||||
to_chat(user, span_notice("Error: Programming failed. No destination found."))
|
||||
return
|
||||
to_chat(user, "<span class='notice'><b>Startup programming successful!</b></span>: A destination in another point of space and time has been detected.")
|
||||
else
|
||||
@@ -304,7 +304,7 @@ GLOBAL_DATUM(gateway_away, /obj/machinery/gateway/centeraway)
|
||||
if(!ready) return
|
||||
if(linked.len != 8) return
|
||||
if(!stationgate || !calibrated) // Vorestation edit. Not like Polaris ever touches this anyway.
|
||||
to_chat(user, "<span class='notice'>Error: No destination found. Please calibrate gateway.</span>")
|
||||
to_chat(user, span_notice("Error: No destination found. Please calibrate gateway."))
|
||||
return
|
||||
|
||||
for(var/obj/machinery/gateway/G in linked)
|
||||
@@ -358,7 +358,7 @@ GLOBAL_DATUM(gateway_away, /obj/machinery/gateway/centeraway)
|
||||
else
|
||||
stationgate = locate(/obj/machinery/gateway/centerstation)
|
||||
if(!stationgate)
|
||||
to_chat(user, "<span class='notice'>Error: Recalibration failed. No destination found... That can't be good.</span>")
|
||||
to_chat(user, span_notice("Error: Recalibration failed. No destination found... That can't be good."))
|
||||
return
|
||||
// VOREStation Add End
|
||||
else
|
||||
|
||||
@@ -8,18 +8,18 @@
|
||||
|
||||
/obj/machinery/gateway/centeraway/mcguffin/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if(calibrated && stationgate)
|
||||
to_chat(user, "<span class='info'>The gate is already configured, you should be able to activate it.</span>")
|
||||
to_chat(user, span_info("The gate is already configured, you should be able to activate it."))
|
||||
return
|
||||
else if(!stationgate)
|
||||
to_chat(user, "<span class='danger'>Error: Configuration failed. No destination found... That can't be good.</span>")
|
||||
to_chat(user, span_danger("Error: Configuration failed. No destination found... That can't be good."))
|
||||
return
|
||||
|
||||
if(istype(W,mcguffin_type) && !calibrated)
|
||||
to_chat(user, "<span class='emote'>As the device nears the gateway, mechanical clunks and whirrs can be heard. <br>[span_blue("<b>Configuration successful! </b>")]<br>This gate's systems have been fine tuned. Travel to this gate will now be on target.</span>")
|
||||
to_chat(user, span_emote("As the device nears the gateway, mechanical clunks and whirrs can be heard. <br>[span_blue("<b>Configuration successful! </b>")]<br>This gate's systems have been fine tuned. Travel to this gate will now be on target."))
|
||||
calibrated = 1
|
||||
return
|
||||
else
|
||||
to_chat(user, "<span class='danger'>This device does not seem to interface correctly with the gateway. Perhaps you should try something else.</span>")
|
||||
to_chat(user, span_danger("This device does not seem to interface correctly with the gateway. Perhaps you should try something else."))
|
||||
return
|
||||
|
||||
//If you use this kind of gateway you NEED one of these on the map or the players won't be able to leave//
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
for(var/obj/O in M.contents)
|
||||
if(O.redgate_allowed == FALSE)
|
||||
to_chat(M, "<span class='warning'>The redgate refuses to allow you to pass whilst you possess \the [O].</span>")
|
||||
to_chat(M, span_warning("The redgate refuses to allow you to pass whilst you possess \the [O]."))
|
||||
return
|
||||
|
||||
if(keycheck) //exceptions probably won't have a ckey
|
||||
@@ -66,12 +66,12 @@
|
||||
pulled.forceMove(ourturf)
|
||||
M.continue_pulling(pulled)
|
||||
else
|
||||
to_chat(M, "<span class='notice'>The redgate refused your pulled item.</span>")
|
||||
to_chat(M, span_notice("The redgate refused your pulled item."))
|
||||
else
|
||||
playsound(src,'sound/effects/ominous-hum-2.ogg', 100,1)
|
||||
M.forceMove(ourturf) //Let's just do forcemove, I don't really want people teleporting to weird places if they have bluespace stuff
|
||||
else
|
||||
to_chat(M, "<span class='notice'>Something blocks your way.</span>")
|
||||
to_chat(M, span_notice("Something blocks your way."))
|
||||
|
||||
/obj/structure/redgate/proc/find_our_turf(var/atom/movable/AM) //This finds the turf on the opposite side of the target gate from where you are
|
||||
var/offset_x = x - AM.x //used for more smooth teleporting
|
||||
@@ -106,7 +106,7 @@
|
||||
src.teleport(M)
|
||||
else
|
||||
if(!find_partner())
|
||||
to_chat(M, "<span class='warning'>The [src] remains off... seems like it doesn't have a destination.</span>")
|
||||
to_chat(M, span_warning("The [src] remains off... seems like it doesn't have a destination."))
|
||||
|
||||
|
||||
/obj/structure/redgate/attack_ghost(var/mob/observer/dead/user)
|
||||
@@ -1513,7 +1513,7 @@
|
||||
|
||||
//set the verb based on matching (or mismatching) outfits, and teleport the flag back to base if it was touched by the owning team
|
||||
if(grabbing_team == laser_team)
|
||||
user.visible_message("<span class='warning'>[user] is returning \the [src]!</span>")
|
||||
user.visible_message(span_warning("[user] is returning \the [src]!"))
|
||||
if(do_after(user,flag_return_delay)) //channel return, rather than instant
|
||||
user.drop_from_inventory(src)
|
||||
src.loc = src.start_pos
|
||||
@@ -1522,7 +1522,7 @@
|
||||
user.drop_from_inventory(src)
|
||||
return
|
||||
else
|
||||
user.visible_message("<span class='warning'>[user] has taken \the [src]!</span>")
|
||||
user.visible_message(span_warning("[user] has taken \the [src]!"))
|
||||
global_announcer.autosay("[src] taken by [capitalize(grabbing_team)] team!","Laserdome Announcer","Entertainment")
|
||||
|
||||
/obj/item/laserdome_flag/red
|
||||
@@ -1643,7 +1643,7 @@
|
||||
else
|
||||
return //if they're not on a team, stop!
|
||||
|
||||
user.visible_message("<span class='warning'>[user] has taken \the [src]!</span>")
|
||||
user.visible_message(span_warning("[user] has taken \the [src]!"))
|
||||
//cache our grabber and their team, for throw interactions with the goals later
|
||||
last_holder = M
|
||||
last_team = grabbing_team
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
/obj/effect/step_trigger/message/Trigger(mob/M as mob)
|
||||
if(M.client)
|
||||
to_chat(M, "<span class='info'>[message]</span>")
|
||||
to_chat(M, span_info("[message]"))
|
||||
if(once)
|
||||
qdel(src)
|
||||
|
||||
@@ -41,4 +41,4 @@
|
||||
|
||||
uses--
|
||||
if(uses == 0)
|
||||
qdel(src)
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user