Skip to content

Commit 7dc5eea

Browse files
authored
Merge pull request #5174 from NicksWorld/feat/additional_suspend_reasons
Additional Suspendmanager Reason Descriptions
2 parents 9dd1ce7 + cfa5b44 commit 7dc5eea

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Template for new versions:
6464

6565
## Misc Improvements
6666
- `strangemood`: add ability to choose Stone Cutting and Stone Carving as the mood skill
67+
- `suspendmanager`: add more specific messages for submerged jobsites and those managed by `buildingplan`
6768

6869
## Documentation
6970
- Added example code for creating plugin RPC endpoints that can be used to extend the DFHack API

plugins/suspendmanager.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,18 @@ inline bool isExternalReason(Reason reason) {
8787

8888
static string reasonToString(Reason reason) {
8989
switch (reason) {
90-
case Reason::DEADEND:
91-
return "Blocks another build job";
90+
case Reason::UNDER_WATER:
91+
return "Jobsite is submerged";
92+
case Reason::BUILDINGPLAN:
93+
return "Managed by buildingplan";
9294
case Reason::RISK_BLOCKING:
9395
return "May block another build job";
94-
case Reason::UNSUPPORTED:
95-
return "Would collapse immediately";
9696
case Reason::ERASE_DESIGNATION:
9797
return "Waiting for carve/smooth/engrave";
98+
case Reason::DEADEND:
99+
return "Blocks another build job";
100+
case Reason::UNSUPPORTED:
101+
return "Would collapse immediately";
98102
case Reason::ITEM_IN_JOB:
99103
return "Blocked by an unmovable item";
100104
default:

0 commit comments

Comments
 (0)