File tree Expand file tree Collapse file tree 3 files changed +32
-38
lines changed Expand file tree Collapse file tree 3 files changed +32
-38
lines changed Original file line number Diff line number Diff line change @@ -1974,19 +1974,18 @@ void drawBattlesStatusesList()
1974
1974
1975
1975
// Get the initial address offset
1976
1976
uint32_t DisplayValueCounter = 0 ;
1977
- if (IndexStart >= 1 ) // Sleep flags
1977
+
1978
+ if (IndexStart >= 20 ) // Explosion turns left
1979
+ {
1980
+ DisplayValueCounter += 3 ;
1981
+ }
1982
+ else if (IndexStart >= 18 ) // Can't use items
1983
+ {
1984
+ DisplayValueCounter += 2 ;
1985
+ }
1986
+ else if (IndexStart >= 1 ) // Sleep flags
1978
1987
{
1979
1988
DisplayValueCounter++;
1980
-
1981
- if (IndexStart >= 18 ) // Can't use items
1982
- {
1983
- DisplayValueCounter++;
1984
-
1985
- if (IndexStart >= 20 ) // Explosion turns left
1986
- {
1987
- DisplayValueCounter++;
1988
- }
1989
- }
1990
1989
}
1991
1990
1992
1991
// Draw the text and icons
Original file line number Diff line number Diff line change @@ -2562,19 +2562,17 @@ void menuCheckButton()
2562
2562
}
2563
2563
2564
2564
uint32_t Counter = 0 ;
2565
- if (tempCurrentMenuOption >= 1 ) // Sleep flags
2565
+ if (tempCurrentMenuOption >= 20 ) // Explosion turns left
2566
+ {
2567
+ Counter += 3 ;
2568
+ }
2569
+ else if (tempCurrentMenuOption >= 18 ) // Can't use items
2570
+ {
2571
+ Counter += 2 ;
2572
+ }
2573
+ else if (tempCurrentMenuOption >= 1 ) // Sleep flags
2566
2574
{
2567
2575
Counter++;
2568
-
2569
- if (tempCurrentMenuOption >= 18 ) // Can't use items
2570
- {
2571
- Counter++;
2572
-
2573
- if (tempCurrentMenuOption >= 20 ) // Explosion turns left
2574
- {
2575
- Counter++;
2576
- }
2577
- }
2578
2576
}
2579
2577
2580
2578
uint32_t TotalOptions = BattlesStatusesLinesSize;
Original file line number Diff line number Diff line change @@ -2958,24 +2958,21 @@ const char *getMapFromIndex(int32_t index)
2958
2958
int32_t NewIndex = index - 1 ;
2959
2959
uint32_t Counter = 0 ;
2960
2960
2961
- if (NewIndex >= 74 ) // gon_bt00
2961
+ if (NewIndex >= 269 ) // dig_00
2962
+ {
2963
+ Counter += 32 ;
2964
+ }
2965
+ else if (NewIndex >= 266 ) // qiz_00
2966
+ {
2967
+ Counter += 24 ;
2968
+ }
2969
+ else if (NewIndex >= 90 ) // hei_bt00
2970
+ {
2971
+ Counter += 16 ;
2972
+ }
2973
+ else if (NewIndex >= 74 ) // gon_bt00
2962
2974
{
2963
2975
Counter += 8 ;
2964
-
2965
- if (NewIndex >= 90 ) // hei_bt00
2966
- {
2967
- Counter += 8 ;
2968
-
2969
- if (NewIndex >= 266 ) // qiz_00
2970
- {
2971
- Counter += 8 ;
2972
-
2973
- if (NewIndex >= 269 ) // dig_00
2974
- {
2975
- Counter += 8 ;
2976
- }
2977
- }
2978
- }
2979
2976
}
2980
2977
2981
2978
uint32_t WorldDataPointer = reinterpret_cast <uint32_t >(ttyd::mapdata::worldData.unk_18 );
You can’t perform that action at this time.
0 commit comments