From cf638697c17ec186b5da88ea92fc005371c9eab7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 27 Oct 2025 10:12:58 -0400 Subject: Assign stable IDs for shuffleable worldports --- tools/validator/validator.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/validator/validator.cpp') diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index 5f8e0ba..a99447a 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp @@ -269,6 +269,10 @@ class Validator { for (const std::string& map_name : port_info.map_worldport_entrances) { std::cout << " MAP (worldport_entrance) " << map_name << std::endl; } + + if (port_info.has_id) { + std::cout << " An AP ID is present." << std::endl; + } } else if (port_info.definitions.size() > 1) { std::cout << "Port " << port_identifier.ShortDebugString() << " was defined multiple times." << std::endl; @@ -301,6 +305,15 @@ class Validator { std::cout << "Port " << port_identifier.ShortDebugString() << " is shuffleable and missing a rotation." << std::endl; } + if (!port_info.has_id) { + std::cout << "Port " << port_identifier.ShortDebugString() + << " is missing an AP ID." << std::endl; + } + } else { + if (port_info.has_id) { + std::cout << "Port " << port_identifier.ShortDebugString() + << " should not have an AP ID." << std::endl; + } } } } -- cgit 1.4.1