Skip to content

Commit

Permalink
B5 Hammer slowdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostsheet committed Jul 11, 2023
1 parent ef76cec commit a4d413c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/game/objects/items/weapons/twohanded.dm
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@
/obj/item/weapon/twohanded/breacher/synth/pickup(mob/user)
if(!(HAS_TRAIT(user, TRAIT_SUPER_STRONG)))
to_chat(user, SPAN_WARNING("You barely manage to lift \the [src] above your knees. This thing will probably be useless to you."))
user.apply_effect(1.1, SLOW)
START_PROCESSING(SSobj, src)
return
..()

Expand All @@ -335,3 +337,11 @@
to_chat(user, SPAN_WARNING("\The [src] is too heavy for you to use as a weapon!"))
return
..()

/obj/item/weapon/twohanded/breacher/synth/process()
var/mob/user = src.loc
if(istype(user) && !(HAS_TRAIT(user, TRAIT_SUPER_STRONG)))
user.apply_effect(1.1, SLOW)
return

STOP_PROCESSING(SSobj, src)

0 comments on commit a4d413c

Please sign in to comment.