mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-23 13:17:03 +01:00
More bug fixes (#6560)
* More esword fixes - Fixes Holodeck eswords being completely broken, Holodeck eswords are not recolorable - Fixes Toy sword onmob sprite not properly updating - Fixes eswords not properly updating onmob color (this is an incredibly hacky fix) - Readds the esword sub types, they are not recolorable * Removes unintended code * More unintended code removal * Fixes spy bug sprite * Fixes PMC-S Name * Fixes syringes not working through voidsuits.
This commit is contained in:
@@ -23,6 +23,26 @@
|
||||
slot_r_hand_str = 'icons/mob/items/righthand_melee.dmi',
|
||||
)
|
||||
|
||||
/obj/item/weapon/melee/energy/sword/green/New()
|
||||
colorable = FALSE
|
||||
lcolor = "#008000"
|
||||
|
||||
/obj/item/weapon/melee/energy/sword/red/New()
|
||||
colorable = FALSE
|
||||
lcolor = "#FF0000"
|
||||
|
||||
/obj/item/weapon/melee/energy/sword/blue/New()
|
||||
colorable = FALSE
|
||||
lcolor = "#0000FF"
|
||||
|
||||
/obj/item/weapon/melee/energy/sword/purple/New()
|
||||
colorable = FALSE
|
||||
lcolor = "#800080"
|
||||
|
||||
/obj/item/weapon/melee/energy/sword/white/New()
|
||||
colorable = FALSE
|
||||
lcolor = "#FFFFFF"
|
||||
|
||||
/obj/item/weapon/melee/energy/proc/activate(mob/living/user)
|
||||
if(active)
|
||||
return
|
||||
@@ -147,11 +167,12 @@
|
||||
/obj/item/weapon/melee/energy/update_icon()
|
||||
. = ..()
|
||||
var/mutable_appearance/blade_overlay = mutable_appearance(icon, "[icon_state]_blade")
|
||||
if(colorable)
|
||||
blade_overlay.color = lcolor
|
||||
if(rainbow || !colorable)
|
||||
blade_overlay.color = lcolor
|
||||
color = lcolor
|
||||
if(rainbow)
|
||||
blade_overlay = mutable_appearance(icon, "[icon_state]_blade_rainbow")
|
||||
blade_overlay.color = "FFFFFF"
|
||||
color = "FFFFFF"
|
||||
cut_overlays() //So that it doesn't keep stacking overlays non-stop on top of each other
|
||||
if(active)
|
||||
add_overlay(blade_overlay)
|
||||
|
||||
Reference in New Issue
Block a user