1+
2+
13def name ():
24 return "Misc."
35
46def parse (parser ):
57 misc = parser .add_argument_group ("Misc." )
6- misc .add_argument ("-as" , "--auto-sprint" , action = "store_true" ,
7- help = "Player always sprints. Sprint Shoes have no effect" )
8+
89 misc .add_argument ("-ond" , "--original-name-display" , action = "store_true" ,
910 help = "Display original character names in party and party select menus" )
1011 misc .add_argument ("-rr" , "--random-rng" , action = "store_true" ,
@@ -16,6 +17,15 @@ def parse(parser):
1617 misc .add_argument ("-warp" , "--warp-all" , action = "store_true" ,
1718 help = "All characters start with Warp learned. Warp costs 0 MP. Useful for seeds that limit Warp Stone access" )
1819
20+ from data .movement import ALL
21+ movement = misc .add_mutually_exclusive_group ()
22+ movement .name = "Movement"
23+ movement .add_argument ("-move" , "--movement" , type = str .lower , choices = ALL ,
24+ help = "Player movement options" )
25+ # Completely ignore this argument, and default to auto sprint when -move is not defined
26+ misc .add_argument ("-as" , "--auto-sprint" , action = "store_true" ,
27+ help = "DEPRECATED - Use `-move as` instead. Player always sprints. Sprint Shoes have no effect" )
28+
1929 event_timers = misc .add_mutually_exclusive_group ()
2030 event_timers .add_argument ("-etr" , "--event-timers-random" , action = "store_true" ,
2131 help = "Collapsing House, Opera House, and Floating Continent timers randomized" )
@@ -57,8 +67,8 @@ def process(args):
5767def flags (args ):
5868 flags = ""
5969
60- if args .auto_sprint :
61- flags += " -as "
70+ if args .movement :
71+ flags += f " -move { args . movement } "
6272 if args .original_name_display :
6373 flags += " -ond"
6474 if args .random_rng :
@@ -127,8 +137,15 @@ def options(args):
127137 elif args .y_npc_remove :
128138 y_npc = "Remove"
129139
140+ from data .movement import key_name , AUTO_SPRINT
141+ # Similar logic is present in the init fn of settings/movement.py
142+ if args .movement :
143+ movement = key_name [args .movement ]
144+ else :
145+ movement = key_name [AUTO_SPRINT ]
146+
130147 return [
131- ("Auto Sprint " , args . auto_sprint ),
148+ ("Movement " , movement ),
132149 ("Original Name Display" , args .original_name_display ),
133150 ("Random RNG" , args .random_rng ),
134151 ("Random Clock" , args .random_clock ),
0 commit comments