Skip to content

Commit 52819a8

Browse files
committed
fix finding spells with roman numerals at the end
1 parent 6e345bf commit 52819a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extension.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<loadorder>51</loadorder>
1616
</properties>
1717

18-
<announcement text="https://www.fantasygrounds.com/forums/showthread.php?63620-PFRPG-Upgrade-NPC-Actions-Extension\nUpgrade NPC Actions v1.26:\nThis extension replaces NPC spell effects and descriptions with those from the 'PFRPG - Spellbook' module, links maladies from PFRPG - Maladies Library, and adds tooltips to the built-in conditions." font="emotefont" icon="module_loaded" />
18+
<announcement text="https://www.fantasygrounds.com/forums/showthread.php?63620-PFRPG-Upgrade-NPC-Actions-Extension\nUpgrade NPC Actions v1.26-hotfix.1:\nThis extension replaces NPC spell effects and descriptions with those from the 'PFRPG - Spellbook' module, links maladies from PFRPG - Maladies Library, and adds tooltips to the built-in conditions." font="emotefont" icon="module_loaded" />
1919

2020
<base>
2121
<!-- Scripts -->

scripts/UNPC_upgradespells.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ local function trim_spell_name(string_spell_name)
3636
end
3737

3838
-- remove certain sets of characters
39-
string_spell_name = string_spell_name:gsub("%u%u%u%u", "")
40-
string_spell_name = string_spell_name:gsub("%u%u%u", "")
39+
--string_spell_name = string_spell_name:gsub("%u%u%u%u", "")
40+
--string_spell_name = string_spell_name:gsub("%u%u%u", "")
4141
string_spell_name = string_spell_name:gsub("AP%d+", "")
42-
string_spell_name = string_spell_name:gsub("%u%u", "")
42+
--string_spell_name = string_spell_name:gsub("%u%u", "")
4343
string_spell_name = string_spell_name:gsub(".+:", "")
4444
string_spell_name = string_spell_name:gsub(",.+", "")
4545
string_spell_name = string_spell_name:gsub("%[.-%]", "")

0 commit comments

Comments
 (0)