about summary refs log tree commit diff stats
path: root/tools/validator/validator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/validator/validator.cpp')
-rw-r--r--tools/validator/validator.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index e1fc138..a99447a 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp
@@ -227,7 +227,8 @@ class Validator {
227 227
228 if (h_door.type() == DoorType::STANDARD || 228 if (h_door.type() == DoorType::STANDARD ||
229 h_door.type() == DoorType::LOCATION_ONLY || 229 h_door.type() == DoorType::LOCATION_ONLY ||
230 h_door.type() == DoorType::GRAVESTONE) { 230 h_door.type() == DoorType::GRAVESTONE ||
231 h_door.type() == DoorType::LEGACY_LOCATION) {
231 if (h_door.double_letters()) { 232 if (h_door.double_letters()) {
232 std::cout << "Door " << door_identifier.ShortDebugString() 233 std::cout << "Door " << door_identifier.ShortDebugString()
233 << " is a location that depends on double_letters." 234 << " is a location that depends on double_letters."
@@ -268,6 +269,10 @@ class Validator {
268 for (const std::string& map_name : port_info.map_worldport_entrances) { 269 for (const std::string& map_name : port_info.map_worldport_entrances) {
269 std::cout << " MAP (worldport_entrance) " << map_name << std::endl; 270 std::cout << " MAP (worldport_entrance) " << map_name << std::endl;
270 } 271 }
272
273 if (port_info.has_id) {
274 std::cout << " An AP ID is present." << std::endl;
275 }
271 } else if (port_info.definitions.size() > 1) { 276 } else if (port_info.definitions.size() > 1) {
272 std::cout << "Port " << port_identifier.ShortDebugString() 277 std::cout << "Port " << port_identifier.ShortDebugString()
273 << " was defined multiple times." << std::endl; 278 << " was defined multiple times." << std::endl;
@@ -300,6 +305,15 @@ class Validator {
300 std::cout << "Port " << port_identifier.ShortDebugString() 305 std::cout << "Port " << port_identifier.ShortDebugString()
301 << " is shuffleable and missing a rotation." << std::endl; 306 << " is shuffleable and missing a rotation." << std::endl;
302 } 307 }
308 if (!port_info.has_id) {
309 std::cout << "Port " << port_identifier.ShortDebugString()
310 << " is missing an AP ID." << std::endl;
311 }
312 } else {
313 if (port_info.has_id) {
314 std::cout << "Port " << port_identifier.ShortDebugString()
315 << " should not have an AP ID." << std::endl;
316 }
303 } 317 }
304 } 318 }
305 } 319 }