Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof committed Oct 23, 2024
1 parent f9c311a commit 410cce2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ 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.5.1] - 2024-10-23
### Added
- v0.5.3 support
- You can now have assign multiple character types to your character as an Array
### Changed
- Characters are now sorted in Alphabetical order
- Small optimizations


## [1.5.0] - 2024-10-22
### Added
- The characters now bop to the BPM of the currently selected song in Freeplay.
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.5.0",
"mod_version": "1.5.0",
"mod_version": "1.5.1",
"license": "MIT"
}
2 changes: 1 addition & 1 deletion scripts/modules/charHandler.hxc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CharacterHandler extends Module {
* NOTE: Only change this if there's breaking changes that
* make it not function on older versions!!
*/
var supportedVersionRule:String = ">=0.5.2 <0.5.3";
var supportedVersionRule:String = ">=0.5.2 <=0.5.3";

/**
* currentCachedTextures gets cleared everytime we load into a song.
Expand Down
16 changes: 13 additions & 3 deletions scripts/states/CharacterMenu.hxc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Array;
import flixel.FlxG;
import flixel.text.FlxText;
import flixel.tweens.FlxEase;
Expand Down Expand Up @@ -247,11 +248,20 @@ class CharacterSelectSubState extends MusicBeatSubState {
characterType = characterMap.get(shit)[1];
switch (pageIndex) {
case 0:
return characterType == 'bf' || characterType == 'player';
if (characterType is Array)
return characterType.indexOf('bf') != -1 || characterType.indexOf('player') != -1;
else
return characterType == 'bf' || characterType == 'player';
case 1:
return characterType == 'dad' || characterType == 'opponent';
if (characterType is Array)
return characterType.indexOf('dad') != -1 || characterType.indexOf('opponent') != -1;
else
return characterType == 'dad' || characterType == 'opponent';
case 2:
return characterType == 'gf';
if (characterType is Array)
return characterType.indexOf('gf') != -1;
else
return characterType == 'gf';
}
});

Expand Down

0 comments on commit 410cce2

Please sign in to comment.