1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-03-24 10:59:32 +00:00

exploit fixin

This commit is contained in:
Cameron Taylor 2020-12-04 12:36:28 -05:00
parent e3a4f11d1e
commit a742940657
3 changed files with 8 additions and 8 deletions

View file

@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [UNRELEASED] ## [UNRELEASED]
### Fixed ### Fixed
- Exploit where you could potentially give yourself a high score via the debug menu
- Issue/bug where you could spam the confirm button on the story menu ([shoutouts lotusotho for the CODE contribution/pull request!](https://github.com/ninjamuffin99/Funkin/pull/19)) - Issue/bug where you could spam the confirm button on the story menu ([shoutouts lotusotho for the CODE contribution/pull request!](https://github.com/ninjamuffin99/Funkin/pull/19))
- Glitch where if you never would lose health if you missed a note on a fast song (shoutouts [MrDulfin](https://github.com/ninjamuffin99/Funkin/issues/10), [HotSauceBurritos](https://github.com/ninjamuffin99/Funkin/issues/13) and [LobsterMango](https://lobstermango.newgrounds.com)) - Glitch where if you never would lose health if you missed a note on a fast song (shoutouts [MrDulfin](https://github.com/ninjamuffin99/Funkin/issues/10), [HotSauceBurritos](https://github.com/ninjamuffin99/Funkin/issues/13) and [LobsterMango](https://lobstermango.newgrounds.com))
- Fixed tiny note bleed over thingies (shoutouts [lotusotho](https://github.com/ninjamuffin99/Funkin/pull/24)) - Fixed tiny note bleed over thingies (shoutouts [lotusotho](https://github.com/ninjamuffin99/Funkin/pull/24))

View file

@ -42,7 +42,7 @@ class FreeplayState extends MusicBeatState
isDebug = true; isDebug = true;
#end #end
if (StoryMenuState.weekUnlocked[1] || isDebug) if (StoryMenuState.weekUnlocked[2] || isDebug)
{ {
songs.push('Spookeez'); songs.push('Spookeez');
songs.push('South'); songs.push('South');
@ -180,12 +180,10 @@ class FreeplayState extends MusicBeatState
if (curDifficulty > 2) if (curDifficulty > 2)
curDifficulty = 0; curDifficulty = 0;
#if !switch #if !switch
intendedScore = Highscore.getScore(songs[curSelected], curDifficulty); intendedScore = Highscore.getScore(songs[curSelected], curDifficulty);
#end #end
switch (curDifficulty) switch (curDifficulty)
{ {
case 0: case 0:
@ -199,7 +197,6 @@ class FreeplayState extends MusicBeatState
function changeSelection(change:Int = 0) function changeSelection(change:Int = 0)
{ {
#if !switch #if !switch
NGio.logEvent('Fresh'); NGio.logEvent('Fresh');
#end #end
@ -216,13 +213,11 @@ class FreeplayState extends MusicBeatState
// selector.y = (70 * curSelected) + 30; // selector.y = (70 * curSelected) + 30;
#if !switch #if !switch
intendedScore = Highscore.getScore(songs[curSelected], curDifficulty); intendedScore = Highscore.getScore(songs[curSelected], curDifficulty);
// lerpScore = 0; // lerpScore = 0;
#end #end
FlxG.sound.playMusic('assets/music/' + songs[curSelected] + "_Inst" + TitleState.soundExt, 0); FlxG.sound.playMusic('assets/music/' + songs[curSelected] + "_Inst" + TitleState.soundExt, 0);
var bullShit:Int = 0; var bullShit:Int = 0;

View file

@ -872,10 +872,14 @@ class PlayState extends MusicBeatState
FlxG.switchState(new StoryMenuState()); FlxG.switchState(new StoryMenuState());
// if ()
StoryMenuState.weekUnlocked[2] = true; StoryMenuState.weekUnlocked[2] = true;
if (SONG.validScore)
{
NGio.unlockMedal(60961); NGio.unlockMedal(60961);
Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty); Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty);
}
FlxG.save.data.weekUnlocked = StoryMenuState.weekUnlocked; FlxG.save.data.weekUnlocked = StoryMenuState.weekUnlocked;
FlxG.save.flush(); FlxG.save.flush();