Fix for dna runtime spam in check_integrity()

Fix for eguns disappearing.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3254 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2012-03-05 02:18:47 +00:00
parent 0a0f97ef0c
commit 200cfe4809
3 changed files with 13 additions and 2 deletions

View File

@@ -24,7 +24,6 @@
else
power_supply = new(src)
power_supply.give(power_supply.maxcharge)
modifystate = icon_state
return
@@ -40,7 +39,10 @@
update_icon()
var/ratio = power_supply.charge / power_supply.maxcharge
ratio = round(ratio, 0.25) * 100
icon_state = text("[][]", modifystate, ratio)
if(modifystate)
icon_state = text("[][]", modifystate, ratio)
else
icon_state = text("[][]", initial(icon_state), ratio)

View File

@@ -7,6 +7,7 @@
charge_cost = 100 //How much energy is needed to fire.
projectile_type = "/obj/item/projectile/energy/electrode"
origin_tech = "combat=3;magnets=2"
modifystate = "energystun"
var
mode = 0 //0 = stun, 1 = kill