Replace all secondary flags with bitflags stored in the flags_2 var
This commit is contained in:
@@ -77,5 +77,5 @@
|
||||
|
||||
/obj/item/clothing/gloves/space_ninja/examine(mob/user)
|
||||
..()
|
||||
if(flags & NODROP)
|
||||
if(flags_1 & NODROP_1)
|
||||
to_chat(user, "The energy drain mechanism is: <B>[candrain?"active":"inactive"]</B>.")
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
icon_state = "s-ninja"
|
||||
item_state = "secshoes"
|
||||
permeability_coefficient = 0.01
|
||||
flags = NOSLIP
|
||||
flags_1 = NOSLIP_1
|
||||
resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
||||
armor = list(melee = 60, bullet = 50, laser = 30,energy = 15, bomb = 30, bio = 30, rad = 30, fire = 100, acid = 100)
|
||||
strip_delay = 120
|
||||
|
||||
@@ -130,15 +130,15 @@ Contents:
|
||||
to_chat(H, "<span class='userdanger'>ERROR</span>: 110223 UNABLE TO LOCATE HAND GEAR\nABORTING...")
|
||||
return FALSE
|
||||
affecting = H
|
||||
flags |= NODROP //colons make me go all |=
|
||||
flags_1 |= NODROP_1 //colons make me go all |=
|
||||
slowdown = FALSE
|
||||
n_hood = H.head
|
||||
n_hood.flags |= NODROP
|
||||
n_hood.flags_1 |= NODROP_1
|
||||
n_shoes = H.shoes
|
||||
n_shoes.flags |= NODROP
|
||||
n_shoes.flags_1 |= NODROP_1
|
||||
n_shoes.slowdown--
|
||||
n_gloves = H.gloves
|
||||
n_gloves.flags |= NODROP
|
||||
n_gloves.flags_1 |= NODROP_1
|
||||
return TRUE
|
||||
|
||||
/obj/item/clothing/suit/space/space_ninja/proc/lockIcons(mob/living/carbon/human/H)
|
||||
@@ -150,18 +150,18 @@ Contents:
|
||||
//This proc allows the suit to be taken off.
|
||||
/obj/item/clothing/suit/space/space_ninja/proc/unlock_suit()
|
||||
affecting = null
|
||||
flags &= ~NODROP
|
||||
flags_1 &= ~NODROP_1
|
||||
slowdown = 1
|
||||
icon_state = "s-ninja"
|
||||
if(n_hood)//Should be attached, might not be attached.
|
||||
n_hood.flags &= ~NODROP
|
||||
n_hood.flags_1 &= ~NODROP_1
|
||||
if(n_shoes)
|
||||
n_shoes.flags &= ~NODROP
|
||||
n_shoes.flags_1 &= ~NODROP_1
|
||||
n_shoes.slowdown++
|
||||
if(n_gloves)
|
||||
n_gloves.icon_state = "s-ninja"
|
||||
n_gloves.item_state = "s-ninja"
|
||||
n_gloves.flags &= ~NODROP
|
||||
n_gloves.flags_1 &= ~NODROP_1
|
||||
n_gloves.candrain=0
|
||||
n_gloves.draining=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user