[MIRROR] Fixes strange geyser and geyser regen [MDB IGNORE] (#18808)

Fixes strange geyser and geyser regen (#72221)

Called the random reagent code after it was initialized
Registered the reagent del/remove signal on the geyser, not the reagent
datum of the geyser

Closes #72037 

🆑
fix: Strange geysers have random reagents again
fix: Geysers regen reagents again
/🆑

Co-authored-by: Time-Green <timkoster1@hotmail.com>
This commit is contained in:
SkyratBot
2023-01-19 15:27:26 -05:00
committed by GitHub
co-authored by Time-Green
parent 50218ac2d8
commit 78cc603187
3 changed files with 28 additions and 3 deletions
@@ -34,7 +34,7 @@
create_reagents(max_volume, DRAINABLE)
reagents.add_reagent(reagent_id, max_volume)
RegisterSignals(src, list(COMSIG_REAGENTS_REM_REAGENT, COMSIG_REAGENTS_DEL_REAGENT), PROC_REF(start_chemming))
RegisterSignals(reagents, list(COMSIG_REAGENTS_REM_REAGENT, COMSIG_REAGENTS_DEL_REAGENT), PROC_REF(start_chemming))
if(erupting_state)
icon_state = erupting_state
@@ -43,7 +43,6 @@
I.color = mix_color_from_reagents(reagents.reagent_list)
add_overlay(I)
///start making those CHHHHHEEEEEEMS. Called whenever chems are removed, it's fine because START_PROCESSING checks if we arent already processing
/obj/structure/geyser/proc/start_chemming()
START_PROCESSING(SSplumbing, src) //It's main function is to be plumbed, so use SSplumbing
@@ -109,9 +108,10 @@
discovery_message = "It's a strange geyser! How does any of this even work?" //it doesnt
/obj/structure/geyser/random/Initialize(mapload)
. = ..()
reagent_id = get_random_reagent_id()
return ..()
///A wearable tool that lets you empty plumbing machinery and some other stuff
/obj/item/plunger
name = "plunger"