mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 10:34:10 +01:00
refactors most spans
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
/obj/machinery/computer/ship/attack_ai(mob/user)
|
||||
//VOREStation Addition Start
|
||||
if(!ai_control && issilicon(user))
|
||||
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||
to_chat(user, span_warning("Access Denied."))
|
||||
return
|
||||
//VOREStation Addition End
|
||||
if(tgui_status(user, tgui_state()) > STATUS_CLOSE)
|
||||
@@ -90,11 +90,11 @@
|
||||
return
|
||||
//VOREStation Addition Start
|
||||
if(!ai_control && issilicon(user))
|
||||
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||
to_chat(user, span_warning("Access Denied."))
|
||||
return TRUE
|
||||
//VOREStation Addition End
|
||||
if(!allowed(user))
|
||||
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||
to_chat(user, span_warning("Access Denied."))
|
||||
return TRUE
|
||||
if(tgui_status(user, tgui_state()) > STATUS_CLOSE)
|
||||
return interface_interact(user)
|
||||
|
||||
@@ -165,7 +165,7 @@ GLOBAL_LIST_EMPTY(all_waypoints)
|
||||
sec_name = "Sector #[known_sectors.len]"
|
||||
R.fields["name"] = sec_name
|
||||
if(sec_name in known_sectors)
|
||||
to_chat(usr, "<span class='warning'>Sector with that name already exists, please input a different name.</span>")
|
||||
to_chat(usr, span_warning("Sector with that name already exists, please input a different name."))
|
||||
return TRUE
|
||||
switch(params["add"])
|
||||
if("current")
|
||||
|
||||
@@ -153,13 +153,13 @@
|
||||
return
|
||||
|
||||
if(WT.remove_fuel(0,user))
|
||||
to_chat(user, "<span class='notice'>You start repairing the damage to [src].</span>")
|
||||
to_chat(user, span_notice("You start repairing the damage to [src]."))
|
||||
playsound(src, 'sound/items/Welder.ogg', 100, 1)
|
||||
if(do_after(user, max(5, damage / 5), src) && WT && WT.isOn())
|
||||
to_chat(user, "<span class='notice'>You finish repairing the damage to [src].</span>")
|
||||
to_chat(user, span_notice("You finish repairing the damage to [src]."))
|
||||
take_damage(-damage)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You need more welding fuel to complete this task.</span>")
|
||||
to_chat(user, span_notice("You need more welding fuel to complete this task."))
|
||||
return
|
||||
return
|
||||
..()
|
||||
@@ -182,11 +182,11 @@
|
||||
/obj/machinery/shipsensors/examine(mob/user)
|
||||
. = ..()
|
||||
if(health <= 0)
|
||||
. += "<span class='danger'>It is wrecked.</span>"
|
||||
. += span_danger("It is wrecked.")
|
||||
else if(health < max_health * 0.25)
|
||||
. += "<span class='danger'>It looks like it's about to break!</span>"
|
||||
. += span_danger("It looks like it's about to break!")
|
||||
else if(health < max_health * 0.5)
|
||||
. += "<span class='danger'>It looks seriously damaged!</span>"
|
||||
. += span_danger("It looks seriously damaged!")
|
||||
else if(health < max_health * 0.75)
|
||||
. += "It shows signs of damage!"
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
if(!in_vacuum())
|
||||
toggle()
|
||||
if(heat > critical_heat)
|
||||
src.visible_message("<span class='danger'>\The [src] violently spews out sparks!</span>")
|
||||
src.visible_message(span_danger("\The [src] violently spews out sparks!"))
|
||||
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
|
||||
s.set_up(3, 1, src)
|
||||
s.start()
|
||||
|
||||
@@ -22,7 +22,7 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
|
||||
return
|
||||
. = attempt_hook_up_recursive(sector)
|
||||
if(. && linked && user)
|
||||
to_chat(user, "<span class='notice'>[src] reconnected to [linked]</span>")
|
||||
to_chat(user, span_notice("[src] reconnected to [linked]"))
|
||||
user << browse(null, "window=[src]") // close reconnect dialog
|
||||
|
||||
/obj/machinery/computer/ship/proc/attempt_hook_up_recursive(obj/effect/overmap/visitable/ship/sector)
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
var/datum/shuttle/autodock/overmap/shuttle = SSshuttles.shuttles[shuttle_tag]
|
||||
if(!istype(shuttle))
|
||||
to_chat(usr, "<span class='warning'>Unable to establish link with the shuttle.</span>")
|
||||
to_chat(usr, span_warning("Unable to establish link with the shuttle."))
|
||||
return TRUE
|
||||
|
||||
if(ismob(usr))
|
||||
@@ -45,7 +45,7 @@
|
||||
if(possible_d.len)
|
||||
D = tgui_input_list(usr, "Choose shuttle destination", "Shuttle Destination", possible_d)
|
||||
else
|
||||
to_chat(usr,"<span class='warning'>No valid landing sites in range.</span>")
|
||||
to_chat(usr,span_warning("No valid landing sites in range."))
|
||||
possible_d = shuttle.get_possible_destinations()
|
||||
if(CanInteract(usr, GLOB.tgui_default_state) && (D in possible_d))
|
||||
shuttle.set_destination(possible_d[D])
|
||||
|
||||
Reference in New Issue
Block a user