Skip to content

Commit

Permalink
voiid chronicles 2: electric boogaloo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Nov 12, 2023
1 parent 4ea61d9 commit 67d1ec0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/modding/ModchartUtilities.hx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class ModchartUtilities {

// get some fukin globals up in here bois

setVar("songLower", PlayState.SONG.song.toLowerCase());
setVar("difficulty", PlayState.storyDifficultyStr);
setVar("bpm", Conductor.bpm);
setVar("songBpm", PlayState.SONG.bpm);
Expand All @@ -221,9 +222,12 @@ class ModchartUtilities {

setVar("animatedBackgrounds", Options.getData("animatedBGs"));

setVar("charsAndBGs", Options.getData("charsAndBGs"));

setVar("curStep", 0);
setVar("curBeat", 0);
setVar("stepCrochet", Conductor.stepCrochet);
setVar("crochetUnscaled", Conductor.stepCrochet);
setVar("crochet", Conductor.crochet);
setVar("safeZoneOffset", Conductor.safeZoneOffset);

Expand Down Expand Up @@ -255,6 +259,17 @@ class ModchartUtilities {
setVar("characterPlayingAs", PlayState.characterPlayingAs);
setVar("inReplay", PlayState.playingReplay);

setVar("player1", PlayState.SONG.player1);
setVar("player2", PlayState.SONG.player2);

setVar("curStage", PlayState.SONG.stage);

#if mobile
setVar("mobile", true);
#else
setVar("mobile", false);
#end

// other globals

setVar('FlxColor', {
Expand Down

0 comments on commit 67d1ec0

Please sign in to comment.