Merge pull request #8556 from Tayyyyyyy/glowing_eswords

Esword visual update
This commit is contained in:
tigercat2000
2018-02-05 12:49:42 -08:00
committed by GitHub
7 changed files with 27 additions and 8 deletions
+4
View File
@@ -149,6 +149,8 @@
origin_tech = "combat=3;syndicate=1"
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") //these wont show up if the pen is off
var/on = 0
var/brightness_on = 2
light_color = LIGHT_COLOR_RED
/obj/item/weapon/pen/edagger/attack_self(mob/living/user)
if(on)
@@ -162,6 +164,7 @@
throwforce = initial(throwforce)
playsound(user, 'sound/weapons/saberoff.ogg', 5, 1)
to_chat(user, "<span class='warning'>[src] can now be concealed.</span>")
set_light(0)
else
on = 1
force = 18
@@ -173,6 +176,7 @@
throwforce = 35
playsound(user, 'sound/weapons/saberon.ogg', 5, 1)
to_chat(user, "<span class='warning'>[src] is now active.</span>")
set_light(brightness_on, 1)
update_icon()
/obj/item/weapon/pen/edagger/update_icon()