Mindustry icon indicating copy to clipboard operation
Mindustry copied to clipboard

Add rule to control whether units can automatically rebuild destroyed blocks

Open phinner opened this issue 2 years ago • 2 comments

This rule is quite useful. For players that want extra difficulty or specific Mindustry servers like lobbies or in my case a schematic showcase server (Clearing build areas without units rebuilding it).

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • [x] I have read the contribution guidelines.
  • [x] I have ensured that my code compiles, if applicable.
  • [x] I have ensured that any new features in this PR function correctly in-game, if applicable.

phinner avatar Aug 28 '22 19:08 phinner

The name is very misleading, it implies that it controls unit AI when the reality is that it controls whether "ghost" blocks appear at all.

Anuken avatar Aug 28 '22 20:08 Anuken

The name is very misleading, it implies that it controls unit AI

I see. Hmm, now that I think about it, there is also the build tower affected by this.

What about renaming to rebuildDestroyedBlocks. It has the advantage to not specifically include units thus not directly implying that their AI is controlled.

Honestly, I don't have other ideas apart that.

phinner avatar Aug 29 '22 00:08 phinner

Renamed to "ghostBlocks", see commit.

Anuken avatar Oct 01 '22 20:10 Anuken

Many thanks

phinner avatar Oct 02 '22 07:10 phinner