Skip to content

Commit

Permalink
tweak(masks): all masks block food -Auesti
Browse files Browse the repository at this point in the history
  • Loading branch information
Auesti authored Apr 12, 2020
1 parent d0c3fc4 commit e549f78
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion code/__defines/flags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ GLOBAL_LIST_INIT(bitflags, list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 204
#define ITEM_FLAG_AIRTIGHT 0x0040 // Functions with internals.
#define ITEM_FLAG_NOSLIP 0x0080 // Prevents from slipping on wet floors, in space, etc.
#define ITEM_FLAG_BLOCK_GAS_SMOKE_EFFECT 0x0100 // Blocks the effect that chemical clouds would have on a mob -- glasses, mask and helmets ONLY! (NOTE: flag shared with ONESIZEFITSALL)
#define ITEM_FLAG_FLEXIBLEMATERIAL 0x0200 // At the moment, masks with this flag will not prevent eating even if they are covering your face.
#define ITEM_FLAG_PREMODIFIED 0x0400 // Gloves that are clipped by default
#define ITEM_FLAG_IS_BELT 0x0800 // Items that can be worn on the belt slot, even with no undersuit equipped

Expand Down
3 changes: 1 addition & 2 deletions code/modules/clothing/masks/breath.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
name = "breath mask"
icon_state = "breath"
item_state = "breath"
item_flags = ITEM_FLAG_AIRTIGHT|ITEM_FLAG_FLEXIBLEMATERIAL
item_flags = ITEM_FLAG_AIRTIGHT
body_parts_covered = FACE
w_class = ITEM_SIZE_SMALL
gas_transfer_coefficient = 0.10
permeability_coefficient = 0.50
armor = list(melee = 5, bullet = 3, laser = 3, energy = 0, bomb = 0, bio = 25, rad = 0)
down_gas_transfer_coefficient = 1
down_body_parts_covered = null
down_item_flags = ITEM_FLAG_THICKMATERIAL
down_icon_state = "breathdown"
pull_mask = 1
Expand Down
8 changes: 4 additions & 4 deletions code/modules/clothing/masks/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
item_state = "sterile"
w_class = ITEM_SIZE_SMALL
body_parts_covered = FACE
item_flags = ITEM_FLAG_FLEXIBLEMATERIAL
item_flags = 0
gas_transfer_coefficient = 0.90
permeability_coefficient = 0.01
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 60, rad = 0)
Expand Down Expand Up @@ -73,7 +73,7 @@
icon_state = "blueneckscarf"
item_state = "blueneckscarf"
body_parts_covered = FACE
item_flags = ITEM_FLAG_FLEXIBLEMATERIAL
item_flags = 0
w_class = ITEM_SIZE_SMALL
gas_transfer_coefficient = 0.90

Expand All @@ -83,7 +83,7 @@
icon_state = "redwhite_scarf"
item_state = "redwhite_scarf"
body_parts_covered = FACE
item_flags = ITEM_FLAG_FLEXIBLEMATERIAL
item_flags = 0
w_class = ITEM_SIZE_SMALL
gas_transfer_coefficient = 0.90

Expand Down Expand Up @@ -277,7 +277,7 @@
body_parts_covered = FACE
icon_state = "bandblack"
item_state = "bandblack"
item_flags = ITEM_FLAG_FLEXIBLEMATERIAL
item_flags = 0
w_class = ITEM_SIZE_SMALL
armor = list(melee = 5, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 15, rad = 0)

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ meteor_act
/mob/living/carbon/human/check_mouth_coverage()
var/list/protective_gear = list(head, wear_mask, wear_suit, w_uniform)
for(var/obj/item/gear in protective_gear)
if(istype(gear) && (gear.body_parts_covered & FACE) && !(gear.item_flags & ITEM_FLAG_FLEXIBLEMATERIAL))
if(istype(gear) && (gear.body_parts_covered & FACE))
return gear
return null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
if(I.body_parts_covered & EYES)
eyes_covered = 1
eye_protection = I.name
if((I.body_parts_covered & FACE) && !(I.item_flags & ITEM_FLAG_FLEXIBLEMATERIAL))
if(I.body_parts_covered & FACE)
mouth_covered = 1
face_protection = I.name

Expand Down

0 comments on commit e549f78

Please sign in to comment.