From 2ce2241e7be7c6032bb03be7385597fa2f506783 Mon Sep 17 00:00:00 2001 From: TerrificTrifid <99054745+TerrificTrifid@users.noreply.github.com> Date: Tue, 9 Aug 2022 22:03:28 -0500 Subject: [PATCH] Geyser durations --- NewHorizons/Builder/Props/GeyserBuilder.cs | 4 +++- NewHorizons/External/Modules/PropModule.cs | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Builder/Props/GeyserBuilder.cs b/NewHorizons/Builder/Props/GeyserBuilder.cs index 2013915a..f8784c3d 100644 --- a/NewHorizons/Builder/Props/GeyserBuilder.cs +++ b/NewHorizons/Builder/Props/GeyserBuilder.cs @@ -39,6 +39,9 @@ namespace NewHorizons.Builder.Props if (info.disableBubbles) bubbles.SetActive(false); if (info.disableShaft) shaft.SetActive(false); if (info.disableSpout) spout.SetActive(false); + var geyserController = geyserGO.GetComponent(); + geyserController._activeDuration = info.activeDuration; + geyserController._inactiveDuration = info.inactiveDuration; geyserGO.SetActive(true); @@ -79,7 +82,6 @@ namespace NewHorizons.Builder.Props { oneShotAudio.transform.SetLocalPositionY(67f); } - } } } diff --git a/NewHorizons/External/Modules/PropModule.cs b/NewHorizons/External/Modules/PropModule.cs index f68acbc7..c0a1db0e 100644 --- a/NewHorizons/External/Modules/PropModule.cs +++ b/NewHorizons/External/Modules/PropModule.cs @@ -239,6 +239,16 @@ namespace NewHorizons.External.Modules /// [DefaultValue(55f)] public float force = 55f; + /// + /// Time in seconds eruptions last for + /// + [DefaultValue(10f)] public float activeDuration = 10f; + + /// + /// Time in seconds between eruptions + /// + [DefaultValue(19f)] public float inactiveDuration = 19f; + /// /// Color of the geyser. Alpha sets the particle density. ///