Skip to content

Commit

Permalink
Hotfix3, Compatibility for Hero Points
Browse files Browse the repository at this point in the history
  • Loading branch information
ZarestiaDev committed Sep 26, 2022
1 parent 6a319af commit 79b7365
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion campaign/scripts/char.lua
Expand Up @@ -20,4 +20,4 @@ function onExtraActions()
notes.setStaticBounds(0,nTopCharsheet,-1,-20);
actions.setStaticBounds(0,nTopCharsheet,-1,-20);
end
end
end
10 changes: 9 additions & 1 deletion campaign/scripts/char_overview.lua
Expand Up @@ -8,6 +8,7 @@ function onInit()
DB.addHandler(DB.getPath(getDatabaseNode(), "classes"), "onChildUpdate", onLevelChanged);

onLocalDiceTower();
onHeroPoints();
end

function onClose()
Expand Down Expand Up @@ -38,4 +39,11 @@ function onLocalDiceTower()
speak.resetAnchor("left");
speak.setAnchor("right", "dicetower_forwarding", "left", "", 60);
end
end
end

function onHeroPoints()
if CompManagerAC.EXTENSIONS["HeroPoints"] then
name.resetAnchor("right");
name.setAnchoredWidth(150);
end
end
3 changes: 2 additions & 1 deletion extension.xml
Expand Up @@ -21,12 +21,13 @@
<!--
Load Orders
- Drain and Permanent Bonuses: 29
- Hero Points: 50
- Extra Actions: 50
- Attack Modifiers: 51
- LiveHP: 60
-->

<announcement text="3.5E/PFRPG Advanced Charsheet - v1.0-hotfix1 by Zarestia" font="emotefont" />
<announcement text="3.5E/PFRPG Advanced Charsheet - v1.0-hotfix3 by Zarestia" font="emotefont" />

<base>
<!-- High-Level Scripts -->
Expand Down

0 comments on commit 79b7365

Please sign in to comment.