mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 07:03:30 +01:00
Cyborg Cell Recharging Fix
- Fix for syndicate borg LMG and security borg draining extra charge while in the hotbar, despite being fully charged.
This commit is contained in:
@@ -286,8 +286,11 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
|
||||
..()
|
||||
|
||||
/obj/item/weapon/gun/energy/printer/process()
|
||||
if(power_supply.charge == power_supply.maxcharge)
|
||||
return 0
|
||||
charge_tick++
|
||||
if(charge_tick < recharge_time) return 0
|
||||
if(charge_tick < recharge_time)
|
||||
return 0
|
||||
charge_tick = 0
|
||||
|
||||
if(!power_supply) return 0 //sanity
|
||||
|
||||
@@ -28,8 +28,11 @@
|
||||
..()
|
||||
|
||||
/obj/item/weapon/gun/energy/taser/cyborg/process() //Every [recharge_time] ticks, recharge a shot for the cyborg
|
||||
if(power_supply.charge == power_supply.maxcharge)
|
||||
return 0
|
||||
charge_tick++
|
||||
if(charge_tick < recharge_time) return 0
|
||||
if(charge_tick < recharge_time)
|
||||
return 0
|
||||
charge_tick = 0
|
||||
|
||||
if(!power_supply) return 0 //sanity
|
||||
|
||||
Reference in New Issue
Block a user