2,875
edits
m (Somehow things turn into a string magically....) |
m (Add multiplier from Module:ItemEconomy) |
||
Line 49: | Line 49: | ||
end | end | ||
local function createTable(target, calcAmount, useRoW, ecoType, multiplier) | |||
local function createTable( | |||
local RoWYN = useRoW and "Yes" or "No" | local RoWYN = useRoW and "Yes" or "No" | ||
Line 68: | Line 56: | ||
if ecoType == ECOIN then | if ecoType == ECOIN then | ||
addTableRow(tbl, "Desired Output", number.formatnum( | addTableRow(tbl, "Desired Output", number.formatnum(target)) | ||
addTableRow(tbl, "Estimated Input", number.formatnum(calcAmount)) | addTableRow(tbl, "Estimated Input", number.formatnum(calcAmount)) | ||
else | else | ||
addTableRow(tbl, "Starting Items", number.formatnum( | addTableRow(tbl, "Starting Items", number.formatnum(target)) | ||
addTableRow(tbl, "Estimated Output", number.formatnum(calcAmount)) | addTableRow(tbl, "Estimated Output", number.formatnum(calcAmount)) | ||
end | end | ||
addTableRow(tbl, "Economy Factor", calculateFactor( | addTableRow(tbl, "Economy Factor", calculateFactor(target, calcAmount)) | ||
addTableRow(tbl, "[[Ring of Wealth]] benefits", RoWYN) | addTableRow(tbl, "[[Ring of Wealth]] benefits", RoWYN) | ||
Line 111: | Line 99: | ||
end | end | ||
local tbl = createTable(target, result, row, economyType) | local multiplier = eco.estimatedOutputMultiplieritemEconomy | ||
local tbl = createTable(target, result, row, economyType, multiplier) | |||
return tostring(tbl) | return tostring(tbl) |
edits