Updates instances of if(cell.use(...))

This commit is contained in:
mwerezak
2015-05-14 01:39:49 -04:00
parent 929e64311e
commit aeb1f5ae68
4 changed files with 9 additions and 5 deletions

View File

@@ -57,7 +57,7 @@
/obj/item/weapon/gun/energy/consume_next_projectile()
if(!power_supply) return null
if(!ispath(projectile_type)) return null
if(!power_supply.use(charge_cost)) return null
if(power_supply.charge < charge_cost || !power_supply.use(charge_cost)) return null
return new projectile_type(src)
/obj/item/weapon/gun/energy/proc/get_external_power_supply()