Cleaned up environment_smash vars with bitflag defines (#30154)

* Switched to bitflags

* CB's change.

* fixed

* i can spell i swear

* cb2
This commit is contained in:
ShizCalev
2017-08-27 06:49:58 -04:00
committed by AnturK
parent 14e63ffd8c
commit 7056b38410
8 changed files with 12 additions and 14 deletions
@@ -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>")