mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 18:11:47 +00:00
Fixes wand recharge
Self-charging wands were able to hold one extra charge by allowing the recharge counter to increase indefinitely when the number of charges reached the maximum number of charges.
This commit is contained in:
@@ -63,8 +63,11 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/item/gun/magic/process()
|
/obj/item/gun/magic/process()
|
||||||
|
if (charges >= max_charges)
|
||||||
|
charge_tick = 0
|
||||||
|
return
|
||||||
charge_tick++
|
charge_tick++
|
||||||
if(charge_tick < recharge_rate || charges >= max_charges)
|
if(charge_tick < recharge_rate)
|
||||||
return 0
|
return 0
|
||||||
charge_tick = 0
|
charge_tick = 0
|
||||||
charges++
|
charges++
|
||||||
|
|||||||
Reference in New Issue
Block a user