Skip to content

Lava erosion and construction zones have no logic to handle each other #69

@trigger-segfault

Description

@trigger-segfault

Describe the issue

  1. Lava erosion can spread on to tiles occupied by a construction zone. Until the erosion is complete, you can still select the tile and cancel construction. But once the tile turns into lava, it becomes unselectable. If all solid building tiles are turned into lava then it becomes impossible to cancel construction.

  2. Additionally, you can place a building over a tile with erosion in-progress. This can even be a solid building tile or the origin building tile. Once placed, that tile will still use the erosion texture, and will only use the Cancel Construction menu if the tile is a solid building tile.

  3. Lastly, if erosion takes over a construction tile with barriers and then turns into lava, these barriers stay active on the tile and can never be picked up and put away again (outside of mods that provide units with the ability to walk on lava).

Expected behaviour

  1. There are a few ways to handle erosion taking over construction tiles, but there is no programmed intended behaviour for this. A) Cancel construction once erosion spreads onto an occupied tile (path or solid). B) Cancel construction once erosion turns into lava over an occupied tile (path or solid).

  2. Buildings should not be place-able over erosion, just like they can't be placed over rubble.

  3. Construction barriers should be destroyed by lava, just like Energy Crystals and Ore. (This should probably also extend to other place-able objects like Dynamite and Sonic Blasters that are not ticking down).

Steps to reproduce

  1. Start a level with lava erosion like Lake of Fire.
  2. Turn on the cheat to build without paths, and turn off build dependencies.
  3. Summon down rock raiders so that they can place barriers.
  4. Place buildings along the perimeter of lava lakes and wait for lava to erode onto construction tiles.
  5. Find an unused tile with erosion taking place and try to place a building over it.

Additional information

  • Time played this session: 4+ minutes
  • Level: Lake of Fire
  • Game speed: 300% and 0%
  • Graphics fix: dgVoodoo 2.55.4
  • Using mods: None

Screenshots
(Figure A. Erosion taking over an active construction tile. The cancel construction menu is still present)
image

(Figure B. Placing a construction zone over active erosion)
image

(Figure C. Construction barriers staying alive after erosion fully takes over their occupied tile. Damage is even shown when the game speed is set to 0%)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    game logicRelates to how things work and happen in game.original bugThis was an issue in the original game already.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions