Skip to content

Commit

Permalink
pfrpg2 legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Nov 17, 2023
1 parent 7b24240 commit 8bf3712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<root version='3.3' release='3'>
<properties>
<name>Feature: Coins Weight</name>
<version>2.2</version>
<version>2.3</version>
<author>bmos (Wil Thieme)</author>
<description>This extension changes coin weight tracking by making an inventory item rather than just including it in the total carried weight.</description>
</properties>

<announcement text="https://www.fantasygrounds.com/forums/showthread.php?67228-CoreRPG-Coins-Weight\rCoins Weight v2.2:\rCalculates coin weight by leveraging the existing inventory weight process." font="emotefont" icon="bmoscoinsweight"/>
<announcement text="https://www.fantasygrounds.com/forums/showthread.php?67228-CoreRPG-Coins-Weight\rCoins Weight v2.3:\rCalculates coin weight by leveraging the existing inventory weight process." font="emotefont" icon="bmoscoinsweight"/>

<base>
<!-- Scripts -->
Expand Down
2 changes: 1 addition & 1 deletion scripts/coinweight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ local function computeCoins(nodeChar)
DB.setValue(nodeChar, 'coinitemshortcut', 'windowreference', 'item', DB.getPath(nodeCoinsItem))
else
local nCostRound = 3
if User.getRulesetName() == 'PFRPG2' then nCostRound = 0 end
if User.getRulesetName() == 'PFRPG2' or User.getRulesetName() == 'PFRPG2-Legacy' then nCostRound = 0 end

DB.setValue(nodeCoinsItem, 'cost', 'string', round(nTotalCoinsWeight, nCostRound) .. ' gp')
DB.setValue(nodeCoinsItem, 'weight', 'number', round(nTotalCoinsWeight, determineRounding()))
Expand Down

0 comments on commit 8bf3712

Please sign in to comment.