You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env.console.log("change_settings_prior_to_autostory: " + assumption_text + " The index of \"Options\" in the Menu is " + std::to_string(options_index) + ".");
556
550
557
551
bool has_minimap = current_segment_num >= 2; // the minimap only shows up in segment 2 and beyond
voidchange_settings_prior_to_autostory_checkpoint_mode(SingleSwitchProgramEnvironment& env, ProControllerContext& context, size_t current_checkpoint_num, Language language){
556
+
// get index of `Options` in the Main Menu, which depends on where you are in Autostory
557
+
int8_t options_index;
558
+
std::string assumption_text = "";
559
+
switch(current_checkpoint_num){
560
+
case0:
561
+
return; // can't change settings in the intro cutscene
562
+
case1:
563
+
case2:
564
+
// after Intro cutscene done, in room
565
+
// Menu
566
+
// - Options
567
+
// - Save
568
+
options_index = 0;
569
+
assumption_text = "We assume 'Bag' is not yet unlocked.";
570
+
break;
571
+
case3:
572
+
case4:
573
+
// Menu
574
+
// - Bag --> unlocked after picked up bag/hat in room. Segment 01, checkpoint 02
575
+
// - Options
576
+
// - Save
577
+
options_index = 1;
578
+
assumption_text = "We assume 'Boxes' is not yet unlocked.";
579
+
break;
580
+
case5:
581
+
case6:
582
+
case7:
583
+
case8:
584
+
case9:
585
+
case10:
586
+
case11:
587
+
// Menu
588
+
// - Bag
589
+
// - Boxes --> unlocked after battling Nemona and receiving Pokedex app. Segment 02, checkpoint 04
590
+
// - Options
591
+
// - Save
592
+
options_index = 2;
593
+
assumption_text = "We assume 'Poke Portal' is not yet unlocked.";
594
+
break;
595
+
case12:
596
+
case13:
597
+
case14:
598
+
case15:
599
+
case16:
600
+
case17:
601
+
case18:
602
+
case19:
603
+
case20:
604
+
// Menu
605
+
// - Bag
606
+
// - Boxes
607
+
// - Poke Portal --> unlocked after arriving at Los Platos and talking to Nemona. Segment 06, checkpoint 11
608
+
// - Options
609
+
// - Save
610
+
options_index = 3;
611
+
assumption_text = "We assume 'Picnic' is not yet unlocked.";
612
+
break;
613
+
default:
614
+
if(current_checkpoint_num <= 20){
615
+
throwInternalProgramError(nullptr, PA_CURRENT_FUNCTION, "change_settings_prior_to_autostory_checkpoint_mode: current_checkpoint_num should be greater than 20.");
assumption_text = "We assume that the tutorial is done, and all menu items are unlocked.";
627
+
break;
628
+
}
629
+
630
+
env.console.log("change_settings_prior_to_autostory: " + assumption_text + " The index of \"Options\" in the Menu is " + std::to_string(options_index) + ".");
631
+
632
+
bool has_minimap = current_checkpoint_num >= 3; // the minimap only shows up in checkpoint 3 and beyond
0 commit comments