You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ Template for new versions:
52
52
# Future
53
53
54
54
## New Tools
55
+
- `forceequip`: (reinstated) Forcibly move items into a unit's inventory
55
56
56
57
## New Features
57
58
- `tweak`: ``realistic-melting``: change melting return for inorganic armor parts, shields, weapons, trap components and tools to stop smelters from creating metal, bring melt return for adamantine in line with other metals to ~95% of forging cost. wear reduces melt return by 10% per level
if (targetBodyPart->token.compare(targetBodyPartCode) == 0)
386
386
{
387
387
// It is indeed a match; exit the loop (while leaving the variable populated)
388
-
if (verbose) { out.print("Matching bodypart (%s) found.\n", targetBodyPart->token.c_str()); }
388
+
if (verbose) { INFO(log).print("Matching bodypart (%s) found.\n", targetBodyPart->token.c_str()); }
389
389
break;
390
390
}
391
391
else
392
392
{
393
393
// Not a match; nullify the variable (it will get re-populated on the next pass through the loop)
394
-
if (verbose) { out.printerr("Bodypart \"%s\" does not match \"%s\".\n", targetBodyPart->token.c_str(), targetBodyPartCode.c_str()); }
394
+
if (verbose) { WARN(log).print("Bodypart \"%s\" does not match \"%s\".\n", targetBodyPart->token.c_str(), targetBodyPartCode.c_str()); }
395
395
targetBodyPart = NULL;
396
396
}
397
397
}
398
398
399
399
if (!targetBodyPart)
400
400
{
401
401
// Loop iteration is complete but no match was found.
402
-
out.printerr("The unit does not possess a bodypart of type \"%s\". Please check the spelling or choose a different unit.\n", targetBodyPartCode.c_str());
402
+
WARN(log).print("The unit does not possess a bodypart of type \"%s\". Please check the spelling or choose a different unit.\n", targetBodyPartCode.c_str());
itemsEquipped++; // Track the number of items successfully processed (for feedback purposes)
461
461
}
462
462
}
463
463
}
464
464
465
465
if (itemsFound == 0) {
466
-
out.printerr("No usable items found at the cursor position. Please choose a different location and try again.\n");
466
+
WARN(log).print("No usable items found at the cursor position. Please choose a different location and try again.\n");
467
467
return CR_OK;
468
468
}
469
469
470
470
471
-
if (itemsEquipped == 0 && !verbose) { out.printerr("Some items were found but no equipment changes could be made. Use the /verbose switch to display the reasons for failure.\n"); }
472
-
if (itemsEquipped > 0) { out.print("%d items equipped.\n", itemsEquipped); }
471
+
if (itemsEquipped == 0 && !verbose) { WARN(log).print("Some items were found but no equipment changes could be made. Use the /verbose switch to display the reasons for failure.\n"); }
472
+
if (itemsEquipped > 0) { INFO(log).print("%d items equipped.\n", itemsEquipped); }
473
473
474
474
// Note: we might expect to recalculate the unit's weight at this point, in order to account for the
475
475
// added items. In fact, this recalculation occurs automatically during each dwarf's "turn".
0 commit comments