Skip to content

Commit

Permalink
recode instruments output for printing to console
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 11, 2024
1 parent 6162a1b commit a72a999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions instruments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ local function print_list()

local building_tag = instrument.flags.PLACED_AS_BUILDING and " (building, " or " (handheld, "
local reaction = getAssemblyReaction(instrument.id)
dfhack.print(instrument.name .. building_tag)
dfhack.print(dfhack.df2console(instrument.name .. building_tag))
if #instrument.pieces == 0 then
print(describeReaction(reaction) .. ")")
print(dfhack.df2console(describeReaction(reaction) .. ")"))
else
print(df.job_skill[reaction.skill] .. "/assemble)")
print(dfhack.df2console(df.job_skill[reaction.skill] .. "/assemble)"))
for _, str in pairs(instruments[instrument.name]) do
print(" " .. str)
print(dfhack.df2console(" " .. str))
end
end
print()
Expand Down

0 comments on commit a72a999

Please sign in to comment.