mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Add per-client remote_item settings + TextOnly Tag
* Tracker tag will receive all items via server (including local) * TextOnly tag will receive no items * TextClient sends TextOnly tag * precollected items / start_inventory does not get an "Order received" number anymore * local items do always get an "Order received" number now * multisave changed, includes version number now, upgrade works for games (not trackers)
This commit is contained in:

committed by
Fabian Dill

parent
344f4afdbd
commit
0c46cc6843
@@ -906,11 +906,13 @@ def __renderGenericTracker(multisave: Dict[str, Any], room: Room, locations: Dic
|
||||
|
||||
checked_locations = multisave.get("location_checks", {}).get((team, player), set())
|
||||
player_received_items = {}
|
||||
if multisave.get('version', 0) > 0:
|
||||
# add numbering to all items but starter_inventory
|
||||
ordered_items = multisave.get('received_items', {}).get((team, player, True), [])
|
||||
else:
|
||||
ordered_items = multisave.get('received_items', {}).get((team, player), [])
|
||||
|
||||
for order_index, networkItem in enumerate(
|
||||
multisave.get('received_items', {}).get((team, player), []),
|
||||
start=1
|
||||
):
|
||||
for order_index, networkItem in enumerate(ordered_items, start=1):
|
||||
player_received_items[networkItem.item] = order_index
|
||||
|
||||
return render_template("genericTracker.html",
|
||||
|
Reference in New Issue
Block a user