Skip to content

Commit 817a96a

Browse files
committed
designed flag is gone
also unsuspend before scanning for buildings
1 parent b07e018 commit 817a96a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build-now.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
local argparse = require('argparse')
44
local gui = require('gui')
5+
local suspendmanager = require('plugins.suspendmanager')
56
local utils = require('utils')
67

78
local ok, buildingplan = pcall(require, 'plugins.buildingplan')
@@ -283,7 +284,6 @@ local function build_building(bld)
283284
-- unlike "natural" builds, we don't set the architect or builder unit
284285
-- id. however, this doesn't seem to have any in-game effect.
285286
local design = bld.design
286-
design.flags.designed = true
287287
design.flags.built = true
288288
design.hitpoints = 80640
289289
design.max_hitpoints = 80640
@@ -309,6 +309,10 @@ if buildingplan then
309309
buildingplan.doCycle()
310310
end
311311

312+
if suspendmanager.isEnabled() then
313+
dfhack.run_command('unsuspend')
314+
end
315+
312316
local num_jobs = 0
313317
for _,job in ipairs(get_jobs(opts)) do
314318
local bld = dfhack.job.getHolder(job)

changelog.txt

+2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ Template for new versions:
3434
- `full-heal`: fix ``-r --all_citizens`` option combination not resurrecting citizens
3535
- `open-legends`: don't intercept text bound for vanilla search widgets
3636
- `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
3738

3839
## Misc Improvements
40+
- `build-now`: if `suspendmanager` is running, run an unsuspend cycle immediately before scanning for buildings to build
3941

4042
## Removed
4143

0 commit comments

Comments
 (0)