fixing more.

This commit is contained in:
Ghommie
2019-06-12 22:50:09 +02:00
parent 368267f53d
commit 4cc7636da1
2 changed files with 24 additions and 16 deletions
+2 -2
View File
@@ -69,8 +69,8 @@
return 100*charge/maxcharge
// use power from a cell
/obj/item/stock_parts/cell/use(amount)
if(rigged && amount > 0)
/obj/item/stock_parts/cell/use(amount, can_explode = TRUE)
if(rigged && amount > 0 && can_explode)
explode()
return 0
if(charge < amount)