Skip to content

Commit

Permalink
pass tOption to evalDiceString
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Mar 10, 2024
1 parent 4bc9297 commit b15abf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extension.xml
Expand Up @@ -6,7 +6,7 @@
<properties>
<loadorder>60</loadorder>
<name>Feature: Live Hitpoints</name>
<version>2.12</version>
<version>2.13</version>
<author>bmos (Wil Thieme)</author>
<description>This extension automates changes to hitpoints based on an ability score.</description>
<ruleset>
Expand All @@ -22,7 +22,7 @@
</luacheck>
</properties>

<announcement text="https://github.com/bmos/FG-PFRPG-Live-Hitpoints-from-Constitution\rPFRPG Live Hitpoints v2.12:\rThis extension automates changes to hitpoints based on an ability score." icon="BandageLogo" font="emotefont" />
<announcement text="https://github.com/bmos/FG-PFRPG-Live-Hitpoints-from-Constitution\rPFRPG Live Hitpoints v2.13:\rThis extension automates changes to hitpoints based on an ability score." icon="BandageLogo" font="emotefont" />

<base>
<!-- Graphics -->
Expand Down
4 changes: 2 additions & 2 deletions scripts/livehitpoints_npc.lua
Expand Up @@ -119,9 +119,9 @@ local function getRolled(nodeNPC)

local sOptHRNH = OptionsManager.getOption("HRNH")
if sOptHRNH == "max" then
nRolled = DiceManager.evalDiceString(sHD, true, true)
nRolled = DiceManager.evalDiceString(sHD, {["bMax"] = true})
elseif sOptHRNH == "random" then
nRolled = math.max(DiceManager.evalDiceString(sHD, true), 1)
nRolled = math.max(DiceManager.evalDiceString(sHD), 1)
end

return nRolled
Expand Down

0 comments on commit b15abf1

Please sign in to comment.