Skip to content

Commit

Permalink
Fix runtime with really fast kinetic crushers
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Dec 2, 2024
1 parent 4beedcd commit f21dcf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/mining/equipment/kinetic_crusher.dm
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@
destabilizer.hammer_synced = src
playsound(user, 'sound/weapons/plasma_cutter.ogg', 100, TRUE)
destabilizer.fire()
charged = FALSE
update_appearance()
addtimer(CALLBACK(src, PROC_REF(Recharge)), charge_time)
if(charge_time > 0)
charged = FALSE
update_appearance()
addtimer(CALLBACK(src, PROC_REF(Recharge)), charge_time)

/obj/item/kinetic_crusher/proc/Recharge()
if(!charged)
Expand Down

0 comments on commit f21dcf8

Please sign in to comment.