Skip to content

Commit

Permalink
Fix runtime with really fast kinetic crushers (#4458)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Dec 2, 2024
1 parent 77c6b85 commit fcdd323
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 fcdd323

Please sign in to comment.