Skip to content

Commit

Permalink
Merge pull request #5174 from NicksWorld/feat/additional_suspend_reasons
Browse files Browse the repository at this point in the history
Additional Suspendmanager Reason Descriptions
  • Loading branch information
myk002 authored Jan 8, 2025
2 parents 9dd1ce7 + cfa5b44 commit 7dc5eea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Template for new versions:

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

## Documentation
- Added example code for creating plugin RPC endpoints that can be used to extend the DFHack API
Expand Down
12 changes: 8 additions & 4 deletions plugins/suspendmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,18 @@ inline bool isExternalReason(Reason reason) {

static string reasonToString(Reason reason) {
switch (reason) {
case Reason::DEADEND:
return "Blocks another build job";
case Reason::UNDER_WATER:
return "Jobsite is submerged";
case Reason::BUILDINGPLAN:
return "Managed by buildingplan";
case Reason::RISK_BLOCKING:
return "May block another build job";
case Reason::UNSUPPORTED:
return "Would collapse immediately";
case Reason::ERASE_DESIGNATION:
return "Waiting for carve/smooth/engrave";
case Reason::DEADEND:
return "Blocks another build job";
case Reason::UNSUPPORTED:
return "Would collapse immediately";
case Reason::ITEM_IN_JOB:
return "Blocked by an unmovable item";
default:
Expand Down

0 comments on commit 7dc5eea

Please sign in to comment.