[MIRROR] Allows borg tasers to properly charge when in charging ports (#9704)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-12-27 17:41:58 -07:00
committed by GitHub
parent b7db06936b
commit 7fb5d29dab

View File

@@ -536,7 +536,9 @@ var/global/list/robot_modules = list(
F.icon_state = "flash"
else if(F.times_used)
F.times_used--
var/obj/item/gun/energy/taser/mounted/cyborg/T = locate() in src.modules
var/obj/item/gun/energy/robotic/taser/T = locate() in src.modules
if(!T)
return
if(T.power_supply.charge < T.power_supply.maxcharge)
T.power_supply.give(T.charge_cost * amount)
T.update_icon()