@@ -150,7 +150,7 @@ class APAdvancedSettingsState extends MusicBeatState
150150 var victorySongData : Dynamic = null ;
151151 var deathlink : Bool = false ;
152152
153- // Filler weight settings
153+ // Filler/Trap weight settings
154154 var bbcWeight : Int = 3 ;
155155 var ghostChatWeight : Int = 3 ;
156156 var tutorialWeight : Int = 3 ;
@@ -160,6 +160,7 @@ class APAdvancedSettingsState extends MusicBeatState
160160 var resistanceWeight : Int = 3 ;
161161 var unoWeight : Int = 3 ;
162162 var pongWeight : Int = 3 ;
163+ var ultConfusionWeight : Int = 3 ;
163164 var shieldWeight : Int = 3 ;
164165 var exLifeWeight : Int = 3 ;
165166 var MHPWeight : Int = 3 ;
@@ -388,6 +389,8 @@ class APAdvancedSettingsState extends MusicBeatState
388389 unoWeight = value ;
389390 case " pongWeight" :
390391 pongWeight = value ;
392+ case " ultConfusionWeight" :
393+ ultConfusionWeight = value ;
391394 case " svcWeight" :
392395 svcWeight = value ;
393396 case " fakeTransWeight" :
@@ -700,6 +703,13 @@ class APAdvancedSettingsState extends MusicBeatState
700703 locked : false ,
701704 contextMenu : createEditContextMenu (() -> adjustPongWeight ())
702705 },
706+ {
707+ name : " Ultimate Confusion Trap Weight" ,
708+ description : " Weight for the Ultimate Confusion Trap items (0-10)" ,
709+ callback : () -> adjustConfusionWeight (),
710+ locked : false ,
711+ contextMenu : createEditContextMenu (() -> adjustConfusionWeight ())
712+ },
703713 {
704714 name : " Extra Life Weight" ,
705715 description : " Weight for Extra Life items (0-10)" ,
@@ -1365,6 +1375,7 @@ class APAdvancedSettingsState extends MusicBeatState
13651375 case " Resistance Trap Weight" : Std .string (resistanceWeight );
13661376 case " UNO Challenge Trap Weight" : Std .string (unoWeight );
13671377 case " Pong Challenge Trap Weight" : Std .string (pongWeight );
1378+ case " Ultimate Confusion Trap Weight" : Std .string (ultConfusionWeight );
13681379 case " SVC Weight" : Std .string (svcWeight );
13691380 case " Fake Transition Weight" : Std .string (fakeTransWeight );
13701381 case " Shield Weight" : Std .string (shieldWeight );
@@ -1681,6 +1692,15 @@ class APAdvancedSettingsState extends MusicBeatState
16811692 });
16821693 }
16831694
1695+ function adjustConfusionWeight ()
1696+ {
1697+ openSliderControl (" Ultimate Confusion Trap Weight" , ultConfusionWeight , 0 , 10 , 1 , function (value : Float )
1698+ {
1699+ ultConfusionWeight = Std .int (value );
1700+ refreshCurrentPage ();
1701+ });
1702+ }
1703+
16841704 function adjustexLifeWeight ()
16851705 {
16861706 openSliderControl (" Extra Life Weight" , exLifeWeight , 0 , 10 , 1 , function (value : Float )
@@ -2111,6 +2131,7 @@ class APAdvancedSettingsState extends MusicBeatState
21112131 resistanceWeight = settings .resistanceWeight ;
21122132 unoWeight = settings .unoWeight ;
21132133 pongWeight = settings .pongWeight ;
2134+ ultConfusionWeight = settings .ultConfusionWeight ;
21142135 svcWeight = settings .svcWeight ;
21152136 fakeTransWeight = settings .fakeTransWeight ;
21162137 shieldWeight = settings .shieldWeight ;
@@ -2164,6 +2185,7 @@ class APAdvancedSettingsState extends MusicBeatState
21642185 settings .resistanceWeight = resistanceWeight ;
21652186 settings .unoWeight = unoWeight ;
21662187 settings .pongWeight = pongWeight ;
2188+ settings .ultConfusionWeight = ultConfusionWeight ;
21672189 settings .svcWeight = svcWeight ;
21682190 settings .fakeTransWeight = fakeTransWeight ;
21692191 settings .shieldWeight = shieldWeight ;
@@ -2558,6 +2580,8 @@ class APAdvancedSettingsState extends MusicBeatState
25582580 unoWeight = value ;
25592581 case " pongWeight" :
25602582 pongWeight = value ;
2583+ case " ultConfusionWeight" :
2584+ ultConfusionWeight = value ;
25612585 case " svcWeight" :
25622586 svcWeight = value ;
25632587 case " fakeTransWeight" :
@@ -2875,6 +2899,7 @@ class APAdvancedSettingsState extends MusicBeatState
28752899 resistanceWeight : resistanceWeight ,
28762900 unoWeight : unoWeight ,
28772901 pongWeight : pongWeight ,
2902+ ultConfusionWeight : ultConfusionWeight ,
28782903 svcWeight : svcWeight ,
28792904 fakeTransWeight : fakeTransWeight ,
28802905 shieldWeight : shieldWeight ,
@@ -2934,6 +2959,8 @@ class APAdvancedSettingsState extends MusicBeatState
29342959 unoWeight = data .unoWeight ;
29352960 if (Reflect .hasField (data , " pongWeight" ))
29362961 pongWeight = data .pongWeight ;
2962+ if (Reflect .hasField (data , " ultConfusionWeight" ))
2963+ ultConfusionWeight = data .ultConfusionWeight ;
29372964 if (Reflect .hasField (data , " svcWeight" ))
29382965 svcWeight = data .svcWeight ;
29392966 if (Reflect .hasField (data , " fakeTransWeight" ))
@@ -3210,6 +3237,8 @@ class APAdvancedSettingsState extends MusicBeatState
32103237 state .unoWeight = data .unoWeight ;
32113238 if (Reflect .hasField (data , " pongWeight" ))
32123239 state .pongWeight = data .pongWeight ;
3240+ if (Reflect .hasField (data , " ultConfusionWeight" ))
3241+ state .ultConfusionWeight = data .ultConfusionWeight ;
32133242 if (Reflect .hasField (data , " svcWeight" ))
32143243 state .svcWeight = data .svcWeight ;
32153244 if (Reflect .hasField (data , " fakeTransWeight" ))
0 commit comments