Skip to content

Commit

Permalink
Detect "ruins=round_tower" as a ruined round tower.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Townsend committed Dec 30, 2023
1 parent 1bce257 commit 8188e0a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Detect "ruins=village" as a ruined village.
Show "historic=village_pump" as a historic, hand-operated water pump.
Detect "ruins=grave_yard" as a ruined graveyard.
Detect "man_made=sound mirror" as a nonspecific historical item.
Detect "ruins=round_tower" as a ruined round tower.

## 28/12/2023
Show hilltop enclosures as hill forts.
Expand Down
22 changes: 13 additions & 9 deletions style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1678,17 +1678,21 @@ function filter_tags_generic(keyvalues, nokeys)

-- ----------------------------------------------------------------------------
-- Render ruined mills and mines etc. that are not something else as historic.
-- ----------------------------------------------------------------------------
if (( keyvalues["historic"] == "ruins" ) and
(( keyvalues["ruins"] == "lime_kiln" ) or
( keyvalues["ruins"] == "manor" ) or
( keyvalues["ruins"] == "mill" ) or
( keyvalues["ruins"] == "mine" ) or
( keyvalues["ruins"] == "village" ) or
( keyvalues["ruins"] == "watermill" ) or
( keyvalues["ruins"] == "well" ))) then
-- Items in this list are assumed to be not operational, so the "man_made"
-- tag is cleared.
-- ----------------------------------------------------------------------------
if (( keyvalues["historic"] == "ruins" ) and
(( keyvalues["ruins"] == "lime_kiln" ) or
( keyvalues["ruins"] == "manor" ) or
( keyvalues["ruins"] == "mill" ) or
( keyvalues["ruins"] == "mine" ) or
( keyvalues["ruins"] == "round_tower" ) or
( keyvalues["ruins"] == "village" ) or
( keyvalues["ruins"] == "watermill" ) or
( keyvalues["ruins"] == "well" ))) then
keyvalues["historic"] = keyvalues["ruins"]
keyvalues["ruins"] = "yes"
keyvalues["man_made"] = nil
end

-- ----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,7 @@
{ "key": "ruins", "value": "monastery", "description": "Detect historic monasteries" },
{ "key": "ruins", "value": "place_of_worship", "description": "Detect ruined churches" },
{ "key": "ruins", "value": "priory", "description": "Detect historic monasteries" },
{ "key": "ruins", "value": "round_tower", "description": "Detect ruined round towers" },
{ "key": "ruins", "value": "tower", "description": "Detect ruined towers" },
{ "key": "ruins", "value": "village", "description": "Detect ruined villages" },
{ "key": "ruins", "value": "watermill", "description": "Detect ruined watermills" },
Expand Down

0 comments on commit 8188e0a

Please sign in to comment.