Skip to content

Commit

Permalink
potential script error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Jun 30, 2023
1 parent 081d3f8 commit cff5a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension.xml
Expand Up @@ -22,7 +22,7 @@
</luacheck>
</properties>

<announcement text="https://github.com/bmos/FG-PFRPG-Live-Hitpoints-from-Constitution\rPFRPG Live Hitpoints v2.11:\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.11-hotfix.1:\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 @@ -63,8 +63,8 @@ function processHd(nodeNPC)
local nHdEndPos = string.find(v, 'd', 1)
local nHd = tonumber(string.sub(v, 1, nHdEndPos - 1))
if nHd then nHdCount = nHdCount + nHd end
elseif string.match(v, '%d', 1) then
nAbilHp = nAbilHp + v
elseif string.match(v, '%d+', 1) then
nAbilHp = nAbilHp + tonumber(v)
end
end

Expand Down

0 comments on commit cff5a9e

Please sign in to comment.