Fixing compile errors (#9)

This commit is contained in:
Werner
2016-11-18 17:03:27 +01:00
committed by skull132
parent effb9ececf
commit 3e92d63ddf
15 changed files with 311 additions and 67 deletions

View File

@@ -16,6 +16,8 @@
list(mode_name="lethal", projectile_type=/obj/item/projectile/beam, modifystate="energykill", fire_sound='sound/weapons/Laser.ogg'),
)
var/crit_fail = 0 //Added crit_fail as a local variable
/obj/item/weapon/gun/energy/gun/mounted
name = "mounted energy gun"
self_recharge = 1

View File

@@ -150,7 +150,7 @@
M << "<span class='danger'>[src]'s reactor overloads!</span>"
M << "<span class='warning'>You feel a wave of heat wash over you.</span>"
M.apply_effect(300, IRRADIATE)
crit_fail = 1 //break the gun so it stops recharging
//crit_fail = 1 //break the gun so it stops recharging
processing_objects.Remove(src)
update_icon()
return 0
@@ -397,4 +397,3 @@ obj/item/weapon/gun/energy/staff/focus/attack_self(mob/living/user as mob)
charge_cost = 200
user << "<span class='warning'>The [src.name] will now strike only a single person.</span>"
projectile_type = /obj/item/projectile/forcebolt