mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 03:26:37 +01:00
bunch of issues (#17900)
* bunch of issues * . * fix those properly * safety else none at all * . * workaround for a byond bug * . * invis robot weapons * light needs to be reset * . * use proper datums * fix sorting here * only store non vital * . * Update organ_external.dm
This commit is contained in:
@@ -257,6 +257,9 @@
|
||||
var/mob/living/carbon/human/H = target
|
||||
H.forcesay(GLOB.hit_appends)
|
||||
|
||||
/obj/item/melee/robotic/proc/refresh_light(clear)
|
||||
return
|
||||
|
||||
/obj/item/melee/robotic/blade //For downstreams that use blade
|
||||
name = "Robotic Blade"
|
||||
desc = "A glowing blade. It appears to be extremely sharp."
|
||||
@@ -292,7 +295,13 @@
|
||||
var/mutable_appearance/blade_overlay = mutable_appearance(icon, "[icon_state]_blade")
|
||||
blade_overlay.color = lcolor
|
||||
add_overlay(blade_overlay)
|
||||
set_light(2, 1, lcolor)
|
||||
refresh_light()
|
||||
|
||||
/obj/item/melee/robotic/blade/refresh_light(clear)
|
||||
if(active)
|
||||
if(clear)
|
||||
set_light(0)
|
||||
set_light(2, 2, lcolor)
|
||||
else
|
||||
set_light(0)
|
||||
|
||||
@@ -395,7 +404,12 @@
|
||||
icon_state = "[initial(name)]_active"
|
||||
else
|
||||
icon_state = "[initial(name)]"
|
||||
refresh_light()
|
||||
|
||||
/obj/item/melee/robotic/baton/refresh_light(clear)
|
||||
if(icon_state == "[initial(name)]_active")
|
||||
if(clear)
|
||||
set_light(0)
|
||||
set_light(2, 1, lightcolor)
|
||||
else
|
||||
set_light(0)
|
||||
|
||||
Reference in New Issue
Block a user