Skip to content

Commit 533a645

Browse files
committed
a
1 parent 9b9445c commit 533a645

File tree

5 files changed

+28
-22
lines changed

5 files changed

+28
-22
lines changed

source/backend/Paths.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class Paths
230230

231231
// The "If All Else Fails" option
232232
// The "If All Else Fails" option
233-
public static function nukeMemory(?useAlt:Bool = true){
233+
public static function nukeMemory(?useAlt:Bool = false){
234234
if (useAlt) {
235235
clearStoredWithoutStickers();
236236

source/objects/StrumNote.hx

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class StrumNote extends NoteObject
113113
if(Paths.fileExists('images/$customSkin.png', IMAGE)) skin = customSkin;
114114
}
115115
else {
116-
var customSkin:String = 'NOTE_assets';
116+
var customSkin:String = skin = (PlayState.SONG != null ? PlayState.SONG.arrowSkin : 'NOTE_assets') + Note.getNoteSkinPostfix();
117117
skin = (PlayState.isPixelStage ? customSkin : 'noteSkins/strums');
118118
}
119119

@@ -135,22 +135,18 @@ class StrumNote extends NoteObject
135135
if(animation.curAnim != null) lastAnim = animation.curAnim.name;
136136
var pxDV:Int = Note.pixelNotesDivisionValue[1];
137137

138-
var ogSkin:String = texture;
139-
if (texture == 'noteSkins/NOTE_assets')
140-
texture = 'noteSkins/' + (PlayState.isPixelStage ? ogSkin : 'strums');
141-
142138
animationArray[0] = Note.keysShit.get(PlayState.mania).get('strumAnims')[column];
143139
animationArray[1] = Note.keysShit.get(PlayState.mania).get('letters')[column];
144140
animationArray[2] = Note.keysShit.get(PlayState.mania).get('letters')[column]; //jic
145141

146142
if(PlayState.isPixelStage)
147143
{
148-
loadGraphic(Paths.image('pixelUI/' + texture));
144+
loadGraphic(Paths.image('pixelUI/noteSkins/' + texture));
149145
pxDV = Note.pixelNotesDivisionValue[width == 306 ? 1 : 0];
150146
width = width / pxDV;
151147
height = height / 5;
152148
antialiasing = false;
153-
loadGraphic(Paths.image('pixelUI/' + texture), true, Math.floor(width), Math.floor(height));
149+
loadGraphic(Paths.image('pixelUI/noteSkins/' + texture), true, Math.floor(width), Math.floor(height));
154150
var daFrames:Array<Int> = Note.keysShit.get(PlayState.mania).get('pixelAnimIndex');
155151

156152
setGraphicSize(Std.int(width * PlayState.daPixelZoom * Note.pixelScales[PlayState.mania]));
@@ -163,7 +159,22 @@ class StrumNote extends NoteObject
163159
}
164160
else
165161
{
166-
frames = Paths.getSparrowAtlas(texture);
162+
var postfix:String = Note.getNoteSkinPostfix();
163+
var skin:String = texture + postfix;
164+
if(texture.length < 1)
165+
{
166+
skin = (PlayState.SONG != null ? PlayState.SONG.arrowSkin : (texture + postfix));
167+
if (skin == null || skin.length < 1) {
168+
if (postfix == null || postfix.length < 1)
169+
skin = "noteSkins/strums";
170+
else
171+
skin = "noteSkins/NOTE_assets" + postfix;
172+
}
173+
}
174+
175+
trace("Skin: " + skin);
176+
177+
frames = Paths.getSparrowAtlas(skin);
167178
antialiasing = ClientPrefs.data.antialiasing;
168179
setGraphicSize(Std.int(width * Note.scales[PlayState.mania]));
169180

source/states/LoadingState.hx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ class LoadingState extends MusicBeatState
351351
if (stopMusic && FlxG.sound.music != null)
352352
FlxG.sound.music.stop();
353353

354-
MusicBeatState.allowNuke = false;
355-
356354
FlxG.camera.visible = false;
357355
MusicBeatState.switchState(target);
358356
transitioning = true;

source/states/PlayState.hx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,6 @@ class PlayState extends MusicBeatState
539539

540540
override public function create()
541541
{
542-
543542
#if MULTITHREADED_LOADING
544543
// Due to the Main thread and Discord thread, we decrease it by 2.
545544
var threadCount:Int = Std.int(Math.max(1, LoadingState.getCPUThreadsCount() - #if DISCORD_ALLOWED 2 #else 1 #end));
@@ -5326,12 +5325,14 @@ class PlayState extends MusicBeatState
53265325

53275326
public function die(?trueKill:Bool = false):Void
53285327
{
5329-
bfkilledcheck = true;
5330-
health = 0;
5331-
if (trueKill) lives = 0;
5332-
else lives -= 1;
5333-
noteMissPress(3, opponentmode ? dadField : playerField); // just to make sure you actually die
5334-
doDeathCheck(true);
5328+
if (trueKill)
5329+
doDeathCheck(true);
5330+
else {
5331+
bfkilledcheck = true;
5332+
health = 0;
5333+
noteMissPress(3, opponentmode ? dadField : playerField); // just to make sure you actually die
5334+
doDeathCheck();
5335+
}
53355336
}
53365337

53375338
// the void varient of the function above with trueKill set to true
@@ -6586,7 +6587,6 @@ class PlayState extends MusicBeatState
65866587

65876588
LoadingState.noteCache = [];
65886589
curChart = [];
6589-
MusicBeatState.allowNuke = true;
65906590

65916591
ClientPrefs.openChartEditor();
65926592
}
@@ -7936,7 +7936,6 @@ class PlayState extends MusicBeatState
79367936
{
79377937
LoadingState.noteCache = [];
79387938
curChart = [];
7939-
MusicBeatState.allowNuke = true;
79407939
#if !switch
79417940
var percent:Float = comboManager.ratingPercent;
79427941
if(Math.isNaN(percent)) percent = 0;

source/substates/RankingSubstate.hx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class RankingSubstate extends MusicBeatSubstate
4141

4242
if (!PlayState.instance.cpuControlled)
4343
backend.Highscore.saveRank(PlayState.SONG.song, rankingNum, PlayState.storyDifficulty);
44-
45-
MusicBeatState.allowNuke = true;
4644
}
4745

4846
function getPauseSong()

0 commit comments

Comments
 (0)