Replace all secondary flags with bitflags stored in the flags_2 var
This commit is contained in:
@@ -79,14 +79,14 @@
|
||||
|
||||
|
||||
/obj/machinery/power/solar/obj_break(damage_flag)
|
||||
if(!(stat & BROKEN) && !(flags & NODECONSTRUCT))
|
||||
if(!(stat & BROKEN) && !(flags_1 & NODECONSTRUCT_1))
|
||||
playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
|
||||
stat |= BROKEN
|
||||
unset_control()
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/power/solar/deconstruct(disassembled = TRUE)
|
||||
if(!(flags & NODECONSTRUCT))
|
||||
if(!(flags_1 & NODECONSTRUCT_1))
|
||||
if(disassembled)
|
||||
var/obj/item/solar_assembly/S = locate() in src
|
||||
if(S)
|
||||
@@ -436,7 +436,7 @@
|
||||
A.icon_state = "4"
|
||||
A.anchored = TRUE
|
||||
qdel(src)
|
||||
else if(user.a_intent != INTENT_HARM && !(I.flags & NOBLUDGEON))
|
||||
else if(user.a_intent != INTENT_HARM && !(I.flags_1 & NOBLUDGEON_1))
|
||||
src.attack_hand(user)
|
||||
else
|
||||
return ..()
|
||||
@@ -452,7 +452,7 @@
|
||||
playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
|
||||
|
||||
/obj/machinery/power/solar_control/obj_break(damage_flag)
|
||||
if(!(stat & BROKEN) && !(flags & NODECONSTRUCT))
|
||||
if(!(stat & BROKEN) && !(flags_1 & NODECONSTRUCT_1))
|
||||
playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
|
||||
stat |= BROKEN
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user