Split up and rename var/flags (#17794)

* Split up and rename `var/flags`

* Various fixes

* CL

* Don't rename Phoron Guard phoron preset

---------

Co-authored-by: Cody Brittain <cbrittain10@live.com>
This commit is contained in:
Cody Brittain
2023-11-22 16:27:51 +00:00
committed by GitHub
co-authored by Cody Brittain
parent 4b9303a1e9
commit 06601c9ec3
335 changed files with 763 additions and 674 deletions
@@ -3,7 +3,7 @@
desc = "A simple tube full of toothpaste."
icon = 'icons/obj/chemical.dmi'
icon_state = "toothpaste"
flags = OPENCONTAINER
atom_flags = ATOM_FLAG_OPEN_CONTAINER
possible_transfer_amounts = null
amount_per_transfer_from_this = 5
volume = 20
@@ -27,7 +27,7 @@
desc = "An essential tool in dental hygiene."
icon = 'icons/obj/chemical.dmi'
icon_state = "toothbrush_b"
flags = OPENCONTAINER
atom_flags = ATOM_FLAG_OPEN_CONTAINER
possible_transfer_amounts = null
amount_per_transfer_from_this = 5
volume = 5
@@ -68,7 +68,7 @@
if(!reagents.total_volume)
to_chat(user, "<span class='warning'>The [initial(name)] is dry!</span>")
else if(reagents.total_volume)
if(user.zone_sel.selecting == BP_MOUTH && !(M.wear_mask && M.wear_mask.item_flags & AIRTIGHT))
if(user.zone_sel.selecting == BP_MOUTH && !(M.wear_mask && M.wear_mask.item_flags & ITEM_FLAG_AIRTIGHT))
user.do_attack_animation(src)
user.visible_message("<span class='warning'>[user] is trying to brush \the [target]'s teeth \the [src]!</span>")
playsound(loc, 'sound/effects/toothbrush.ogg', 15, 1)