File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
local argparse = require (' argparse' )
4
4
local gui = require (' gui' )
5
+ local suspendmanager = require (' plugins.suspendmanager' )
5
6
local utils = require (' utils' )
6
7
7
8
local ok , buildingplan = pcall (require , ' plugins.buildingplan' )
@@ -283,7 +284,6 @@ local function build_building(bld)
283
284
-- unlike "natural" builds, we don't set the architect or builder unit
284
285
-- id. however, this doesn't seem to have any in-game effect.
285
286
local design = bld .design
286
- design .flags .designed = true
287
287
design .flags .built = true
288
288
design .hitpoints = 80640
289
289
design .max_hitpoints = 80640
@@ -309,6 +309,10 @@ if buildingplan then
309
309
buildingplan .doCycle ()
310
310
end
311
311
312
+ if suspendmanager .isEnabled () then
313
+ dfhack .run_command (' unsuspend' )
314
+ end
315
+
312
316
local num_jobs = 0
313
317
for _ ,job in ipairs (get_jobs (opts )) do
314
318
local bld = dfhack .job .getHolder (job )
Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ Template for new versions:
34
34
- `full-heal`: fix ``-r --all_citizens`` option combination not resurrecting citizens
35
35
- `open-legends`: don't intercept text bound for vanilla search widgets
36
36
- `gui/unit-info-viewer`: correctly display skill levels when rust is involved
37
+ - `build-now`: fix error when building buildings that (in previous DF versions) required the architecture labor
37
38
38
39
## Misc Improvements
40
+ - `build-now`: if `suspendmanager` is running, run an unsuspend cycle immediately before scanning for buildings to build
39
41
40
42
## Removed
41
43
You can’t perform that action at this time.
0 commit comments