Merge pull request #9258 from mwerezak/charge

Updates instances of power cell usage
This commit is contained in:
Chinsky
2015-05-21 03:24:20 +03:00
9 changed files with 36 additions and 21 deletions
@@ -1233,8 +1233,9 @@ var/list/robot_verbs_default = list(
if(cell.charge == 0)
return 0
if(cell.use(amount * CELLRATE * CYBORG_POWER_USAGE_MULTIPLIER))
used_power_this_tick += amount * CYBORG_POWER_USAGE_MULTIPLIER
var/power_use = amount * CYBORG_POWER_USAGE_MULTIPLIER
if(cell.checked_use(CELLRATE * power_use))
used_power_this_tick += power_use
return 1
return 0