mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
[MIRROR] Converts the atmos senstive component over to connect_loc (#5376)
* Converts the atmos senstive component over to connect_loc (#58266) * Makes all uses of atmos_senstive pass in mapload as context * Converts atmos senstive to connect_loc, does some general cleanup to the element, and makes it check the state of the tile the thing is on assuming creation didn't happen as a part of map loading * Updates connect loc to match the new arg list * Converts the atmos senstive component over to connect_loc Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
slippery_foam = FALSE
|
||||
var/absorbed_plasma = 0
|
||||
|
||||
/obj/effect/particle_effect/foam/firefighting/ComponentInitialize()
|
||||
..()
|
||||
/obj/effect/particle_effect/foam/firefighting/Initialize(mapload)
|
||||
. = ..()
|
||||
RemoveElement(/datum/element/atmos_sensitive)
|
||||
|
||||
/obj/effect/particle_effect/foam/firefighting/process()
|
||||
@@ -89,15 +89,12 @@
|
||||
/obj/effect/particle_effect/foam/long_life
|
||||
lifetime = 150
|
||||
|
||||
/obj/effect/particle_effect/foam/Initialize()
|
||||
/obj/effect/particle_effect/foam/Initialize(mapload)
|
||||
. = ..()
|
||||
create_reagents(1000, REAGENT_HOLDER_INSTANT_REACT) //limited by the size of the reagent holder anyway. Works without instant possibly edit in future
|
||||
START_PROCESSING(SSfastprocess, src)
|
||||
playsound(src, 'sound/effects/bubbles2.ogg', 80, TRUE, -3)
|
||||
|
||||
/obj/effect/particle_effect/foam/ComponentInitialize()
|
||||
. = ..()
|
||||
AddElement(/datum/element/atmos_sensitive)
|
||||
AddElement(/datum/element/atmos_sensitive, mapload)
|
||||
|
||||
/obj/effect/particle_effect/foam/ComponentInitialize()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user