Skip to content

Commit a05c2ca

Browse files
authored
Merge branch 'master' into store-owned
2 parents 9def711 + 17a3354 commit a05c2ca

File tree

9 files changed

+1210
-54
lines changed

9 files changed

+1210
-54
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
repos:
55
# shared across repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
7+
rev: v6.0.0
88
hooks:
99
- id: check-added-large-files
1010
- id: check-case-conflict
@@ -20,7 +20,7 @@ repos:
2020
args: ['--fix=lf']
2121
- id: trailing-whitespace
2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.33.2
23+
rev: 0.33.3
2424
hooks:
2525
- id: check-github-workflows
2626
- repo: https://github.com/Lucas-C/pre-commit-hooks
@@ -34,6 +34,6 @@ repos:
3434
- json
3535
# specific to scripts:
3636
- repo: https://github.com/pre-commit/pre-commit-hooks
37-
rev: v5.0.0
37+
rev: v6.0.0
3838
hooks:
3939
- id: forbid-new-submodules

docs/fix/archery-practice.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
fix/archery-practice
2+
====================
3+
4+
.. dfhack-tool::
5+
:summary: Consolidate and remove extra ammo items to fix 'Soldier (no item)' issue.
6+
:tags: fort bugfix items
7+
8+
Combine ammo items inside quivers that are assigned for training to allow
9+
archery practice to take place.
10+
11+
Usage
12+
-----
13+
14+
``fix/archery-practice``
15+
Combine ammo items inside quivers that are assigned for training.
16+
17+
``fix/archery-practice -q``, ``fix/archery-practice --quiet``
18+
Combine ammo items inside quivers that are assigned for training.
19+
Do not print to console.
20+
21+
This tool will combine ammo items inside the quivers of units in squads
22+
that are currently set to train with the objective of ensuring that each
23+
unit hold only one combined stack of ammo item assigned for training in
24+
their quiver. Any ammo items left over after the combining operation
25+
will be dropped on the ground.
26+
27+
The 'Soldier (no item)' issue
28+
-----------------------------
29+
30+
Due to a bug in the game, a unit that is scheduled to train will not be
31+
able to practice archery at the archery range when their quiver contains
32+
more than one stack of ammo item that is assigned to them for training.
33+
This is indicated on the unit by the 'Soldier (no item)' status.
34+
35+
The issue occurs when the game assigns an ammo item with a stack size of
36+
less than 25 to the unit, prompting the game to assign additional stacks
37+
of ammo items to make up for the deficit.
38+
39+
The workaround to this issue is to ensure the squad ammo assignments
40+
for use in training contain as few ammo items with stack sizes smaller
41+
than 25 as possible. Since training bolts are often made from wood or
42+
bone which are created in stacks of 5, the use of the ``combine`` tool on
43+
ammo stockpiles is recommended to reduce the frequency of this issue
44+
occurring, while "incomplete" stacks of ammo items that are already
45+
picked up by training units can be managed by this tool.
46+
47+
Any other stacks of ammo items inside the quiver that are not assigned
48+
for training will not affect the unit's ability to practice archery.
49+
50+
Limitations
51+
-----------
52+
53+
Due to the very limited number of ammo items a unit's quiver might contain,
54+
the material, quality, and maker of the items are ignored when performing
55+
the combining operation on them. Only ammo items assigned for training will
56+
be combined, while ammo items inside the quiver that are assigned for combat
57+
will not be affected.
58+
59+
Although this tool will consolidate ammo items inside quivers and discard
60+
any surplus items, the training units may not immediately go for archery
61+
practice, especially if they are still trying to collect more ammo items
62+
that the game have assigned to them.

