mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] bunch of issues (#11109)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
56db86d29d
commit
e1b719d926
@@ -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