Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NuSanya committed Sep 9, 2024
1 parent d1be269 commit 3079f2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items/weapons/storage/bags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@
playsound(target, pick('sound/items/trayhit1.ogg', 'sound/items/trayhit2.ogg'), 50, TRUE)
if(target == user)
if(prob(15))
user.get_organ(active_hand_zone).droplimb(FALSE, DROPLIMB_SHARP)
var/L = user.get_organ(active_hand_zone)
L.droplimb(FALSE, DROPLIMB_SHARP)

Check warning on line 570 in code/game/objects/items/weapons/storage/bags.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "droplimb"
user.apply_damage(25, BRUTE, active_hand_zone, 0, FALSE, /obj/item/storage/bag/dangertray)

if(ishuman(target) && prob(10))
Expand All @@ -593,7 +594,8 @@
var/zone = pick(BODY_ZONE_L_ARM, BODY_ZONE_PRECISE_L_HAND, BODY_ZONE_R_ARM, BODY_ZONE_PRECISE_R_HAND, BODY_ZONE_R_LEG, BODY_ZONE_PRECISE_R_FOOT, BODY_ZONE_L_LEG, BODY_ZONE_PRECISE_L_FOOT)
H.apply_damage(25, BRUTE, zone, 0, FALSE, /obj/item/storage/bag/dangertray)
if(prob(15))
H.get_organ(zone).droplimb(FALSE, DROPLIMB_SHARP)
var/L = H.get_organ(zone)
L.droplimb(FALSE, DROPLIMB_SHARP)

Check warning on line 598 in code/game/objects/items/weapons/storage/bags.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "droplimb"
else // head, chest, groin
var/zone = pick(BODY_ZONE_CHEST, BODY_ZONE_HEAD, BODY_ZONE_PRECISE_GROIN)
H.apply_damage(25, BRUTE, zone, 0, FALSE, /obj/item/storage/bag/dangertray)
Expand Down

0 comments on commit 3079f2d

Please sign in to comment.