Closed OskarPedersen closed 9 months ago
I'm taking a look, I think it's actually very close to being original behavior, which apparently is "if yardmap contains a G, and no G is located on a geo, it's an invalid placement." ProTA mod does depend on this behavior - it uses geo yardmaps
oooo oGGo oGGo oooo
to force only one geothermal generator per vent.
For reference on yardmaps: https://www.tauniverse.com/forum/showthread.php?t=42189
I'm taking a look, I think it's actually very close to being original behavior, which apparently is "if yardmap contains a G, and no G is located on a geo, it's an invalid placement." ProTA mod does depend on this behavior - it uses geo yardmaps
oooo oGGo oGGo oooo
to force only one geothermal generator per vent.
Thanks, that's a good example! I'll update this PR with the full geo yardmap support. Marking it as draft until I've done that.
I'm taking a look, I think it's actually very close to being original behavior, which apparently is "if yardmap contains a G, and no G is located on a geo, it's an invalid placement." ProTA mod does depend on this behavior - it uses geo yardmaps
oooo oGGo oGGo oooo
to force only one geothermal generator per vent.
@KevinHake I updated the PR now to fully support that behavior.
This PR makes it so that units with
G
in their yard map only can be built on geothermal spots on the map.https://github.com/MHeasell/rwe/assets/14198435/4d947b5c-2aae-4188-af39-cb3d0b01241f
The two geothermal power plants in TA have
YardMap=GGGGGGGGGGGGGGGG;
as their yard map. They can be built as long as any part of them intersect with a feature withgeothermal=1;
. In TA if their yard map is changed to for exampleYardMap=Gooooooooooooooo;
their top left corner needs to be on a geothermal vent. And in TA withYardMap=GooooooooooooooG;
as a yard map either their top left or bottom right corner needs to be on a thermal vent. Edit: This behavior should now be fully replicated in this PR, allowing for example the ProTA geothermal to work properly,