diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-04-27 12:35:08 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-04-27 12:35:08 -0400 |
commit | 60f8b6a0a1db6275453689a40d2432ec0f3ee0cb (patch) | |
tree | 1a135ef09e3734a48691dcc3272d73d068bc9259 | |
parent | 5c22b3c8d1268310553dd4ef78141dbf43d9da18 (diff) | |
download | lingo-archipelago-60f8b6a0a1db6275453689a40d2432ec0f3ee0cb.tar.gz lingo-archipelago-60f8b6a0a1db6275453689a40d2432ec0f3ee0cb.tar.bz2 lingo-archipelago-60f8b6a0a1db6275453689a40d2432ec0f3ee0cb.zip |
Fixed progressive item name display
-rw-r--r-- | Archipelago/client.gd | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index e5e930f..c0b5366 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd | |||
@@ -722,16 +722,21 @@ func processItem(item, index, from, flags): | |||
722 | var is_progressive_door = int(item) in gamedata.door_items_by_progressive_id | 722 | var is_progressive_door = int(item) in gamedata.door_items_by_progressive_id |
723 | var is_progressive_panel = int(item) in gamedata.panel_items_by_progressive_id | 723 | var is_progressive_panel = int(item) in gamedata.panel_items_by_progressive_id |
724 | var progitems = null | 724 | var progitems = null |
725 | var prognames = null | ||
725 | 726 | ||
726 | if is_progressive_door and is_progressive_panel: | 727 | if is_progressive_door and is_progressive_panel: |
727 | if _door_shuffle: | 728 | if _door_shuffle: |
728 | progitems = gamedata.door_items_by_progressive_id[int(item)] | 729 | progitems = gamedata.door_items_by_progressive_id[int(item)] |
730 | prognames = door_progressive_items | ||
729 | else: | 731 | else: |
730 | progitems = gamedata.panel_items_by_progressive_id[int(item)] | 732 | progitems = gamedata.panel_items_by_progressive_id[int(item)] |
733 | prognames = panel_progressive_items | ||
731 | elif is_progressive_door: | 734 | elif is_progressive_door: |
732 | progitems = gamedata.door_items_by_progressive_id[int(item)] | 735 | progitems = gamedata.door_items_by_progressive_id[int(item)] |
736 | prognames = door_progressive_items | ||
733 | elif is_progressive_panel: | 737 | elif is_progressive_panel: |
734 | progitems = gamedata.panel_items_by_progressive_id[int(item)] | 738 | progitems = gamedata.panel_items_by_progressive_id[int(item)] |
739 | prognames = panel_progressive_items | ||
735 | 740 | ||
736 | if progitems != null: | 741 | if progitems != null: |
737 | if not int(item) in _progressive_progress: | 742 | if not int(item) in _progressive_progress: |
@@ -741,6 +746,7 @@ func processItem(item, index, from, flags): | |||
741 | var subitem_id = progitems[_progressive_progress[int(item)]] | 746 | var subitem_id = progitems[_progressive_progress[int(item)]] |
742 | global._print("Subitem: %d" % subitem_id) | 747 | global._print("Subitem: %d" % subitem_id) |
743 | processItem(subitem_id, null, null, null) | 748 | processItem(subitem_id, null, null, null) |
749 | item_name += " (%s)" % prognames[item_name][_progressive_progress[int(item)]] | ||
744 | _progressive_progress[int(item)] += 1 | 750 | _progressive_progress[int(item)] += 1 |
745 | 751 | ||
746 | if _color_shuffle and color_items.has(_item_id_to_name[item]): | 752 | if _color_shuffle and color_items.has(_item_id_to_name[item]): |
@@ -754,14 +760,6 @@ func processItem(item, index, from, flags): | |||
754 | _last_new_item = index | 760 | _last_new_item = index |
755 | saveLocaldata() | 761 | saveLocaldata() |
756 | 762 | ||
757 | if _door_shuffle and item_name in door_progressive_items: | ||
758 | var subitem = door_progressive_items[item_name][_progressive_progress[int(item)] - 1] | ||
759 | item_name += " (%s)" % subitem["display"] | ||
760 | |||
761 | if _panel_door_shuffle and item_name in panel_progressive_items: | ||
762 | var subitem = panel_progressive_items[item_name][_progressive_progress[int(item)] - 1] | ||
763 | item_name += " (%s)" % subitem["display"] | ||
764 | |||
765 | var player_name = "Unknown" | 763 | var player_name = "Unknown" |
766 | if _player_name_by_slot.has(from): | 764 | if _player_name_by_slot.has(from): |
767 | player_name = _player_name_by_slot[from] | 765 | player_name = _player_name_by_slot[from] |