Got bored, added code to allow for multiple energy sword colors. They now come in blue or red, picked randomly when the item is spawned. If someone makes us some green sword sprites, I'll be sure to make sure the thunderdome stays color-coordinated.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1239 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2011-03-23 03:36:52 +00:00
parent 0ec8b38216
commit 7c5eb35f13
5 changed files with 4 additions and 1 deletions
+1
View File
@@ -1218,6 +1218,7 @@ Total SMES charging rate should not exceed total power generation rate, or an ov
flags = FPRINT | TABLEPASS | NOSHIELD
/obj/item/weapon/sword
var/color
name = "energy sword"
icon_state = "sword0"
var/active = 0.0
@@ -15,6 +15,8 @@ STUN BATON
target:fireloss += 20
..()
/obj/item/weapon/sword/New()
color = pick("red","blue")
/obj/item/weapon/sword/attack_self(mob/user as mob)
if ((user.mutations & 16) && prob(50))
@@ -28,7 +30,7 @@ STUN BATON
if(istype(src,/obj/item/weapon/sword/pirate))
src.icon_state = "cutlass1"
else
src.icon_state = "sword1"
src.icon_state = "sword[color]"
src.w_class = 4
playsound(user, 'saberon.ogg', 50, 1)
else
Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB