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:
Kashargul
2025-06-26 08:39:44 +02:00
committed by GitHub
parent 2a47456ae8
commit 55a3daa81d
18 changed files with 60 additions and 22 deletions
+15 -1
View File
@@ -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)