Skip to content

Commit f449fb2

Browse files
author
Wil Thieme
committed
further 5e hotfixes
1 parent 01201e9 commit f449fb2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

campaign/scripts/5e_char_weapon.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
--
55

66
-- luacheck: globals setAmmoVis maxammo.setLink
7-
local function setAmmoVis(nodeWeapon, ...)
8-
if super and super.setAmmoVis then super.setAmmoVis(nodeWeapon, ...) end
9-
7+
local function setAmmoVis()
8+
local nodeWeapon = getDatabaseNode()
109
local bLoading = AmmunitionManager.hasLoadAction(nodeWeapon)
1110
isloaded.setVisible(bLoading)
1211

@@ -58,12 +57,12 @@ function onLinkChanged()
5857
end
5958

6059
-- luacheck: globals onAttackChanged onDamageChanged
61-
function onDataChanged(nodeWeapon)
60+
function onDataChanged()
6261
onLinkChanged();
6362
onAttackChanged();
6463
onDamageChanged();
6564

66-
setAmmoVis(nodeWeapon)
65+
setAmmoVis()
6766
end
6867

6968
-- luacheck: globals highlightAttack

extension.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<loadorder>34</loadorder>
2727
</properties>
2828

29-
<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" />
29+
<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" />
3030

3131
<base>
3232
<!-- Campaign Records -->

0 commit comments

Comments
 (0)