File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ typedef APSlotDataType = {
2424 songData : Map <String , SongDetailData >,
2525 ? custom_weeks : Dynamic , // Custom weeks data from HScript processing
2626 ? song_modifications : Dynamic , // Song additions/exclusions data
27- ? unoColorsUsed : Array <{name : String , color : String }> // Uno mod colors used in the slot
27+ ? unoColorsUsed : Array <{name : String , color_code : String }> // Uno mod colors used in the slot
2828}
2929
3030abstract APSlotData (APSlotDataType ) from APSlotDataType to APSlotDataType {
@@ -74,7 +74,7 @@ abstract APSlotData(APSlotDataType) from APSlotDataType to APSlotDataType {
7474 private function get_songData (): Map <String , SongDetailData > return this .songData ;
7575 private function get_custom_weeks (): Dynamic return this .custom_weeks ;
7676 private function get_song_modifications (): Dynamic return this .song_modifications ;
77- private function get_unoColorsUsed (): Array <{name : String , color : String }> return this .unoColorsUsed ;
77+ private function get_unoColorsUsed (): Array <{name : String , color_code : String }> return this .unoColorsUsed ;
7878
7979 public function get (key : String ): Dynamic {
8080 return Reflect .field (this , key );
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class APItem {
141141 public static var pendingDamage : Float = 0.0 ; // Damage that will be applied when conditions are met
142142 public static var extraItemInventory : Array <CustomModItem > = [];
143143
144- public static var unoColorsUnlocked : Array <{name : String , color : String }> = [];
144+ public static var unoColorsUnlocked : Array <{name : String , color_code : String }> = [];
145145
146146 public static var unknownSongs : Bool = false ; // If true, songs are unknown.
147147
@@ -462,7 +462,7 @@ class APItem {
462462 var color = FlxG .random .getObject (availableColors );
463463 unoColorsUnlocked .push (color );
464464 popup (' You got the color ${color .name }!' , " You got an UNO Color!" );
465- trace (' UNO Color acquired: ${color .name } ( ${color .color })' );
465+ trace (' UNO Color acquired: ${color .name } ( ${color .color_code })' );
466466 } else {
467467 popup (' You already have all available colors!' , " UNO Color Filler" );
468468 }
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class APUnoTrapState extends UnoTestState {
7070 var unoColors = APItem .unoColorsUnlocked ;
7171
7272 var unoColorsWithInt = [for (colorInfo in unoColors ) {
73- var colorInt = Std . parseInt ( ' 0x ${colorInfo .color }' );
73+ var colorInt = FlxColor . fromString ( ' ${colorInfo .color_code }' );
7474 {name : colorInfo .name , color : colorInt };
7575 }];
7676 var usableColors : Array <UnoColor > = [];
@@ -101,7 +101,7 @@ class APUnoTrapState extends UnoTestState {
101101 new FlxTimer ().start (2.0 , function (timer ) {
102102 archipelago. APInfo .inMinigame = archipelago. APInfo .APMinigame. None ;
103103 if (previousState != null ) {
104- FlxG . switchState (Type .createInstance (previousState , []));
104+ LoadingState . loadAndSwitchState (Type .createInstance (previousState , []));
105105 } else {
106106 StageData .loadDirectory (PlayState .SONG );
107107 LoadingState .loadAndSwitchState (new archipelago. APPlayState ());
You can’t perform that action at this time.
0 commit comments