mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Adds examine boxes. (#18370)
* Adds examine boxes. * lint * what kind of dreams did you dream? * unlimited * midgardsormr * sdsd * fixes --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -468,16 +468,16 @@
|
||||
if(heat_percentage > 85)
|
||||
add_overlay("sensors-effect-hot")
|
||||
|
||||
/obj/machinery/shipsensors/examine(mob/user)
|
||||
/obj/machinery/shipsensors/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(health <= 0)
|
||||
to_chat(user, "\The [src] is wrecked.")
|
||||
. += "\The [src] is wrecked."
|
||||
else if(health < max_health * 0.25)
|
||||
to_chat(user, "<span class='danger'>\The [src] looks like it's about to break!</span>")
|
||||
. += "<span class='danger'>\The [src] looks like it's about to break!</span>"
|
||||
else if(health < max_health * 0.5)
|
||||
to_chat(user, "<span class='danger'>\The [src] looks seriously damaged!</span>")
|
||||
. += "<span class='danger'>\The [src] looks seriously damaged!</span>"
|
||||
else if(health < max_health * 0.75)
|
||||
to_chat(user, "\The [src] shows signs of damage!")
|
||||
. += "\The [src] shows signs of damage!"
|
||||
|
||||
/obj/machinery/shipsensors/bullet_act(var/obj/item/projectile/Proj)
|
||||
take_damage(Proj.get_structure_damage())
|
||||
|
||||
Reference in New Issue
Block a user