mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-25 19:15:16 +00:00
Force Dive for Splashdown (#884)
finally you can forcibly submerge people in Heaven Studio
This commit is contained in:
parent
727ec7a3a1
commit
93f7d85198
1 changed files with 18 additions and 0 deletions
|
@ -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); },
|
||||||
|
@ -209,6 +217,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;
|
||||||
|
|
Loading…
Reference in a new issue