Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B5 Hammer slowdown #3860

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)