mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +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:
@@ -71,18 +71,18 @@
|
||||
R.update_icon()
|
||||
return ..()
|
||||
|
||||
/obj/structure/railing/examine(mob/user)
|
||||
/obj/structure/railing/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(health < maxhealth)
|
||||
switch(health / maxhealth)
|
||||
if(0.0 to 0.5)
|
||||
to_chat(user, SPAN_WARNING("It looks severely damaged!"))
|
||||
. += SPAN_WARNING("It looks severely damaged!")
|
||||
if(0.25 to 0.5)
|
||||
to_chat(user, SPAN_WARNING("It looks damaged!"))
|
||||
. += SPAN_WARNING("It looks damaged!")
|
||||
if(0.5 to 1.0)
|
||||
to_chat(user, SPAN_NOTICE("It has a few scrapes and dents."))
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("\The [src] is <b>[density ? "closed" : "open"]</b> to passage.")))
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("\The [src] is <b>[anchored ? "" : "not"] screwed</b> to the floor.")))
|
||||
. += SPAN_NOTICE("It has a few scrapes and dents.")
|
||||
. += FONT_SMALL(SPAN_NOTICE("\The [src] is <b>[density ? "closed" : "open"]</b> to passage."))
|
||||
. += FONT_SMALL(SPAN_NOTICE("\The [src] is <b>[anchored ? "" : "not"] screwed</b> to the floor."))
|
||||
|
||||
/obj/structure/railing/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||
if(istype(mover,/obj/item/projectile))
|
||||
|
||||
Reference in New Issue
Block a user