Cleaned up environment_smash vars with bitflag defines (#2515)
This commit is contained in:
committed by
kevinz000
parent
718940042a
commit
94429bdccc
@@ -128,7 +128,7 @@ field_generator power level display
|
||||
return ..()
|
||||
|
||||
/obj/machinery/field/generator/attack_animal(mob/living/simple_animal/M)
|
||||
if(M.environment_smash >= 3 && active == FG_OFFLINE && state != FG_UNSECURED)
|
||||
if(M.environment_smash & ENVIRONMENT_SMASH_RWALLS && active == FG_OFFLINE && state != FG_UNSECURED)
|
||||
state = FG_UNSECURED
|
||||
anchored = FALSE
|
||||
M.visible_message("<span class='warning'>[M] rips [src] free from its moorings!</span>")
|
||||
|
||||
Reference in New Issue
Block a user