From 88f653284068631efd03debd07e4fff1524f2ad4 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 20 May 2024 09:40:02 -0400 Subject: [PATCH] Added a test for the Wondrous painting thing --- worlds/lingo/utils/validate_config.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/worlds/lingo/utils/validate_config.rb b/worlds/lingo/utils/validate_config.rb index b452c0d11120..498980bb719a 100644 --- a/worlds/lingo/utils/validate_config.rb +++ b/worlds/lingo/utils/validate_config.rb @@ -39,6 +39,7 @@ mentioned_panels = Set[] mentioned_sunwarp_entrances = Set[] mentioned_sunwarp_exits = Set[] +mentioned_paintings = Set[] door_groups = {} @@ -257,6 +258,12 @@ unless paintings.include? painting["id"] then puts "#{room_name} :::: Invalid Painting ID #{painting["id"]}" end + + if mentioned_paintings.include?(painting["id"]) then + puts "Painting #{painting["id"]} is mentioned more than once" + else + mentioned_paintings.add(painting["id"]) + end else puts "#{room_name} :::: Painting is missing an ID" end