Merge pull request #885 from RHeavenStudio/cherry-pick-release_1_patches-5dfd4dff445e3a60c4f3634cb6dece627853a5bd

Force Dive for Splashdown
This commit is contained in:
minenice55 2024-04-21 18:26:31 +00:00 committed by GitHub
commit 701608cf25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,6 +63,14 @@ namespace HeavenStudio.Games.Loaders
resizable = true, resizable = true,
defaultLength = 8 defaultLength = 8
}, },
new GameAction("forceDive", "Force Dive")
{
function = delegate {var e = eventCaller.currentEntity; Splashdown.instance.ForceDive(); },
defaultLength = 0.5f,
resizable = false,
},
new GameAction("amount", "Change Synchrette Number") new GameAction("amount", "Change Synchrette Number")
{ {
function = delegate { Splashdown.instance.SpawnSynchrettes(eventCaller.currentEntity["amount"], eventCaller.currentEntity.beat); }, function = delegate { Splashdown.instance.SpawnSynchrettes(eventCaller.currentEntity["amount"], eventCaller.currentEntity.beat); },
@ -208,6 +216,16 @@ namespace HeavenStudio.Games
BeatAction.New(instance, actions); BeatAction.New(instance, actions);
} }
public void ForceDive()
{
if (IsIntroing()) return;
foreach (var synchrette in currentSynchrettes)
{
synchrette.GoDown(false);
player.GoDown(false);
}
}
public void GoDown(double beat, float length) public void GoDown(double beat, float length)
{ {
if (IsIntroing()) return; if (IsIntroing()) return;