Fixes BCI messaging and circuit laser pointers (#86978)

## About The Pull Request
Closes #86968
Closes #86969

## Changelog
🆑
fix: Fixed BCIs sending messages twice and circuit laser pointers
sometimes failing to work
/🆑
This commit is contained in:
SmArtKar
2024-10-04 01:30:59 +02:00
committed by Majkl-J
parent f11deea75b
commit e3222014b3
2 changed files with 5 additions and 3 deletions
@@ -59,10 +59,9 @@
silicon.flash_act(affect_silicon = TRUE) /// no stunning, just a blind
to_chat(silicon, span_danger("Your sensors were overloaded by a weakened laser shone by [shell]!"))
var/image/laser_location = image('icons/obj/weapons/guns/projectiles.dmi',target_location,"[pointer_icon_state]_laser",10)
var/mutable_appearance/laser_location = mutable_appearance('icons/obj/weapons/guns/projectiles.dmi', "[pointer_icon_state]_laser")
laser_location.pixel_x = clamp(target.pixel_x + image_pixel_x.value,-15,15)
laser_location.pixel_y = clamp(target.pixel_y + image_pixel_y.value,-15,15)
target_location.add_overlay(laser_location)
addtimer(CALLBACK(target_location, TYPE_PROC_REF(/atom, cut_overlay), laser_location), 1 SECONDS)
target_location.flick_overlay_view(laser_location, 1 SECONDS)