docs/gui/adv-finder.rst

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
gui/adv-finder
2+
==============
3+
4+
.. dfhack-tool::
5+
:summary: Find and track historical figures and artifacts
6+
:tags: adventure armok inspection items units
7+
8+
A real-time tracker for historical figures and artifacts. Select a target by
9+
clicking the settings icon [☼] and selecting an entry from the list in the
10+
relevant tab. The list can be filtered by search string, as well as by
11+
excluding dead figures (displayed in red text). Artifacts can exclude books,
12+
and the "dead" option excludes artifacts held by dead figures (which are
13+
generally unrecoverable). Dismissing the screen (e.g., right-click) will
14+
close the target search window first. A second dismissal will close the
15+
finder window, but target settings will be preserved until the world is
16+
unloaded.
17+
18+
Your coordinates will be kept up to date alongside your target's. There are
19+
two types of coordinates, and they will be displayed as long as they can be
20+
determined.
21+
22+
========== ==========
23+
Coord Type Meaning
24+
========== ==========
25+
Global Distance in map blocks from the world origin (northwest corner).
26+
The adventurer usually moves by 3 blocks during fast travel, but
27+
slows to 1 when the zoomed site map is displayed. Equivalent to
28+
16 local tiles. Always available except for targets with an
29+
indeterminate location.
30+
Local Tile coordinates, available outside of fast travel and sleeping.
31+
Your target's local coordinates are displayed when nearby and
32+
loaded. Local coordinates will remain consistent within a site, but
33+
may jump around in the wilderness as areas of the world are loaded.
34+
========== ==========
35+
36+
For global coordinates, the Z component will only be displayed if it can be
37+
specifically determined by the location type. This represents an underground
38+
layer depth, so the surface is indicated by ``Z0`` and the first cavern layer
39+
is ``Z-1``.
40+
41+
A compass and relative coordinates will be displayed. The relative coordinate
42+
display uses the most precise coordinate type shared between you and your
43+
target.
44+
45+
There are six types of location types displayed for targets:
46+
47+
============= ==========
48+
Location Type Meaning
49+
============= ==========
50+
Nearby The target is loaded into the map area and the local
51+
coordinates will be displayed. If you don't see this when you're
52+
in the correct area and outside fast travel, then the target
53+
isn't loading for some reason and you'll never be able to find
54+
them.
55+
Site The target is located within a site. The text displays
56+
"At <Sitename>" and the global coords will represent the center
57+
of the site if the target doesn't track its own precise
58+
coordinates (e.g., worldgen being vague).
59+
Traveling The target is traveling around the world map like an army.
60+
Wilderness The target is somewhere on the surface not in a site.
61+
Underground The target is somewhere in the caverns not in a site.
62+
None The target's location isn't defined in the game world.
63+
Maybe they're a deity. Maybe they got dropped off in limbo
64+
after their army disbanded. If they're dead, the location
65+
wasn't recorded properly in history. The text displays "Missing"
66+
if they're dead or can die of old age, else "Transcendent"
67+
because nothing can touch them.
68+
============= ==========
69+
70+
Dead figures generally can't be encountered at all, and they take their items
71+
with them if they weren't separated properly by worldgen. The coord given is
72+
usually a death or abstract burial location, but the corpse isn't guaranteed to
73+
exist. Generally, wilderness and underground locations only have coords if you
74+
left something there in adventure mode. Anything lost there during worldgen or a
75+
fort mode mission likely can't be located. Anything in a site is usually a safe
76+
bet, but sometimes items won't load. (Fort missions can be used to acquire these
77+
for later retrieval, however.) Traveling targets are always valid.
78+
79+
Usage
80+
-----
81+
82+
::
83+
84+
gui/adv-finder [<options>]
85+
86+
Examples
87+
--------
88+
89+
``gui/adv-finder``
90+
Open the finder window (unless already open). Target will be blank on first
91+
use, but maintained on future invocations.
92+
``gui/adv-finder --histfig 1234``
93+
Track the historical figure with ID #1234. Finder will be opened if not
94+
already.
95+
``gui/adv-finder -h -1 -a -1``
96+
Clear any target so it's just the adventurer. Finder will be opened if not
97+
already.
98+
``gui/adv-finder --debug``
99+
Display selected target IDs in the finder window title bar. Finder will be
100+
opened if not already. This setting isn't saved, so it can be disabled by
101+
invoking ``gui/adv-finder`` again without the option.
102+
103+
Options
104+
-------
105+
106+
``-h``, ``--histfig <id>``
107+
Set the target to the historical figure with the given ID.
108+
``-a``, ``--artifact <id>``
109+
Set the target to the artifact record with the given ID. (Not an item ID!)
110+
``-d``, ``--debug``
111+
Display selected target IDs in the finder window title bar. Doesn't persist
112+
between invocations.

docs/gui/aquifer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tiles or warm tiles). Note that "just damp" tiles will still be highlighted if
1212
they are otherwise already visible.
1313

1414
You can draw boxes around areas of tiles to alter their aquifer properties, or
15-
you can use the :kbd:`Ctrl`:kbd:`A`` shortcut to affect entire layers at a time.
15+
you can use the :kbd:`Ctrl`:kbd:`A` shortcut to affect entire layers at a time.
1616

1717
If you want to see where the aquifer tiles are so you can designate digging,
1818
please run `gui/reveal`. If you only want to see the aquifer tiles and not

0 commit comments

Comments
 (0)