replaces atom.initialized with ATOM_INITIALIZED

refactors atom/var/flags to atom_flags and area_flags
moves NOBLOODY, NOBLUDGEON, and PHORONGUARD to item_flags instead of atom_flags
corrects various misapplied flags
This commit is contained in:
spookerton
2022-10-18 09:36:36 +01:00
parent 650ee09942
commit 3abdbbaa1c
150 changed files with 414 additions and 431 deletions
+4 -4
View File
@@ -43,7 +43,7 @@ var/global/image/contamination_overlay = image('icons/effects/contamination.dmi'
/obj/item/proc/can_contaminate()
//Clothing and backpacks can be contaminated.
if(flags & PHORONGUARD)
if(item_flags & PHORONGUARD)
return 0
else if(istype(src,/obj/item/storage/backpack))
return 0 //Cannot be washed :(
@@ -96,7 +96,7 @@ var/global/image/contamination_overlay = image('icons/effects/contamination.dmi'
if(vsc.plc.SKIN_BURNS && (species.breath_type != "phoron"))
if(!pl_head_protected() || !pl_suit_protected())
burn_skin(0.75)
if(prob(20))
if(prob(20))
to_chat(src, "<span class='danger'>Your skin burns!</span>")
updatehealth()
@@ -142,7 +142,7 @@ var/global/image/contamination_overlay = image('icons/effects/contamination.dmi'
//Checks if the head is adequately sealed. //This is just odd. TODO: Make this respect the body_parts_covered stuff like thermal gear does.
if(head)
if(vsc.plc.PHORONGUARD_ONLY)
if(head.flags & PHORONGUARD)
if(head.item_flags & PHORONGUARD)
return 1
else if(head.body_parts_covered & EYES)
return 1
@@ -154,7 +154,7 @@ var/global/image/contamination_overlay = image('icons/effects/contamination.dmi'
for(var/obj/item/protection in list(wear_suit, gloves, shoes)) //This is why it's odd. If I'm in a full suit, but my shoes and gloves aren't phoron proof, damage.
if(!protection)
continue
if(vsc.plc.PHORONGUARD_ONLY && !(protection.flags & PHORONGUARD))
if(vsc.plc.PHORONGUARD_ONLY && !(protection.item_flags & PHORONGUARD))
return 0
coverage |= protection.body_parts_covered