mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 11:05:16 +01:00
20118ad747
## About The Pull Request Converts as many time vars expressed in deciseconds as I could find to use time defines. ## Why It's Good For The Game Makes these values neater and more readable. ## Changelog 🆑 code: Converted a lot of time-based variables to be expressed with time defines. /🆑 # Conflicts: # code/modules/clothing/head/hat.dm # code/modules/clothing/shoes/boots.dm # code/modules/clothing/suits/utility.dm
109 lines
4.4 KiB
Plaintext
109 lines
4.4 KiB
Plaintext
/obj/item/clothing/mask/muzzle
|
|
name = "muzzle"
|
|
desc = "To stop that awful noise."
|
|
icon_state = "muzzle"
|
|
inhand_icon_state = "blindfold"
|
|
lefthand_file = 'icons/mob/inhands/clothing/glasses_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/clothing/glasses_righthand.dmi'
|
|
flags_cover = MASKCOVERSMOUTH
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
equip_delay_other = 2 SECONDS
|
|
|
|
/obj/item/clothing/mask/muzzle/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/muffles_speech)
|
|
|
|
/obj/item/clothing/mask/muzzle/attack_paw(mob/user, list/modifiers)
|
|
if(iscarbon(user))
|
|
var/mob/living/carbon/carbon_user = user
|
|
if(src == carbon_user.wear_mask)
|
|
to_chat(user, span_warning("You need help taking this off!"))
|
|
return
|
|
return ..()
|
|
|
|
/obj/item/clothing/mask/muzzle/tape
|
|
name = "tape piece"
|
|
desc = "A piece of tape that can be put over someone's mouth."
|
|
worn_icon_state = "tape_piece_worn"
|
|
inhand_icon_state = null
|
|
w_class = WEIGHT_CLASS_TINY
|
|
clothing_flags = INEDIBLE_CLOTHING
|
|
equip_delay_other = 4 SECONDS
|
|
strip_delay = 4 SECONDS
|
|
icon = 'icons/map_icons/clothing/mask.dmi'
|
|
icon_state = "/obj/item/clothing/mask/muzzle/tape"
|
|
post_init_icon_state = "tape_piece"
|
|
greyscale_config = /datum/greyscale_config/tape_piece
|
|
greyscale_config_worn = /datum/greyscale_config/tape_piece/worn
|
|
greyscale_colors = "#B2B2B2"
|
|
///Dertermines whether the tape piece does damage when ripped off of someone.
|
|
var/harmful_strip = FALSE
|
|
///The ammount of damage dealt when the tape piece is ripped off of someone.
|
|
var/stripping_damage = 0
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/examine(mob/user)
|
|
. = ..()
|
|
. += "[span_notice("Use it on someone while not in combat mode to tape their mouth closed!")]"
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/dropped(mob/living/user)
|
|
. = ..()
|
|
if(user.get_item_by_slot(ITEM_SLOT_MASK) != src)
|
|
return
|
|
playsound(user, 'sound/items/duct_tape/duct_tape_rip.ogg', 50, TRUE)
|
|
if(harmful_strip)
|
|
user.apply_damage(stripping_damage, BRUTE, BODY_ZONE_HEAD)
|
|
INVOKE_ASYNC(user, TYPE_PROC_REF(/mob, emote), "scream")
|
|
to_chat(user, span_userdanger("You feel a massive pain as hundreds of tiny spikes tear free from your face!"))
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/attack(mob/living/carbon/victim, mob/living/carbon/attacker, list/modifiers, list/attack_modifiers)
|
|
if(attacker.combat_mode)
|
|
return ..()
|
|
if(victim.is_mouth_covered(ITEM_SLOT_HEAD))
|
|
to_chat(attacker, span_notice("[victim]'s mouth is covered."))
|
|
return
|
|
if(!mob_can_equip(victim, ITEM_SLOT_MASK))
|
|
to_chat(attacker, span_notice("[victim] is already wearing somthing on their face."))
|
|
return
|
|
balloon_alert(attacker, "taping mouth...")
|
|
to_chat(victim, span_userdanger("[attacker] is attempting to tape your mouth closed!"))
|
|
if(!do_after(attacker, equip_delay_other, target = victim))
|
|
return
|
|
victim.equip_to_slot_if_possible(src, ITEM_SLOT_MASK)
|
|
update_appearance()
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/super
|
|
name = "super tape piece"
|
|
desc = "A piece of tape that can be put over someone's mouth. This one has extra strength."
|
|
icon_state = "/obj/item/clothing/mask/muzzle/tape/super"
|
|
greyscale_colors = "#4D4D4D"
|
|
strip_delay = 8 SECONDS
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/surgical
|
|
name = "surgical tape piece"
|
|
desc = "A piece of tape that can be put over someone's mouth. As long as you apply this to your patient, you won't hear their screams of pain!"
|
|
icon_state = "/obj/item/clothing/mask/muzzle/tape/surgical"
|
|
greyscale_colors = "#70BAE7"
|
|
equip_delay_other = 3 SECONDS
|
|
strip_delay = 3 SECONDS
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/pointy
|
|
name = "pointy tape piece"
|
|
desc = "A piece of tape that can be put over someone's mouth. Looks like it will hurt if this is ripped off."
|
|
worn_icon_state = "tape_piece_spikes_worn"
|
|
icon = 'icons/map_icons/clothing/mask.dmi'
|
|
icon_state = "/obj/item/clothing/mask/muzzle/tape/pointy"
|
|
post_init_icon_state = "tape_piece_spikes"
|
|
greyscale_config = /datum/greyscale_config/tape_piece/spikes
|
|
greyscale_config_worn = /datum/greyscale_config/tape_piece/worn/spikes
|
|
greyscale_colors = "#E64539#AD2F45"
|
|
harmful_strip = TRUE
|
|
stripping_damage = 10
|
|
|
|
/obj/item/clothing/mask/muzzle/tape/pointy/super
|
|
name = "super pointy tape piece"
|
|
desc = "A piece of tape that can be put over someone's mouth. This thing could rip your face into a thousand pieces if ripped off."
|
|
icon_state = "/obj/item/clothing/mask/muzzle/tape/pointy/super"
|
|
greyscale_colors = "#8C0A00#300008"
|
|
strip_delay = 6 SECONDS
|
|
stripping_damage = 20
|