mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 00:49:06 +01:00
Tweaks mech examine to be a lot more readable. (#7995)
* Tweaks mech examine to be a lot more readable. * fuck it
This commit is contained in:
@@ -106,25 +106,25 @@
|
||||
/mob/living/heavy_vehicle/examine(var/mob/user)
|
||||
if(!user || !user.client)
|
||||
return
|
||||
to_chat(user, "That's \a [src].")
|
||||
to_chat(user, "That's \a <b>[src]</b>.")
|
||||
to_chat(user, desc)
|
||||
if(LAZYLEN(pilots) && (!hatch_closed || body.pilot_coverage < 100 || body.transparent_cabin))
|
||||
if(length(pilots) == 0)
|
||||
to_chat(user, "It has no pilot.")
|
||||
to_chat(user, "It has <b>no pilot</b>.")
|
||||
else
|
||||
for(var/pilot in pilots)
|
||||
if(istype(pilot, /mob))
|
||||
var/mob/M = pilot
|
||||
to_chat(user, "It is being piloted by <a href=?src=\ref[src];examine=\ref[M]>[M.name]</a>.")
|
||||
to_chat(user, "It is being <b>piloted</b> by <a href=?src=\ref[src];examine=\ref[M]>[M.name]</a>.")
|
||||
else
|
||||
to_chat(user, "It is being piloted by [pilot].")
|
||||
to_chat(user, "It is being <b>piloted</b> by <b>[pilot]</b>.")
|
||||
if(hardpoints.len)
|
||||
to_chat(user, "It has the following hardpoints:")
|
||||
to_chat(user, "<span class='notice'>It has the following hardpoints:</span>")
|
||||
for(var/hardpoint in hardpoints)
|
||||
var/obj/item/I = hardpoints[hardpoint]
|
||||
to_chat(user, "- [hardpoint]: [istype(I) ? "[I]" : "nothing"].")
|
||||
to_chat(user, "- <b>[hardpoint]</b>: [istype(I) ? "<span class='notice'><i>[I]</i></span>" : "nothing"].")
|
||||
else
|
||||
to_chat(user, "It has no visible hardpoints.")
|
||||
to_chat(user, "It has <b>no visible hardpoints</b>.")
|
||||
|
||||
for(var/obj/item/mech_component/thing in list(arms, legs, head, body))
|
||||
if(!thing)
|
||||
@@ -134,12 +134,12 @@
|
||||
if(1)
|
||||
damage_string = "undamaged"
|
||||
if(2)
|
||||
damage_string = "damaged"
|
||||
damage_string = "<span class='warning'>damaged</span>"
|
||||
if(3)
|
||||
damage_string = "badly damaged"
|
||||
damage_string = "<span class='warning'>badly damaged</span>"
|
||||
if(4)
|
||||
damage_string = "almost destroyed"
|
||||
to_chat(user, "Its [thing.name] [thing.gender == PLURAL ? "are" : "is"] [damage_string].")
|
||||
damage_string = "<span class='danger'>almost destroyed</span>"
|
||||
to_chat(user, "Its <b>[thing.name]</b> [thing.gender == PLURAL ? "are" : "is"] [damage_string].")
|
||||
|
||||
/mob/living/heavy_vehicle/Topic(href,href_list[])
|
||||
if (href_list["examine"])
|
||||
|
||||
Reference in New Issue
Block a user