mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +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:
@@ -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)
|
||||
|
||||
@@ -167,7 +167,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])
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
if(!is_on())
|
||||
return 0
|
||||
if(!check_fuel() || (use_power_oneoff(charge_per_burn) < charge_per_burn) || check_blockage())
|
||||
audible_message(src,"<span class='warning'>[src] coughs once and goes silent!</span>", runemessage = "sputtercough")
|
||||
audible_message(src,span_warning("[src] coughs once and goes silent!"), runemessage = "sputtercough")
|
||||
update_use_power(USE_POWER_OFF)
|
||||
return 0
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
// Already launched
|
||||
if(launched)
|
||||
to_chat(user, "<span class='warning'>The button is already depressed; the beacon has been launched already.</span>")
|
||||
to_chat(user, span_warning("The button is already depressed; the beacon has been launched already."))
|
||||
// Glass present
|
||||
else if(glass)
|
||||
if(user.a_intent == I_HURT)
|
||||
@@ -42,7 +42,7 @@
|
||||
update_icon()
|
||||
else
|
||||
user.custom_emote(VISIBLE_MESSAGE, "pats [src] in a friendly manner.")
|
||||
to_chat(user, "<span class='warning'>If you're trying to break the glass, you'll have to hit it harder than that...</span>")
|
||||
to_chat(user, span_warning("If you're trying to break the glass, you'll have to hit it harder than that..."))
|
||||
// Must be !glass and !launched
|
||||
else
|
||||
user.custom_emote(VISIBLE_MESSAGE, "pushes the button on [src]!")
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
if(confirm == "Eat it!")
|
||||
var/obj/belly/bellychoice = tgui_input_list(usr, "Which belly?","Select A Belly", L.vore_organs)
|
||||
if(bellychoice)
|
||||
L.visible_message("<span class='warning'>[L] is trying to stuff \the [src] into [L.gender == MALE ? "his" : L.gender == FEMALE ? "her" : "their"] [bellychoice]!</span>","<span class='notice'>You begin putting \the [src] into your [bellychoice]!</span>")
|
||||
L.visible_message(span_warning("[L] is trying to stuff \the [src] into [L.gender == MALE ? "his" : L.gender == FEMALE ? "her" : "their"] [bellychoice]!"),span_notice("You begin putting \the [src] into your [bellychoice]!"))
|
||||
if(do_after(L, 5 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE))
|
||||
forceMove(bellychoice)
|
||||
SSskybox.rebuild_skyboxes(map_z)
|
||||
L.visible_message("<span class='warning'>[L] eats a spaceship! This is totally normal.</span>","You eat the the spaceship! Yum, metal.")
|
||||
L.visible_message(span_warning("[L] eats a spaceship! This is totally normal."),"You eat the the spaceship! Yum, metal.")
|
||||
|
||||
/obj/effect/overmap/visitable/ship/proc/get_people_in_ship()
|
||||
. = list()
|
||||
|
||||
Reference in New Issue
Block a user