diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-10 09:03:23 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-10 09:03:23 -0400 |
commit | 482b251a26c6701e77ddcc167b78e7986fb0a25e (patch) | |
tree | 030e99e059f23d28bddea79470aafff2374f5fe1 /tools/assign_ids/main.cpp | |
parent | 9380a7786afaefa2a999e3130ba0f5318a45b83f (diff) | |
download | lingo2-archipelago-482b251a26c6701e77ddcc167b78e7986fb0a25e.tar.gz lingo2-archipelago-482b251a26c6701e77ddcc167b78e7986fb0a25e.tar.bz2 lingo2-archipelago-482b251a26c6701e77ddcc167b78e7986fb0a25e.zip |
Assigned IDs for the_colorful
Also fixed bug where the ID assigner didn't read letter and mastery IDs and would thus reuse them. I reassigned all IDs because of this (since we don't need to worry about ID stability yet).
Diffstat (limited to 'tools/assign_ids/main.cpp')
-rw-r--r-- | tools/assign_ids/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/assign_ids/main.cpp b/tools/assign_ids/main.cpp index eba4fd6..349c258 100644 --- a/tools/assign_ids/main.cpp +++ b/tools/assign_ids/main.cpp | |||
@@ -61,6 +61,12 @@ class AssignIds { | |||
61 | next_id_ = id; | 61 | next_id_ = id; |
62 | } | 62 | } |
63 | } | 63 | } |
64 | |||
65 | for (const auto& [_, id] : room.masteries()) { | ||
66 | if (id > next_id_) { | ||
67 | next_id_ = id; | ||
68 | } | ||
69 | } | ||
64 | } | 70 | } |
65 | } | 71 | } |
66 | 72 | ||
@@ -70,6 +76,12 @@ class AssignIds { | |||
70 | } | 76 | } |
71 | } | 77 | } |
72 | 78 | ||
79 | for (const auto& [_, id] : id_mappings_.letters()) { | ||
80 | if (id > next_id_) { | ||
81 | next_id_ = id; | ||
82 | } | ||
83 | } | ||
84 | |||
73 | next_id_++; | 85 | next_id_++; |
74 | } | 86 | } |
75 | 87 | ||