5f169e8e47
Remove alloweat var from masks, remove MASKCOVERSMOUTH flag from mime and clown masks so you can still eat through them. Some adjustments in surgery checks for bodyparts covered. Fixes a runtime in weapon/energy attack_verb. Humans can now CPR monkeys. Slight changes to CPR code. Fixes runtime with drones trying to do CPR. Rewrites /obj/item/weapon/reagent_containers/proc/canconsume to be less shitty. Adds an is_mouth_covered() proc to carbons to check for mask and headgear with MASKCOVERSMOUTH or HEADCOVERSMOUTH, with argument to restrict the check to only mask or only head.
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
/obj/item/weapon/reagent_containers/pill/patch
|
|
name = "chemical patch"
|
|
desc = "A chemical patch for touch based applications."
|
|
icon = 'icons/obj/chemical.dmi'
|
|
icon_state = "bandaid"
|
|
item_state = "bandaid"
|
|
possible_transfer_amounts = null
|
|
volume = 50
|
|
apply_type = TOUCH
|
|
apply_method = "apply"
|
|
|
|
/obj/item/weapon/reagent_containers/pill/patch/New()
|
|
..()
|
|
icon_state = "bandaid" // thanks inheritance
|
|
|
|
/obj/item/weapon/reagent_containers/pill/patch/afterattack(obj/target, mob/user , proximity)
|
|
return // thanks inheritance again
|
|
|
|
/obj/item/weapon/reagent_containers/pill/patch/canconsume(mob/eater, mob/user)
|
|
if(!iscarbon(eater))
|
|
return 0
|
|
return 1 // Masks were stopping people from "eating" patches. Thanks, inheritance.
|
|
|
|
/obj/item/weapon/reagent_containers/pill/patch/styptic
|
|
name = "brute patch"
|
|
desc = "Helps with brute injuries."
|
|
list_reagents = list("styptic_powder" = 50)
|
|
|
|
/obj/item/weapon/reagent_containers/pill/patch/silver_sulf
|
|
name = "burn patch"
|
|
desc = "Helps with burn injuries."
|
|
list_reagents = list("silver_sulfadiazine" = 50)
|