Merge pull request #10639 from DBFBlackbull/ADnD_2E_Revised-Bugfix-add-spells

[ADnD 2E Revised] 4.9.1 Bugfix: Fixed the Add spells button
This commit is contained in:
Nic Bradley
2022-06-01 17:46:20 -07:00
committed by GitHub
4 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -9,8 +9,7 @@
<h2 style="color: black;">Changes in <input type="text" name="attr_version" class="sheet-version-large" readonly/></h2>
<div class="sheet-announce-items">
<ul style="font-style:italic">
<li>Added Roll template output for ability score rolls</li>
<li>Updated Roll template inline roll colors when Dark mode is active to make them more readable </li>
<li>Fixed the Add Priest Spells based on Spheres button</li>
</ul>
<hr>
<p>
@@ -45362,6 +45361,9 @@ priestSpellLevelsSections.forEach(spellLevel => {
let lastSection = spellLevel.sections[spellLevel.sections.length - 1];
if (isNewSpellSection(lastSection)) {
setupAutoFillSpellInfo(lastSection, priestSpells, priestDisplayLevel, SPHERE_FIELDS);
if (lastSection !== 'priq') {
setupAddPriestSpell(lastSection);
}
}
});
setupAutoFillSpellInfo("primonster", priestSpells, priestDisplayLevel, SPHERE_FIELDS);
@@ -45895,7 +45897,7 @@ on(BOOK_FIELDS.map(b => `change:${b}`).join(' '), function (eventInfo) {
// --- Version change start --- //
const SHEET_NAME = 'AD&D 2E Revised';
const SHEET_VERSION = '4.9.0';
const SHEET_VERSION = '4.9.1';
on('sheet:opened', function(){
getAttrs(['character_sheet'],function(attrs){
+1 -2
View File
@@ -4,8 +4,7 @@
<h2 style="color: black;">Changes in <input type="text" name="attr_version" class="sheet-version-large" readonly/></h2>
<div class="sheet-announce-items">
<ul style="font-style:italic">
<li>Added Roll template output for ability score rolls</li>
<li>Updated Roll template inline roll colors when Dark mode is active to make them more readable </li>
<li>Fixed the Add Priest Spells based on Spheres button</li>
</ul>
<hr>
<p>
@@ -1089,6 +1089,9 @@ priestSpellLevelsSections.forEach(spellLevel => {
let lastSection = spellLevel.sections[spellLevel.sections.length - 1];
if (isNewSpellSection(lastSection)) {
setupAutoFillSpellInfo(lastSection, priestSpells, priestDisplayLevel, SPHERE_FIELDS);
if (lastSection !== 'priq') {
setupAddPriestSpell(lastSection);
}
}
});
setupAutoFillSpellInfo("primonster", priestSpells, priestDisplayLevel, SPHERE_FIELDS);
+1 -1
View File
@@ -1,7 +1,7 @@
// --- Version change start --- //
const SHEET_NAME = 'AD&D 2E Revised';
const SHEET_VERSION = '4.9.0';
const SHEET_VERSION = '4.9.1';
on('sheet:opened', function(){
getAttrs(['character_sheet'],function(attrs){