Skip to content

Commit

Permalink
aggro grabs only drop two handed guns
Browse files Browse the repository at this point in the history
  • Loading branch information
X0-11 committed Jan 29, 2024
1 parent bf96687 commit bb338c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions code/modules/mob/grab/normal/norm_aggressive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
/datum/grab/normal/aggressive/process_effect(var/obj/item/grab/G)
var/mob/living/carbon/human/affecting = G.affecting

//Drop two-handed guns.
var/obj/item/weapon/gun/g = affecting.l_hand

if((istype(g) && g.one_hand_penalty == -1))
affecting.drop_l_hand()
g = affecting.r_hand
if((istype(g) && g.one_hand_penalty == -1))
affecting.drop_r_hand()

// Keeps those who are on the ground down
if(affecting.lying)
affecting.Weaken(4)
2 changes: 1 addition & 1 deletion code/modules/mob/grab/normal/norm_neck.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

break_chance_table = list(3, 18, 45, 100)

/datum/grab/normal/aggressive/process_effect(var/obj/item/grab/G)
/datum/grab/normal/neck/process_effect(var/obj/item/grab/G)
var/mob/living/carbon/human/affecting = G.affecting

//Drop two-handed guns, or items bigger than large.
Expand Down
2 changes: 1 addition & 1 deletion code/modules/tables/interactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

if(G.force_danger())
G.affecting.forceMove(src.loc)
G.affecting.Weaken(rand(2,5))
G.affecting.Weaken(rand(2,4))
visible_message("<span class='danger'>[G.assailant] puts [G.affecting] on \the [src].</span>")
qdel(W)
else
Expand Down

0 comments on commit bb338c3

Please sign in to comment.