Skip to content

Commit a81d794

Browse files
author
Wil Thieme
committed
fix weight being written to value of coins item
1 parent ce37854 commit a81d794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/coinweight.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ local function computeCoins(nodeChar)
127127
nCostRound = 0
128128
end
129129

130-
DB.setValue(nodeCoinsItem, 'cost', 'string', round(nTotalCoinsWeight, nCostRound) .. ' gp')
130+
DB.setValue(nodeCoinsItem, 'cost', 'string', round(nTotalCoinsWealth, nCostRound) .. ' gp')
131131
DB.setValue(nodeCoinsItem, 'weight', 'number', round(nTotalCoinsWeight, determineRounding(nTotalCoinsWeight)))
132132
DB.setValue(nodeCoinsItem, 'count', 'number', 1)
133133
DB.setValue(nodeChar, 'coinitemshortcut', 'windowreference', 'item', DB.getPath(nodeCoinsItem))

0 commit comments

Comments
 (0)