mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +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)
|
||||
..()
|
||||
. = ..()
|
||||
if(src.health < src.maxhealth / 4)
|
||||
user << "\The [src] looks like it's about to break!"
|
||||
else if(src.health < src.maxhealth / 2)
|
||||
|
||||
@@ -77,7 +77,8 @@
|
||||
|
||||
|
||||
/obj/machinery/door/firedoor/examine(mob/user)
|
||||
if(!..(user, 1) && !isAI(user))
|
||||
. = ..()
|
||||
if(!. || !density)
|
||||
return
|
||||
|
||||
if(pdiff >= FIREDOOR_MAX_PRESSURE_DIFF)
|
||||
|
||||
Reference in New Issue
Block a user