mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] remove static chat colour tags (#7635)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com> Co-authored-by: Changelogs <action@github.com> Co-authored-by: Aroliacue <96730930+Aroliacue@users.noreply.github.com> Co-authored-by: Eli <fracshun@gmail.com> Co-authored-by: tacoguy7765093 <karokaromaro@gmail.com> Co-authored-by: Nadyr <41974248+Darlantanis@users.noreply.github.com> Co-authored-by: TheGreatKitsune <88862343+TheGreatKitsune@users.noreply.github.com> Co-authored-by: Missile597 <150307788+Missile597@users.noreply.github.com>
This commit is contained in:
@@ -26,11 +26,11 @@ Any frequency works, it's self-setting, but it seems like people have decided 13
|
||||
my_controller = get_controller(get_area(src))
|
||||
my_device = locate(my_device_type) in get_turf(src)
|
||||
if(!my_device)
|
||||
to_world("<b><font color='red'>WARNING:</font><font color='black'>Airlock helper '[name]' couldn't find what it wanted at: X:[x] Y:[y] Z:[z]</font></b>")
|
||||
to_world("<b>[span_red("WARNING:")][span_black("Airlock helper '[name]' couldn't find what it wanted at: X:[x] Y:[y] Z:[z]")]</b>")
|
||||
else if(!my_controller)
|
||||
to_world("<b><font color='red'>WARNING:</font><font color='black'>Airlock helper '[name]' couldn't find a controller at: X:[x] Y:[y] Z:[z]</font></b>")
|
||||
to_world("<b>[span_red("WARNING:")][span_black("Airlock helper '[name]' couldn't find a controller at: X:[x] Y:[y] Z:[z]")]</b>")
|
||||
else if(!my_controller.id_tag)
|
||||
to_world("<b><font color='red'>WARNING:</font><font color='black'>Airlock helper '[name]' found a controller without an 'id_tag' set: X:[x] Y:[y] Z:[z]</font></b>")
|
||||
to_world("<b>[span_red("WARNING:")][span_black("Airlock helper '[name]' found a controller without an 'id_tag' set: X:[x] Y:[y] Z:[z]")]</b>")
|
||||
else
|
||||
setup()
|
||||
return INITIALIZE_HINT_QDEL
|
||||
@@ -48,15 +48,15 @@ Any frequency works, it's self-setting, but it seems like people have decided 13
|
||||
for(var/obj/O in A)
|
||||
if(istype(O, my_controller_type))
|
||||
potentials += O
|
||||
|
||||
|
||||
//Couldn't find one
|
||||
if(!potentials.len)
|
||||
return null
|
||||
|
||||
|
||||
//Only found one
|
||||
if(potentials.len == 1)
|
||||
return potentials[1]
|
||||
|
||||
|
||||
//Gotta find closest
|
||||
var/closest = potentials[potentials.len]
|
||||
var/closest_dist = get_dist(src, closest)
|
||||
@@ -207,4 +207,4 @@ Any frequency works, it's self-setting, but it seems like people have decided 13
|
||||
icon_state = "btnin"
|
||||
tag_addon = "_interior_button"
|
||||
command = "cycle_interior"
|
||||
// CHOMPStation Addition End
|
||||
// CHOMPStation Addition End
|
||||
|
||||
Reference in New Issue
Block a user