mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Merge branch 'main' into multishop
This commit is contained in:
@@ -473,11 +473,8 @@ def send_new_items(ctx: Context):
|
|||||||
|
|
||||||
|
|
||||||
def forfeit_player(ctx: Context, team: int, slot: int):
|
def forfeit_player(ctx: Context, team: int, slot: int):
|
||||||
all_locations = {values[0] for values in Regions.location_table.values() if type(values[0]) is int}
|
# register any locations that are in the multidata
|
||||||
all_locations.update({values[1] for values in Regions.key_drop_data.values()})
|
all_locations = {location_id for location_id, location_slot in ctx.locations if location_slot == slot}
|
||||||
all_locations.update({values for values in range(Regions.SHOP_ID_START, Regions.SHOP_ID_START + 256)})
|
|
||||||
# register any unknown locations, such as from future versions to be forfeited too
|
|
||||||
all_locations.update(location for location, location_slot in ctx.locations if location_slot == slot)
|
|
||||||
ctx.notify_all("%s (Team #%d) has forfeited" % (ctx.player_names[(team, slot)], team + 1))
|
ctx.notify_all("%s (Team #%d) has forfeited" % (ctx.player_names[(team, slot)], team + 1))
|
||||||
register_location_checks(ctx, team, slot, all_locations)
|
register_location_checks(ctx, team, slot, all_locations)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user