Geyser durations

This commit is contained in:
TerrificTrifid 2022-08-09 22:03:28 -05:00
parent da8ef0db92
commit 2ce2241e7b
2 changed files with 13 additions and 1 deletions

View File

@ -39,6 +39,9 @@ namespace NewHorizons.Builder.Props
if (info.disableBubbles) bubbles.SetActive(false); if (info.disableBubbles) bubbles.SetActive(false);
if (info.disableShaft) shaft.SetActive(false); if (info.disableShaft) shaft.SetActive(false);
if (info.disableSpout) spout.SetActive(false); if (info.disableSpout) spout.SetActive(false);
var geyserController = geyserGO.GetComponent<GeyserController>();
geyserController._activeDuration = info.activeDuration;
geyserController._inactiveDuration = info.inactiveDuration;
geyserGO.SetActive(true); geyserGO.SetActive(true);
@ -79,7 +82,6 @@ namespace NewHorizons.Builder.Props
{ {
oneShotAudio.transform.SetLocalPositionY(67f); oneShotAudio.transform.SetLocalPositionY(67f);
} }
} }
} }
} }

View File

@ -239,6 +239,16 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
[DefaultValue(55f)] public float force = 55f; [DefaultValue(55f)] public float force = 55f;
/// <summary>
/// Time in seconds eruptions last for
/// </summary>
[DefaultValue(10f)] public float activeDuration = 10f;
/// <summary>
/// Time in seconds between eruptions
/// </summary>
[DefaultValue(19f)] public float inactiveDuration = 19f;
/// <summary> /// <summary>
/// Color of the geyser. Alpha sets the particle density. /// Color of the geyser. Alpha sets the particle density.
/// </summary> /// </summary>