Skip to content

Commit 67e94aa

Browse files
chdocmyk002
andauthored
Stylistic improvements suggested by Myk
Co-authored-by: Myk <myk.taylor@gmail.com>
1 parent 70240fe commit 67e94aa

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

autocheese.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ end
130130
local workshop = findWorkshop()
131131

132132
if not workshop then
133-
print('autocheese: no workshop available')
133+
print('autocheese: no Farmer's Workshop available')
134134
return
135135
end
136136

@@ -142,7 +142,7 @@ end
142142
local job = makeCheese(reagent, workshop)
143143

144144
print(('autocheese: dispatching cheesemaking job for %s (%d milk) to %s'):format(
145-
dfhack.items.getDescription(reagent, 0),
145+
dfhack.df2console(dfhack.items.getReadableDescription(reagent)),
146146
#reagent.general_refs,
147147
dfhack.df2console(dfhack.units.getReadableName(worker))
148148
))

docs/autocheese.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ autocheese
22
==========
33

44
.. dfhack-tool::
5-
:summary: Automatically make cheese using barrels that have accumulated sufficient milk.
5+
:summary: Schedule cheese making jobs based on milk reserves.
66
:tags: fort auto
77

8-
Cheese making is difficult to automate using work orders, because a single job
9-
can consume anything from a bucket was a single unit of milk to barrel
10-
containing up to 100 units of milk.
8+
Cheese making is difficult to automate using work orders. A single job
9+
can consume anything from a bucket with a single unit of milk to a barrel
10+
with 100 units of milk. This makes it hard to predict how much cheese will
11+
actually be produced by an automated order.
1112

1213
The script will scan your fort for barrels with a certain minimum amount of milk
1314
(default: 50), create a cheese making job specifically for that barrel, and

0 commit comments

Comments
 (0)