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

Added new underground stone types #150

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LordDeatHunter
Copy link
Contributor

Added granite, diorite and andesite generation.

@Unarelith Unarelith force-pushed the master branch 4 times, most recently from 997871c to 5db8341 Compare July 12, 2020 21:46
Copy link
Owner

@Unarelith Unarelith left a 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 store underground_blocks entries
    • It should have its own file: source/common/world/UndergroundBlockGenDef.hpp
    • It should have the following attributes: stringID, probability, gen_type
  • 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 = {
Copy link
Owner

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 = {
},
Copy link
Owner

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 = {
},
Copy link
Owner

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
}


Copy link
Owner

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; }
Copy link
Owner

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;
Copy link
Owner

Choose a reason for hiding this comment

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

m_undergroundBlocks

@Unarelith Unarelith marked this pull request as draft July 18, 2020 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants