CI fix for component hose connector (#17873)

* CI wanted component fix

* moved to signal
This commit is contained in:
Will
2025-06-16 17:02:33 +02:00
committed by GitHub
parent 42896fab4b
commit 2610f7b553
5 changed files with 14 additions and 9 deletions
@@ -240,8 +240,8 @@
/obj/item/reagent_containers/spray/chemsprayer/hosed/proc/update_hose(atom/source, atom/oldloc, direction, forced, list/old_locs, momentum_change)
SIGNAL_HANDLER
var/datum/component/hose_connector/HC = GetComponent(/datum/component/hose_connector)
HC.update_hose_beam()
for(var/datum/component/hose_connector/HC in GetComponents(/datum/component/hose_connector))
HC.update_hose_beam()
/obj/item/reagent_containers/spray/chemsprayer/hosed/update_icon()
..()
@@ -251,9 +251,10 @@
if(!hose_overlay)
hose_overlay = new/icon(icon, "[icon_state]+hose")
var/datum/component/hose_connector/HC = GetComponent(/datum/component/hose_connector)
if(HC.get_pairing())
add_overlay(hose_overlay)
for(var/datum/component/hose_connector/HC in GetComponents(/datum/component/hose_connector))
if(HC.get_pairing())
add_overlay(hose_overlay)
break
/obj/item/reagent_containers/spray/chemsprayer/hosed/AltClick(mob/living/carbon/user)
if(++spray_particles > 3) spray_particles = 1