From a8e4cb173842ea23d631107d804c2568631f4c75 Mon Sep 17 00:00:00 2001 From: Quietust Date: Tue, 4 Nov 2025 15:29:34 -0600 Subject: [PATCH] Update cleanconst to skip reinforced constructions since those are built with 2 items plus reinforcements, and it's unclear whether the game would properly restore those during deconstruction. --- docs/changelog.txt | 1 + plugins/cleanconst.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index 537686fb9a..3f338221a6 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -33,6 +33,7 @@ Template for new versions: ## New Features ## Fixes +- `cleanconst`: do not attempt to clean Reinforced constructions ## Misc Improvements diff --git a/plugins/cleanconst.cpp b/plugins/cleanconst.cpp index b72806cd9b..895f182e76 100644 --- a/plugins/cleanconst.cpp +++ b/plugins/cleanconst.cpp @@ -45,6 +45,10 @@ command_result df_cleanconst(color_ostream &out, vector & parameters) if (cons->flags.bits.no_build_item) continue; + // Skip reinforced constructions as well + if (cons->flags.bits.reinforced) + continue; + // only destroy the item if the construction claims to be made of the exact same thing if (item->getType() != cons->item_type || item->getSubtype() != cons->item_subtype ||