the last bit

This commit is contained in:
Hatterhat
2020-10-07 17:50:21 -05:00
parent 9928a172d0
commit 96e55d6233
5 changed files with 37 additions and 19 deletions
+8 -8
View File
@@ -190,7 +190,7 @@
/obj/item/melee/transforming/energy/sword/saber
possible_colors = list("red" = LIGHT_COLOR_RED, "blue" = LIGHT_COLOR_LIGHT_CYAN, "green" = LIGHT_COLOR_GREEN, "purple" = LIGHT_COLOR_LAVENDER)
unique_reskin = list("Sword" = "sword0", "Sabre" = "esabre0")
unique_reskin = list("Sword" = "sword0", "saber" = "esaber0")
var/hacked = FALSE
var/saber = FALSE
@@ -200,22 +200,22 @@
if(active)
if(sword_color)
if(saber)
icon_state = "esabre[sword_color]"
icon_state = "esaber[sword_color]"
else
icon_state = "sword[sword_color]"
START_PROCESSING(SSobj, src)
set_light(brightness_on)
else
STOP_PROCESSING(SSobj, src)
set_light(0)
if(saber)
icon_state = "esaber0"
else
icon_state = "sword0"
/obj/item/melee/transforming/energy/sword/saber/reskin_obj(mob/M)
. = ..()
if(icon_state == "sabre0")
if(icon_state == "esaber0")
saber = TRUE
if(active)
if(saber)
icon_state = "esabre[sword_color]"
icon_state = "esaber[sword_color]"
else
icon_state = "sword[sword_color]"