capturetheflag icon indicating copy to clipboard operation
capturetheflag copied to clipboard

Make ores and their places dynamic per match

Open farooqkz opened this issue 2 years ago • 6 comments

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.

farooqkz avatar Jun 30 '23 12:06 farooqkz

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

src4026 avatar Jun 30 '23 13:06 src4026

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.

farooqkz avatar Jun 30 '23 13:06 farooqkz

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 :)

src4026 avatar Jun 30 '23 16:06 src4026

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

LoneWolfHT avatar Jun 30 '23 17:06 LoneWolfHT

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 :)

farooqkz avatar Jun 30 '23 17:06 farooqkz

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

LoneWolfHT avatar Jul 01 '23 22:07 LoneWolfHT