diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b7eea7..84e1d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.2.2] - 2024-08-?? +## [1.2.2] - 2024-08-12 ### Changed - Changed the class names for the Module and Substate to avoid confusion. ### Fixed - Fixed a bug where the vocals would reset to default if the player died or restarted the song. +- Fixed a bug where the Pause Menu and Game Over suffixes would be overridden if Pico or Boyfriend (Pixel) were shown in the Character Menu. ## [1.2.1] - 2024-08-11 ### Added diff --git a/_polymod_meta.json b/_polymod_meta.json index 43b4e76..617a3e4 100644 --- a/_polymod_meta.json +++ b/_polymod_meta.json @@ -3,6 +3,6 @@ "description": "Adds a Character Select in Freeplay! No more needing to replace Boyfriend or Pico for reskins.", "author": "kagaminerinlen", "api_version": "0.1.0", - "mod_version": "1.2.1", + "mod_version": "1.2.2", "license": "MIT" } \ No newline at end of file diff --git a/scripts/modules/charHandler.hxc b/scripts/modules/charHandler.hxc index dcc4385..439c6d1 100644 --- a/scripts/modules/charHandler.hxc +++ b/scripts/modules/charHandler.hxc @@ -90,9 +90,6 @@ class CharacterHandler extends Module function onUpdate(event) { super.onUpdate(event); - trace("GAME OVER MUSIC SUFFIX: " + GameOverSubState.musicSuffix); - trace("GAME OVER BLUE BALL SUFFIX: " + GameOverSubState.blueBallSuffix); - trace("PAUSE MENU MUSIC SUFFIX: " + PauseSubState.musicSuffix); if (Std.isOfType(FlxG.state.subState, FreeplayState)) { if (charSelectIcon != null && charText != null) { charSelectIcon.visible = FlxG.state.subState.alsoOrangeLOL.visible; @@ -147,13 +144,12 @@ class CharacterHandler extends Module } } - /** * Resetting Game Over and Pause Menu suffixes. * We put this in onStateChangeBegin instead of onStateChangeEnd, otherwise, * scripted characters will have their suffixes overridden! */ - override function onStateChangeBegin(event) { + override function onStateChangeBegin(event) { super.onStateChangeBegin(event); if (Std.isOfType(event.targetState, PlayState)) { PauseSubState.musicSuffix = '';