Skip to content

Commit

Permalink
Fixed again some errors i did while fixing small things
Browse files Browse the repository at this point in the history
  • Loading branch information
infernoangel301ut committed May 1, 2022
1 parent c8ce5ef commit 5005f05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
12 changes: 8 additions & 4 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ class PlayState extends MusicBeatState
healthBarBG.cameras = [camHUD];
iconP1.cameras = [camHUD];
iconP2.cameras = [camHUD];
iconP3.cameras = [camHUD];
scoreTxt.cameras = [camHUD];
botplayTxt.cameras = [camHUD];
timeBar.cameras = [camHUD];
Expand Down Expand Up @@ -1781,6 +1782,9 @@ class PlayState extends MusicBeatState
if(ret != FunkinLua.Function_Stop) {
generateStaticArrows(0);
generateStaticArrows(1);
if(curSong == 'Antivoid') {
generateStaticArrows(2);
}
for (i in 0...playerStrums.length) {
setOnLuas('defaultPlayerStrumX' + i, playerStrums.members[i].x);
setOnLuas('defaultPlayerStrumY' + i, playerStrums.members[i].y);
Expand Down Expand Up @@ -2906,7 +2910,7 @@ class PlayState extends MusicBeatState
}
}

if (!daNote.mustPress && daNote.wasGoodHit && !daNote.hitByOpponent && !daNote.ignoreNote)
if (!daNote.mustPress && daNote.wasGoodHit && !daNote.hitByOpponent && !daNote.ignoreNote && daNote.noteType != 'No Animation')
{
opponentNoteHit(daNote);
}
Expand Down Expand Up @@ -4381,7 +4385,7 @@ class PlayState extends MusicBeatState
if(note.isSustainNote && !note.animation.curAnim.name.endsWith('end')) {
time += 0.15;
}
StrumPlayAnim(false, Std.int(Math.abs(note.noteData)) % 4, time);
StrumPlayAnim(1, Std.int(Math.abs(note.noteData)) % 4, time);
} else {
playerStrums.forEach(function(spr:StrumNote)
{
Expand Down Expand Up @@ -5019,9 +5023,9 @@ class PlayState extends MusicBeatState
#end
}

function StrumPlayAnim(isDad:Bool, id:Int, time:Float) {
function StrumPlayAnim(isDad:Int, id:Int, time:Float) {
var spr:StrumNote = null;
if(isDad) {
if(isDad == 0) {
spr = strumLineNotes.members[id];
} else if(isDad == 1) {
spr = playerStrums.members[id];
Expand Down
14 changes: 7 additions & 7 deletions source/options/GameplaySettingsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ class GameplaySettingsSubState extends BaseOptionsMenu
true);
addOption(option);

var option:Option = new Option('Beta Songs',
"If checked, the beta version of the song will play\ninstead of the new one (Will only work on:\nTrespass, Darkness, Problem and Discrepancy)",
'betaSongs',
'bool',
false);
addOption(option);

var option:Option = new Option('Disable Reset Button',
"If checked, pressing Reset won't do anything.",
'noReset',
'bool',
false);
addOption(option);

var option:Option = new Option('Beta Songs', //Name
'An option for Cautionary Quartet mod that allows you to play the beta songs.', //Description
'betaSongs', //Save data variable name
'bool', //Variable type
false); //Default value
addOption(option);

/*var option:Option = new Option('Note Delay',
'Changes how late a note is spawned.\nUseful for preventing audio lag from wireless earphones.',
'noteOffset',
Expand Down

0 comments on commit 5005f05

Please sign in to comment.