Replaces add_load with draw_power. Issue about silly battery handling remains. Fixes the build-error.

This commit is contained in:
PsiOmega
2014-10-15 10:25:28 +02:00
parent 1cabbbf5a6
commit 3a7066c6c1
7 changed files with 16 additions and 32 deletions

View File

@@ -105,7 +105,8 @@
return
if(((src.last_shot + src.fire_delay) <= world.time) && (src.active == 1))
if(surplus() >= active_power_usage && add_load(active_power_usage) >= active_power_usage) //does the laser have enough power to shoot?
var/actual_load = draw_power(active_power_usage)
if(actual_load >= active_power_usage) //does the laser have enough power to shoot?
if(!powered)
powered = 1
update_icon()