mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow multiple 'wherein' nodes in oredef
This commit is contained in:
parent
06cdce1e12
commit
0b77588e87
3 changed files with 31 additions and 17 deletions
|
@ -149,9 +149,9 @@ enum OreType {
|
|||
class Ore {
|
||||
public:
|
||||
std::string ore_name;
|
||||
std::string wherein_name;
|
||||
std::vector<std::string> wherein_names;
|
||||
content_t ore;
|
||||
content_t wherein; // the node to be replaced
|
||||
std::vector<content_t> wherein; // the node to be replaced
|
||||
u32 clust_scarcity; // ore cluster has a 1-in-clust_scarcity chance of appearing at a node
|
||||
s16 clust_num_ores; // how many ore nodes are in a chunk
|
||||
s16 clust_size; // how large (in nodes) a chunk of ore is
|
||||
|
@ -165,7 +165,6 @@ public:
|
|||
|
||||
Ore() {
|
||||
ore = CONTENT_IGNORE;
|
||||
wherein = CONTENT_IGNORE;
|
||||
np = NULL;
|
||||
noise = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue