CI fix for component hose connector (#17873)

* CI wanted component fix

* moved to signal
This commit is contained in:
Will
2025-06-16 11:02:33 -04:00
committed by GitHub
parent 42896fab4b
commit 2610f7b553
5 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -63,8 +63,7 @@ GLOBAL_LIST_EMPTY(fusion_cores)
if((stat & BROKEN) || !powernet || !owned_field)
Shutdown()
var/datum/component/hose_connector/HC = GetComponent(/datum/component/hose_connector)
HC.force_pump()
SEND_SIGNAL(src, COMSIG_HOSE_FORCEPUMP)
if(owned_field)
+1 -2
View File
@@ -92,8 +92,7 @@
T.pump_reagents(reagents, reagents_per_cycle)
update_icon()
var/datum/component/hose_connector/HC = GetComponent(/datum/component/hose_connector)
HC.force_pump()
SEND_SIGNAL(src, COMSIG_HOSE_FORCEPUMP)
// Sets the power state, if possible.
// Returns TRUE/FALSE on power state changing
@@ -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