mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
robots lose power from their cell for leaving their baton active
This commit is contained in:
@@ -57,7 +57,12 @@
|
||||
status = 0
|
||||
update_icon()
|
||||
if(status)
|
||||
bcell.use(losspertick)
|
||||
if(isrobot(loc))
|
||||
var/mob/living/silicon/robot/R = loc
|
||||
if(R && R.cell)
|
||||
R.cell.use(losspertick)
|
||||
else
|
||||
bcell.use(losspertick)
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/melee/baton/update_icon()
|
||||
|
||||
Reference in New Issue
Block a user