Skip to content

Commit

Permalink
further 5e hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Oct 3, 2023
1 parent 01201e9 commit f449fb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions campaign/scripts/5e_char_weapon.lua
Expand Up @@ -4,9 +4,8 @@
--

-- luacheck: globals setAmmoVis maxammo.setLink
local function setAmmoVis(nodeWeapon, ...)
if super and super.setAmmoVis then super.setAmmoVis(nodeWeapon, ...) end

local function setAmmoVis()
local nodeWeapon = getDatabaseNode()
local bLoading = AmmunitionManager.hasLoadAction(nodeWeapon)
isloaded.setVisible(bLoading)

Expand Down Expand Up @@ -58,12 +57,12 @@ function onLinkChanged()
end

-- luacheck: globals onAttackChanged onDamageChanged
function onDataChanged(nodeWeapon)
function onDataChanged()
onLinkChanged();
onAttackChanged();
onDamageChanged();

setAmmoVis(nodeWeapon)
setAmmoVis()
end

-- luacheck: globals highlightAttack
Expand Down
2 changes: 1 addition & 1 deletion extension.xml
Expand Up @@ -26,7 +26,7 @@
<loadorder>34</loadorder>
</properties>

<announcement text="https://github.com/bmos/FG-PFRPG-Ammunition-Manager\nAmmunition Manager v4.4-hotfix.1:\nThis extension aids in tracking ammunition and whether ranged weapons are loaded." font="emotefont" icon="archery_ammomanager" />
<announcement text="https://github.com/bmos/FG-PFRPG-Ammunition-Manager\nAmmunition Manager v4.4-hotfix.2:\nThis extension aids in tracking ammunition and whether ranged weapons are loaded." font="emotefont" icon="archery_ammomanager" />

<base>
<!-- Campaign Records -->
Expand Down

0 comments on commit f449fb2

Please sign in to comment.