Add sprite_pool for limiting sprites used in randomonevent.

This commit is contained in:
CaitSith2
2020-10-06 13:22:03 -07:00
parent aae08a807f
commit 9812e2cca5
7 changed files with 23 additions and 5 deletions

View File

@@ -315,6 +315,8 @@ def parse_arguments(argv, no_defaults=False):
u: shuffle capacity upgrades into the item pool
''')
parser.add_argument('--shuffle_prizes', default=defval('g'), choices=['', 'g', 'b', 'gb'])
parser.add_argument('--sprite_pool', help='''\
Specifies a colon separated list of sprites used for random/randomonevent. If not specified, the full sprite pool is used.''')
parser.add_argument('--remote_items', default=defval(False), action='store_true')
parser.add_argument('--multi', default=defval(1), type=lambda value: min(max(int(value), 1), 255))
parser.add_argument('--names', default=defval(''))
@@ -360,7 +362,7 @@ def parse_arguments(argv, no_defaults=False):
'heartbeep', "skip_progression_balancing", "triforce_pieces_available",
"triforce_pieces_required", "shop_shuffle",
'remote_items', 'progressive', 'dungeon_counters', 'glitch_boots', 'killable_thieves',
'tile_shuffle', 'bush_shuffle', 'shuffle_prizes']:
'tile_shuffle', 'bush_shuffle', 'shuffle_prizes', 'sprite_pool']:
value = getattr(defaults, name) if getattr(playerargs, name) is None else getattr(playerargs, name)
if player == 1:
setattr(ret, name, {1: value})