Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subway maps #37540

Merged
merged 11 commits into from
Mar 6, 2020
15 changes: 15 additions & 0 deletions data/json/items/book/maps.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@
"message": "You add roads and points of interest to your map."
}
},
{
"id": "subwaymap",
"copy-from": "abstractmap",
"type": "GENERIC",
"name": "subway maintenance map",
"looks_like": "roadmap",
"description": "This is a map of subway tunnels formerly used by public maintenance workers. Using it will add subway lines and underground stations to your map.",
"color": "light_blue",
"use_action": {
"type": "reveal_map",
"radius": 180,
"terrain": [ "subway", "sub_station" ],
Copy link
Contributor

@ZhilkinSerg ZhilkinSerg Jan 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use different overmap terrain match type if you need it, e.g.:

Suggested change
"terrain": [ "subway", "sub_station" ],
"terrain": [ { "om_terrain": "subway", "om_terrain_match_type": "TYPE" }, "sub_station" ],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks—I did something like this in previous revisions, but was happier with the “contains” matching I got from the plain string.

"message": "You add subway lines and underground stations to your map."
}
},
{
"id": "trailmap",
"copy-from": "abstractmap",
Expand Down
3 changes: 2 additions & 1 deletion data/json/mapgen/sub_station.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
],
"palettes": [ "subway_underground" ],
"vendingmachines": { "J": { "item_group": "vending_drink" }, "C": { "item_group": "vending_food" } },
"place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 6, 20 ], "y": [ 4, 9 ], "repeat": [ 5, 9 ] } ]
"place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 6, 20 ], "y": [ 4, 9 ], "repeat": [ 5, 9 ] } ],
"place_item": [ { "item": "subwaymap", "x": 1, "y": [ 6, 7 ], "chance": 75 } ]
}
},
{
Expand Down