Skip to content

Commit

Permalink
Stylistic improvements suggested by Myk
Browse files Browse the repository at this point in the history
Co-authored-by: Myk <myk.taylor@gmail.com>
Rate limit · GitHub

Whoa there!

You have triggered an abuse detection mechanism.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

chdoc and myk002 authored Jan 21, 2025
1 parent 70240fe commit 67e94aa
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions autocheese.lua
Original file line number Diff line number Diff line change
@@ -130,7 +130,7 @@ end
local workshop = findWorkshop()

if not workshop then
print('autocheese: no workshop available')
print('autocheese: no Farmer's Workshop available')
return
end

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

print(('autocheese: dispatching cheesemaking job for %s (%d milk) to %s'):format(
dfhack.items.getDescription(reagent, 0),
dfhack.df2console(dfhack.items.getReadableDescription(reagent)),
#reagent.general_refs,
dfhack.df2console(dfhack.units.getReadableName(worker))
))
9 changes: 5 additions & 4 deletions docs/autocheese.rst
Original file line number Diff line number Diff line change
@@ -2,12 +2,13 @@ autocheese
==========

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

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

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

0 comments on commit 67e94aa

Please sign in to comment.