mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
committed by
GitHub
parent
b7db06936b
commit
7fb5d29dab
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user