Skip to content

Commit

Permalink
jambalaya
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 2, 2024
1 parent 59158b4 commit 401e012
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 295 deletions.
4 changes: 3 additions & 1 deletion source/meta/data/scripts/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class FunkinLua {
// Gameplay settings
set('healthGainMult', PlayState.instance.healthGain);
set('healthLossMult', PlayState.instance.healthLoss);
set('playbackRate', PlayState.instance.playbackRate);
#if FLX_PITCH set('playbackRate', PlayState.instance.playbackRate); #end
set('instakillOnMiss', PlayState.instance.instakillOnMiss);
set('botPlay', PlayState.instance.cpuControlled);
set('practice', PlayState.instance.practiceMode);
Expand Down Expand Up @@ -2299,6 +2299,7 @@ class FunkinLua {
}
});

#if FLX_PITCH
Lua_helper.add_callback(lua, "getSoundPitch", function(tag:String) {
if(tag != null && tag.length > 0 && PlayState.instance.modchartSounds.exists(tag)) {
return PlayState.instance.modchartSounds.get(tag).pitch;
Expand All @@ -2316,6 +2317,7 @@ class FunkinLua {
}
}
});
#end

Lua_helper.add_callback(lua, "debugPrint", function(text1:Dynamic = '', text2:Dynamic = '', text3:Dynamic = '', text4:Dynamic = '', text5:Dynamic = '') {
for (i in [text1, text2, text3, text4, text5])
Expand Down
Loading

0 comments on commit 401e012

Please sign in to comment.