Topic: minor bug with deleting
Posted at: 2024-01-16, 12:50
IOW, hierarchy is mountain beats all, water (terrain) beats rest.
Or should it be the other way round between mining and fish? Or according to the Z-layering of terrains?
I haven't looked at how default resources are handled, but this should apply to them as well.
But what do we do when we load old maps where this is violated? Should this only apply to the editor resources tool or be enforced by the game logic?
Posted at: 2024-01-16, 17:10
Oh yes, i knew i missed one rule
The first yes, the latter no: Placing resource water on coast does not beat fish.
Probably better, because a mine is more often build in the middle of a mountain.
You mean the dither layers? No, they are only used for dithering one terrain over the other. One can't make a rule for resources out of them, imho.
Every time the question about default resources AFAIK they aren't involved if one places e.g. water resources. Not sure though. When placing a terrain i do not know how the containing default resource of fish is handled internally. Is it placed on a node so a fisher can fish them? Or remain the contained fish inside the terrain (not a node) and there is some extra logic which makes it possible a fisher can fish not only on nodes but also on fields? Big questions, which need answers, imho.
I think such rules don't have any effect on old maps. Such rules should only apply if one places a resource in the editor. So if an old map has water at the coast, there will be just no fish there. The map didn't changed and is playable in the same way as before implementing such rules.
Fight simulator for Widelands: