From fa0c53f89b3205882dfd6ec9d7829d57ac72d34a Mon Sep 17 00:00:00 2001 From: nemvar <47324920+nemvar@users.noreply.github.com> Date: Fri, 26 Jul 2019 22:10:02 +0200 Subject: [PATCH] This var didn't exists. (#45510) --- code/modules/clothing/head/_head.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/modules/clothing/head/_head.dm b/code/modules/clothing/head/_head.dm index 4776d1faef1..83ca496da14 100644 --- a/code/modules/clothing/head/_head.dm +++ b/code/modules/clothing/head/_head.dm @@ -18,7 +18,7 @@ ///Special throw_impact for hats to frisbee hats at people to place them on their heads/attempt to de-hat them. /obj/item/clothing/head/throw_impact(atom/hit_atom, datum/thrownthing/thrownthing) . = ..() - ///if the thrown object's target zone isn't the head + ///if the thrown object's target zone isn't the head if(thrownthing.target_zone != BODY_ZONE_HEAD) return ///ignore any hats with the tinfoil counter-measure enabled @@ -26,7 +26,7 @@ return ///if the hat happens to be capable of holding contents and has something in it. mostly to prevent super cheesy stuff like stuffing a mini-bomb in a hat and throwing it if(LAZYLEN(contents)) - return + return if(iscarbon(hit_atom)) var/mob/living/carbon/H = hit_atom if(istype(H.head, /obj/item)) @@ -35,23 +35,23 @@ if(HAS_TRAIT(WH, TRAIT_NODROP)) H.visible_message("[src] bounces off [H]'s [WH.name]!", "[src] bounces off your [WH.name], falling to the floor.") return - ///check if the item is an actual clothing head item, since some non-clothing items can be worn + ///check if the item is an actual clothing head item, since some non-clothing items can be worn if(istype(WH, /obj/item/clothing/head)) var/obj/item/clothing/head/WHH = WH ///SNUG_FIT hats are immune to being knocked off if(WHH.clothing_flags & SNUG_FIT) H.visible_message("[src] bounces off [H]'s [WHH.name]!", "[src] bounces off your [WHH.name], falling to the floor.") return - ///if the hat manages to knock something off + ///if the hat manages to knock something off if(H.dropItemToGround(WH)) - H.visible_message("[src] knocks [WH] off [H]'s head!", "[WH] is suddenly knocked off your head by [src]!") + H.visible_message("[src] knocks [WH] off [H]'s head!", "[WH] is suddenly knocked off your head by [src]!") if(H.equip_to_slot_if_possible(src, SLOT_HEAD, 0, 1, 1)) H.visible_message("[src] lands neatly on [H]'s head!", "[src] lands perfectly onto your head!") return if(iscyborg(hit_atom)) var/mob/living/silicon/robot/R = hit_atom ///hats in the borg's blacklist bounce off - if(is_type_in_typecache(src, R.blacklisted_hats)) + if(is_type_in_typecache(src, GLOB.blacklisted_borg_hats)) R.visible_message("[src] bounces off [R]!", "[src] bounces off you, falling to the floor.") return else