Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof committed Aug 12, 2024
1 parent 5de8a52 commit c129c49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion _polymod_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
6 changes: 1 addition & 5 deletions scripts/modules/charHandler.hxc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 = '';
Expand Down

0 comments on commit c129c49

Please sign in to comment.