From 17572f8cd5945536eccffbbe832517d75993c03f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 20 Feb 2024 10:09:57 -0500 Subject: Revert "Added support for warp items (including sunwarps)" This reverts commit b2b098573ef5bcd03d61e827d11b969460d992af. --- util/generate_gamedata.rb | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'util/generate_gamedata.rb') diff --git a/util/generate_gamedata.rb b/util/generate_gamedata.rb index 1cce003..5e03655 100644 --- a/util/generate_gamedata.rb +++ b/util/generate_gamedata.rb @@ -15,12 +15,10 @@ door_groups = {} panel_output = [] door_ids_by_item_id = {} painting_ids_by_item_id = {} -warp_ids_by_item_id = {} panel_ids_by_location_id = {} classification_by_location_id = {} mentioned_doors = Set[] mentioned_paintings = Set[] -mentioned_warps = Set[] painting_output = {} ids_config = YAML.load_file(idspath) @@ -154,18 +152,6 @@ config.each do |room_name, room_data| painting_ids_by_item_id[item_id] = internal_painting_ids mentioned_paintings.merge(internal_painting_ids) end - - if door.include? "warp_id" - internal_warp_ids = [] - if door["warp_id"].kind_of? String - internal_warp_ids = [door["warp_id"]] - else - internal_warp_ids = door["warp_id"] - end - - warp_ids_by_item_id[item_id] = internal_warp_ids - mentioned_warps.merge(internal_warp_ids) - end end end end @@ -195,12 +181,6 @@ File.open(outputpath, "w") do |f| "\"#{painting_id}\"" end.join(",") + "]" end.join(",")) - f.write "}\nvar warp_ids_by_item_id = {" - f.write(warp_ids_by_item_id.map do |item_id, warp_ids| - "#{item_id}:[" + warp_ids.map do |warp_id| - "\"#{warp_id}\"" - end.join(",") + "]" - end.join(",")) f.write "}\nvar panel_ids_by_location_id = {" f.write(panel_ids_by_location_id.map do |location_id, panel_ids| "#{location_id}:[" + panel_ids.map do |panel_id| @@ -215,10 +195,6 @@ File.open(outputpath, "w") do |f| f.write(mentioned_paintings.map do |painting_id| "\"#{painting_id}\"" end.join(",")) - f.write "]\nvar mentioned_warps = [" - f.write(mentioned_warps.map do |warp_id| - "\"#{warp_id}\"" - end.join(",")) f.write "]\nvar paintings = {" f.write(painting_output.map do |painting_id, painting| "\"#{painting_id}\":{\"orientation\":\"#{painting["orientation"]}\",\"move\":#{painting.include? "move" and painting["move"]}}" -- cgit 1.4.1