mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
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:
@@ -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 |
Reference in New Issue
Block a user