modded-factorio / LandfillPainting

Factorio mod Landfill Painting
https://mods.factorio.com/mod/LandfillPainting
MIT License
2 stars 4 forks source link

Refunds all landfill when placed on sand islands. #9

Closed jodokus31 closed 3 years ago

jodokus31 commented 3 years ago

controllable via a hidden setting.

requirements: if it's possible. It should be free to "paint over" existing islands - regardless of the terrain type. Painting one type of landfill over another will still cost. Painting one variation over another variation will still be free. Spawned islands will stay as being sand.

I implemented it with one exception: seablock autoplaced islands are either sand-1 or sand-2 I tried to differentiate autoplaced islands and player placed sand landfill in variations sand-1 and sand-2 (which is only possible if Landfill rotation is enabled), but i didn't found any differences how to detect it. But I guess, its ok to just refund all tiles of type sand-1 or sand-2 no matter if they are autoplaced or played placed.

KiwiHawk commented 3 years ago

Fixed by KiwiHawk/Seablock#127