Skip to content

Commit

Permalink
bugfix: throwing knives neck cut don't make two strikes (#3976)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidPotroh authored Dec 2, 2023
1 parent aa27b2b commit 6b2a385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/game/objects/items/weapons/kitchen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
force = initial(force) + MA.knife_bonus_damage
if(user.zone_selected == BODY_ZONE_HEAD && user.a_intent == INTENT_HARM)
MA.neck_cut(target, user)
return
. = ..()

/obj/item/kitchen/knife/combat/afterattack(atom/target, mob/user, proximity, params)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/martial_arts/throwing_knives.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
attacker.visible_message(span_danger("[attacker] прикладывает нож к горлу [defender]!"), span_danger("Вы прикладываете нож к горлу [defender]!."))
if(do_after(attacker, 20, target = defender))
if(defender.blood_volume > BLOOD_VOLUME_SURVIVE)
defender.blood_volume -= BLOOD_VOLUME_NORMAL - BLOOD_VOLUME_SURVIVE
defender.blood_volume = max(0, defender.blood_volume - (BLOOD_VOLUME_NORMAL - BLOOD_VOLUME_SURVIVE)) //-70% of max blood volume
for(var/i in 1 to 2)
var/obj/effect/decal/cleanable/blood/B = new(defender.loc)
step(B, pick(GLOB.alldirs))
Expand Down

0 comments on commit 6b2a385

Please sign in to comment.