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

Make ores and their places dynamic per match #1165

Open
farooqkz opened this issue Jun 30, 2023 · 6 comments
Open

Make ores and their places dynamic per match #1165

farooqkz opened this issue Jun 30, 2023 · 6 comments

Comments

@farooqkz
Copy link
Contributor

Currently in every single match, location of ores is the same for each map and players simply know where to look for them. I think we can make their location dynamic, that is set per match at the beginning of it. Thus, players who are already familiar with the map, won't have any advantage over other players. Also this adds more adventure to the game.

Regarding implementation, I suggest iterating over all destructible stone blocks on the map and using some simple heuristic and a probability, decide to convert the stone to an ore, or not.

@src4026
Copy link
Contributor

src4026 commented Jun 30, 2023

Would it allow for regions too, similar to how chest zones work?

@farooqkz
Copy link
Contributor Author

Would it allow for regions too, similar to how chest zones work?

Yeah the implementation would allow that. But we'll need a new parameter in map.conf. And I want LW's comment on this as well.

@src4026
Copy link
Contributor

src4026 commented Jun 30, 2023

Would it allow for regions too, similar to how chest zones work?

Yeah the implementation would allow that. But we'll need a new parameter in map.conf. And I want LW's comment on this as well.

Indeed. I was just asking :)

@LoneWolfHT
Copy link
Member

You could get a list of all ore nodes on the map and randomly swap them around. I think ore clusters would have to be sacrificed to do this simply anyway

@farooqkz
Copy link
Contributor Author

You could get a list of all ore nodes on the map and randomly swap them around. I think ore clusters would have to be sacrificed to do this simply anyway

We can do it NOT the simplest way :)

@LoneWolfHT
Copy link
Member

You can still start off with what I suggest, then sort all the node positions into groups based on how close they are to each other. Would need to double-check how it affects The Wall map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants