Skip to content

Commit

Permalink
[MIRROR] [NO GBP]removes double parent call from my last pr (#1016)
Browse files Browse the repository at this point in the history
[NO GBP]removes double parent call from my last pr

Co-authored-by: kawaiinick <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Feb 18, 2024
1 parent 30dfd4c commit 9fc9e9d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions code/game/objects/items/knives.dm
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,29 @@
attack_verb_continuous = list("slashes", "stabs", "slices", "tears", "lacerates", "rips", "cuts")
attack_verb_simple = list("slash", "stab", "slice", "tear", "lacerate", "rip", "cut")
bayonet = TRUE
<<<<<<< HEAD

Check failure on line 134 in code/game/objects/items/knives.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got '<<', expected one of: newline, '/', identifier
=======
slot_flags = ITEM_SLOT_MASK

/obj/item/knife/combat/Initialize(mapload)
. = ..()
AddComponent(/datum/component/knockoff, 90, list(BODY_ZONE_PRECISE_MOUTH), slot_flags) //90% to knock off when wearing a mask

/obj/item/knife/combat/dropped(mob/living/user, slot)
. = ..()
if(user.get_item_by_slot(ITEM_SLOT_MASK) == src && !user.has_status_effect(/datum/status_effect/choke) && prob(20))
user.apply_damage(5, BRUTE, BODY_ZONE_HEAD)
playsound(user, 'sound/weapons/slice.ogg', 50, TRUE)
user.visible_message(span_danger("[user] accidentally cuts [user.p_them()]self while pulling [src] out of [user.p_them()] teeth! What a doofus!"), span_userdanger("You accidentally cut your mouth with [src]!"))

/obj/item/knife/combat/equipped(mob/living/user, slot, initial = FALSE)
. = ..()
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(20))
if(user.get_item_by_slot(ITEM_SLOT_MASK) == src)
user.apply_status_effect(/datum/status_effect/choke, src)
user.visible_message(span_danger("[user] accidentally swallows [src]!"))
playsound(user, 'sound/items/eatfood.ogg', 100, TRUE)
>>>>>>> 6b6b76b666d ([MIRROR] [NO GBP]removes double parent call from my last pr (#1016))

/obj/item/knife/combat/survival
name = "survival knife"
Expand Down

0 comments on commit 9fc9e9d

Please sign in to comment.