As many bugfixes as I could cram into here.

This commit is contained in:
SkyMarshal
2012-05-20 14:23:10 -07:00
parent c8faf93e9f
commit 58570a0f65
16 changed files with 60 additions and 44 deletions
+3 -1
View File
@@ -30,7 +30,9 @@
overlays += image('power.dmi', "cell-o1")
/obj/item/weapon/cell/proc/percent() // return % charge of cell
return 100.0*charge/maxcharge
if(maxcharge)
return 100.0*charge/maxcharge
return 0
// use power from a cell
/obj/item/weapon/cell/proc/use(var/amount)