Skip to content

Commit 9b3bfaf

Browse files
[Innawood] Add shallow ore veins (#82965)
* Initial commit * Add overmap_terrain * Add mapgen palette * Mapgen palette adjustments * Use existing terrain definitions instead of inventing new ones * Add vein mapgen * Fix lack of rotation * Chance for rubble above ground * Add looks_like for ore terrain * Fix placement of rubble * Add separate z2 and z3 veins * Add chance of multi-level vein, fix hematite * Move file to allow the game to read it
1 parent 6f096ee commit 9b3bfaf

File tree

5 files changed

+315
-0
lines changed

5 files changed

+315
-0
lines changed

data/mods/innawood/mining/furniture_and_terrain/veins.json renamed to data/mods/innawood/furniture_and_terrain/ore_veins.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
{
1515
"type": "terrain",
1616
"id": "t_rock_coal",
17+
"looks_like": "t_rockyobstacle",
1718
"name": "bituminous coal",
1819
"description": "A vein of soft coal.",
1920
"symbol": "#",
@@ -35,6 +36,7 @@
3536
{
3637
"type": "terrain",
3738
"id": "t_rock_halite",
39+
"looks_like": "t_rock_smooth",
3840
"name": "halite",
3941
"description": "A vein of salt.",
4042
"symbol": "#",
@@ -98,6 +100,7 @@
98100
{
99101
"type": "terrain",
100102
"id": "t_rock_copper",
103+
"looks_like": "t_rock_green",
101104
"name": "native copper",
102105
"description": "A vein of copper.",
103106
"symbol": "#",
@@ -182,6 +185,7 @@
182185
{
183186
"type": "terrain",
184187
"id": "t_rock_cassiterite",
188+
"looks_like": "t_rock_wall",
185189
"name": "cassiterite",
186190
"description": "A deposit of cassiterite.",
187191
"symbol": "#",
@@ -203,6 +207,7 @@
203207
{
204208
"type": "terrain",
205209
"id": "t_rock_galena",
210+
"looks_like": "t_rock_red",
206211
"name": "galena",
207212
"description": "A deposit of galena.",
208213
"symbol": "#",
@@ -224,6 +229,7 @@
224229
{
225230
"type": "terrain",
226231
"id": "t_rock_hematite",
232+
"looks_like": "t_rock_red",
227233
"name": "hematite",
228234
"description": "A deposit of hematite.",
229235
"symbol": "#",
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
[
2+
{
3+
"type": "mapgen",
4+
"om_terrain": [ "innawood_ore_vein_surface_indicator" ],
5+
"object": {
6+
"rows": [
7+
" ",
8+
" ",
9+
" ",
10+
" ",
11+
" ",
12+
" ",
13+
" ",
14+
" ........ ",
15+
" .......... ",
16+
" ....|||.... ",
17+
" ....|||||..... ",
18+
" ....||RRR||.... ",
19+
" ...||RRRR|||... ",
20+
" ...|||RRRR||... ",
21+
" ....||RRR||.... ",
22+
" ...||||||.... ",
23+
" ....|||.... ",
24+
" ......... ",
25+
" ....... ",
26+
" ",
27+
" ",
28+
" ",
29+
" ",
30+
" "
31+
],
32+
"palettes": [ "innawood_ore_vein" ],
33+
"terrain": {
34+
" ": [ [ "t_grass", 10 ], [ "t_dirt", 1 ] ],
35+
"|": [ [ "t_dirt", 10 ], [ "t_rock_floor", 1 ] ],
36+
"R": "t_rock_floor",
37+
".": [ [ "t_grass", 3 ], [ "t_dirt", 10 ] ]
38+
},
39+
"furniture": { "R": [ [ "f_rubble_rock", 1 ], [ "f_null", 1 ] ], "|": [ [ "f_rubble_rock", 1 ], [ "f_null", 5 ] ] }
40+
}
41+
},
42+
{
43+
"type": "mapgen",
44+
"om_terrain": [ "innawood_ore_vein_subsurface" ],
45+
"object": {
46+
"rows": [
47+
" ",
48+
" ",
49+
" ",
50+
" ",
51+
" ",
52+
" ",
53+
" ",
54+
" ........ ",
55+
" .......... ",
56+
" ....|||.... ",
57+
" ....|||||..... ",
58+
" ....||RRR||.... ",
59+
" ...||RRRR|||... ",
60+
" ...|||RRRR||... ",
61+
" ....||RRR||.... ",
62+
" ...||||||.... ",
63+
" ....|||.... ",
64+
" ......... ",
65+
" ....... ",
66+
" ",
67+
" ",
68+
" ",
69+
" ",
70+
" "
71+
],
72+
"palettes": [ "innawood_ore_vein" ],
73+
"terrain": { " ": "t_soil", "|": "t_rock", "R": "t_rock", ".": "t_rock" }
74+
}
75+
},
76+
{
77+
"type": "mapgen",
78+
"om_terrain": [
79+
[
80+
"innawood_ore_vein_surface_z2_left_side",
81+
"innawood_ore_vein_surface_z2_center",
82+
"innawood_ore_vein_surface_z2_right_side"
83+
]
84+
],
85+
"object": {
86+
"rows": [
87+
" ",
88+
" ",
89+
" ",
90+
" ",
91+
" ",
92+
" ",
93+
" ....... ",
94+
" .......................... ",
95+
" ..++++.............................. ",
96+
" ...++++++++++++++++++++++++++++....... ",
97+
" ....+++++++++++++++++++++++++++++++.... ",
98+
" ...+++++++++++++++++++++++++++++++++... ",
99+
" .....+++++++++++++++++++++++++++++++.. ",
100+
" ........+++++++++++++++++++++++... ",
101+
" ............................ ",
102+
" ..................... ",
103+
" ....... ",
104+
" ",
105+
" ",
106+
" ",
107+
" ",
108+
" ",
109+
" ",
110+
" "
111+
],
112+
"palettes": [ "innawood_ore_vein" ]
113+
}
114+
},
115+
{
116+
"type": "mapgen",
117+
"om_terrain": [
118+
[
119+
"innawood_ore_vein_surface_z3_left_side",
120+
"innawood_ore_vein_surface_z3_center",
121+
"innawood_ore_vein_surface_z3_right_side"
122+
]
123+
],
124+
"object": {
125+
"rows": [
126+
" ",
127+
" ",
128+
" ",
129+
" ",
130+
" ",
131+
" ........... ",
132+
" .................................. ",
133+
" ........................................... ",
134+
" ...+++++++...................................... ",
135+
" ....++++++++++++++++++++++++++++++++++++++............ ",
136+
" ....++++++++++++++++++++++++++++++++++++++++++........ ",
137+
" ....++++++++++++++++++++++++++++++++++++++++++++....... ",
138+
" .....++++++++++++++++++++++++++++++++++++++++++++..... ",
139+
" ...........+++++++++++++++++++++++++++++++++++++.... ",
140+
" .........................................+++++.... ",
141+
" ........................................... ",
142+
" ................................. ",
143+
" ........ ",
144+
" ",
145+
" ",
146+
" ",
147+
" ",
148+
" ",
149+
" "
150+
],
151+
"palettes": [ "innawood_ore_vein" ]
152+
}
153+
}
154+
]
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[
2+
{
3+
"type": "palette",
4+
"id": "innawood_ore_vein",
5+
"parameters": {
6+
"ore_type": {
7+
"type": "palette_id",
8+
"scope": "overmap_special",
9+
"default": {
10+
"distribution": [
11+
[ "innawood_ore_vein_coal", 3 ],
12+
[ "innawood_ore_vein_salt", 10 ],
13+
[ "innawood_ore_vein_brimstone", 10 ],
14+
[ "innawood_ore_vein_copper", 5 ],
15+
[ "innawood_ore_vein_cassiterite", 1 ],
16+
[ "innawood_ore_vein_iron_galena", 15 ],
17+
[ "innawood_ore_vein_iron_hematite", 15 ]
18+
]
19+
}
20+
}
21+
},
22+
"palettes": [ { "param": "ore_type" } ]
23+
},
24+
{
25+
"type": "palette",
26+
"id": "innawood_ore_vein_coal",
27+
"terrain": { "+": "t_rock_coal", ".": [ [ "t_rock_coal", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
28+
},
29+
{
30+
"type": "palette",
31+
"id": "innawood_ore_vein_salt",
32+
"terrain": { "+": "t_rock_halite", ".": [ [ "t_rock_halite", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
33+
},
34+
{
35+
"type": "palette",
36+
"id": "innawood_ore_vein_brimstone",
37+
"terrain": { "+": "t_rock_brimstone", ".": [ [ "t_rock_brimstone", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
38+
},
39+
{
40+
"type": "palette",
41+
"id": "innawood_ore_vein_copper",
42+
"terrain": { "+": "t_rock_copper", ".": [ [ "t_rock_copper", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
43+
},
44+
{
45+
"type": "palette",
46+
"id": "innawood_ore_vein_cassiterite",
47+
"terrain": { "+": "t_rock_cassiterite", ".": [ [ "t_rock_cassiterite", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
48+
},
49+
{
50+
"type": "palette",
51+
"id": "innawood_ore_vein_iron_galena",
52+
"terrain": { "+": "t_rock_galena", ".": [ [ "t_rock_galena", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
53+
},
54+
{
55+
"type": "palette",
56+
"id": "innawood_ore_vein_iron_hematite",
57+
"terrain": { "+": "t_rock_hematite", ".": [ [ "t_rock_hematite", 2 ], [ "t_rock", 1 ] ], " ": "t_rock" }
58+
}
59+
]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[
2+
{
3+
"type": "overmap_terrain",
4+
"id": "innawood_ore_vein_surface_indicator",
5+
"name": "rocky patch",
6+
"looks_like": "field",
7+
"sym": ".",
8+
"color": "brown",
9+
"see_cost": "none",
10+
"vision_levels": "blends_till_details"
11+
},
12+
{
13+
"type": "overmap_terrain",
14+
"id": "innawood_ore_vein_subsurface",
15+
"vision_levels": "always_full",
16+
"name": "subsurface rock",
17+
"sym": "%",
18+
"color": "dark_gray",
19+
"looks_like": "empty_rock",
20+
"see_cost": "opaque",
21+
"travel_cost_type": "basement"
22+
},
23+
{
24+
"type": "overmap_terrain",
25+
"id": [
26+
"innawood_ore_vein_surface_z2_left_side",
27+
"innawood_ore_vein_surface_z2_center",
28+
"innawood_ore_vein_surface_z2_right_side",
29+
"innawood_ore_vein_surface_z3_left_side",
30+
"innawood_ore_vein_surface_z3_center",
31+
"innawood_ore_vein_surface_z3_right_side"
32+
],
33+
"vision_levels": "always_full",
34+
"name": "ore vein",
35+
"sym": "%",
36+
"color": "dark_gray",
37+
"looks_like": "empty_rock",
38+
"see_cost": "opaque",
39+
"travel_cost_type": "basement"
40+
}
41+
]
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[
2+
{
3+
"type": "overmap_special",
4+
"id": "innawood_ore_vein_shallow_z2",
5+
"overmaps": [
6+
{ "point": [ 0, 0, 0 ], "overmap": "innawood_ore_vein_surface_indicator_north" },
7+
{ "point": [ 0, 0, -1 ], "overmap": "innawood_ore_vein_subsurface_north" },
8+
{ "point": [ -1, 0, -2 ], "overmap": "innawood_ore_vein_surface_z2_left_side_north" },
9+
{ "point": [ 0, 0, -2 ], "overmap": "innawood_ore_vein_surface_z2_center_north" },
10+
{ "point": [ 1, 0, -2 ], "overmap": "innawood_ore_vein_surface_z2_right_side_north" }
11+
],
12+
"locations": [ "wilderness" ],
13+
"city_distance": [ 20, -1 ],
14+
"city_sizes": [ 0, 13 ],
15+
"occurrences": [ 0, 5 ]
16+
},
17+
{
18+
"type": "overmap_special",
19+
"id": "innawood_ore_vein_shallow_z3",
20+
"overmaps": [
21+
{ "point": [ 0, 0, 0 ], "overmap": "innawood_ore_vein_surface_indicator_north" },
22+
{ "point": [ 0, 0, -1 ], "overmap": "innawood_ore_vein_subsurface_north" },
23+
{ "point": [ 0, 0, -2 ], "overmap": "special_rock" },
24+
{ "point": [ -1, 0, -3 ], "overmap": "innawood_ore_vein_surface_z3_left_side_north" },
25+
{ "point": [ 0, 0, -3 ], "overmap": "innawood_ore_vein_surface_z3_center_north" },
26+
{ "point": [ 1, 0, -3 ], "overmap": "innawood_ore_vein_surface_z3_right_side_north" }
27+
],
28+
"locations": [ "wilderness" ],
29+
"city_distance": [ 20, -1 ],
30+
"city_sizes": [ 0, 13 ],
31+
"occurrences": [ 3, 10 ]
32+
},
33+
{
34+
"type": "overmap_special",
35+
"id": "innawood_ore_vein_shallow_larger",
36+
"overmaps": [
37+
{ "point": [ 0, 0, 0 ], "overmap": "innawood_ore_vein_surface_indicator_north" },
38+
{ "point": [ 0, 0, -1 ], "overmap": "innawood_ore_vein_subsurface_north" },
39+
{ "point": [ -1, 0, -2 ], "overmap": "innawood_ore_vein_surface_z2_left_side_north" },
40+
{ "point": [ 0, 0, -2 ], "overmap": "innawood_ore_vein_surface_z2_center_north" },
41+
{ "point": [ 1, 0, -2 ], "overmap": "innawood_ore_vein_surface_z2_right_side_north" },
42+
{ "point": [ -1, 0, -3 ], "overmap": "innawood_ore_vein_surface_z3_left_side_north" },
43+
{ "point": [ 0, 0, -3 ], "overmap": "innawood_ore_vein_surface_z3_center_north" },
44+
{ "point": [ 1, 0, -3 ], "overmap": "innawood_ore_vein_surface_z3_right_side_north" },
45+
{ "point": [ -1, 0, -4 ], "overmap": "innawood_ore_vein_surface_z2_left_side_north" },
46+
{ "point": [ 0, 0, -4 ], "overmap": "innawood_ore_vein_surface_z2_center_north" },
47+
{ "point": [ 1, 0, -4 ], "overmap": "innawood_ore_vein_surface_z2_right_side_north" }
48+
],
49+
"locations": [ "wilderness" ],
50+
"city_distance": [ 20, -1 ],
51+
"city_sizes": [ 0, 13 ],
52+
"occurrences": [ 50, 100 ],
53+
"flags": [ "OVERMAP_UNIQUE" ]
54+
}
55+
]

0 commit comments

Comments
 (0)