Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiCrafter29 committed Mar 18, 2022
1 parent ea448a1 commit dee2c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ class PlayState extends MusicBeatState


});
script.setVariable("generateStaticArrow", function(babyArrow:StrumNote, i:Int) {
script.setVariable("generateStaticArrow", function(babyArrow:StrumNote, i:Int, player:Int) {
babyArrow.frames = (engineSettings.customArrowSkin == "default") ? Paths.getCustomizableSparrowAtlas(engineSettings.customArrowColors ? 'NOTE_assets_colored' : 'NOTE_assets', 'shared') : Paths.getSparrowAtlas(engineSettings.customArrowSkin.toLowerCase(), 'skins');


Expand Down Expand Up @@ -1693,8 +1693,8 @@ class PlayState extends MusicBeatState
health -= script.getVariable("note").isSustainNote ? 0.03125 : 0.125;
});
// script.execute(ModSupport.getExpressionFromPath(Paths.modsPath + '/$noteScriptMod/notes/$noteScriptName.hx', true));
script.loadFile(p);
ModSupport.setScriptDefaultVars(script, noteScriptMod, {});
script.loadFile(p);
noteScripts.push(script);
}

Expand Down Expand Up @@ -1819,7 +1819,7 @@ class PlayState extends MusicBeatState


// }
noteScripts[0].executeFunc("generateStaticArrow", [babyArrow, i]);
noteScripts[0].executeFunc("generateStaticArrow", [babyArrow, i, player]);
babyArrow.x += Note.swagWidth * i;

babyArrow.updateHitbox();
Expand Down

0 comments on commit dee2c62

Please sign in to comment.