-
Notifications
You must be signed in to change notification settings - Fork 34
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
Added new underground stone types #150
base: master
Are you sure you want to change the base?
Conversation
997871c
to
5db8341
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can merge this PR if:
- A struct
UndergroundBlockGenDef
is created to storeunderground_blocks
entries- It should have its own file:
source/common/world/UndergroundBlockGenDef.hpp
- It should have the following attributes:
stringID
,probability
,gen_type
- It should have its own file:
- This struct is loaded from Lua
It's not very difficult, I can help for anything if you have questions.
@@ -34,6 +34,12 @@ mod:biome { | |||
precipitation = 0.3 | |||
}, | |||
|
|||
undergroundBiomeBlocks = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be named undeground_blocks
@@ -93,6 +99,9 @@ mod:biome { | |||
temperature = -0.3, | |||
precipitation = -0.7 | |||
}, | |||
|
|||
undergroundBiomeBlocks = { | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the empty table shouldn't be needed
@@ -129,6 +138,9 @@ mod:biome { | |||
precipitation = -1 | |||
}, | |||
|
|||
undergroundBiomeBlocks = { | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the empty table shouldn't be needed
harvest_requirements = 1 | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this empty line
@@ -49,6 +49,7 @@ class Biome : public gk::ISerializable { | |||
void setLabel(const std::string &label) { m_label = label; } | |||
|
|||
const std::vector<double> &getParams() const { return m_params; } | |||
const std::vector<u16> &getUndergroundBiomeBlocks() const { return m_undergroundBiomeBlocks; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undergroundBlocks
@@ -83,6 +85,7 @@ class Biome : public gk::ISerializable { | |||
|
|||
// TODO something to distinguish the worldtype of biome | |||
std::vector<double> m_params; | |||
std::vector<u16> m_undergroundBiomeBlocks; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m_undergroundBlocks
Added granite, diorite and andesite generation.