mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 21:23:20 +00:00
Fixes #8250.
Uncomplicates the examine pre-check. Ensures door/examine() returns the proper value.
This commit is contained in:
@@ -294,7 +294,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/door/examine(mob/user)
|
/obj/machinery/door/examine(mob/user)
|
||||||
..()
|
. = ..()
|
||||||
if(src.health < src.maxhealth / 4)
|
if(src.health < src.maxhealth / 4)
|
||||||
user << "\The [src] looks like it's about to break!"
|
user << "\The [src] looks like it's about to break!"
|
||||||
else if(src.health < src.maxhealth / 2)
|
else if(src.health < src.maxhealth / 2)
|
||||||
|
|||||||
@@ -77,7 +77,8 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/door/firedoor/examine(mob/user)
|
/obj/machinery/door/firedoor/examine(mob/user)
|
||||||
if(!..(user, 1) && !isAI(user))
|
. = ..()
|
||||||
|
if(!. || !density)
|
||||||
return
|
return
|
||||||
|
|
||||||
if(pdiff >= FIREDOOR_MAX_PRESSURE_DIFF)
|
if(pdiff >= FIREDOOR_MAX_PRESSURE_DIFF)
|
||||||
|
|||||||
Reference in New Issue
Block a user