diff options
Diffstat (limited to 'tools/validator/validator.cpp')
| -rw-r--r-- | tools/validator/validator.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
| diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index e1fc138..fe36be7 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp | |||
| @@ -227,7 +227,7 @@ 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 || h_door.legacy_location()) { |
| 231 | if (h_door.double_letters()) { | 231 | if (h_door.double_letters()) { |
| 232 | std::cout << "Door " << door_identifier.ShortDebugString() | 232 | std::cout << "Door " << door_identifier.ShortDebugString() |
| 233 | << " is a location that depends on double_letters." | 233 | << " is a location that depends on double_letters." |
| @@ -240,7 +240,8 @@ class Validator { | |||
| 240 | } | 240 | } |
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | bool needs_id = (h_door.type() != DoorType::EVENT || h_door.latch()); | 243 | bool needs_id = (h_door.type() != DoorType::EVENT || h_door.latch() || |
| 244 | h_door.legacy_location()); | ||
| 244 | if (door_info.has_id != needs_id) { | 245 | if (door_info.has_id != needs_id) { |
| 245 | if (needs_id) { | 246 | if (needs_id) { |
| 246 | std::cout << "Door " << door_identifier.ShortDebugString() | 247 | std::cout << "Door " << door_identifier.ShortDebugString() |
| @@ -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 | } |
