diff --git a/ADnD_2E_Revised/2ESheet.html b/ADnD_2E_Revised/2ESheet.html index 844c46c029c..4a414cdee57 100644 --- a/ADnD_2E_Revised/2ESheet.html +++ b/ADnD_2E_Revised/2ESheet.html @@ -10,6 +10,7 @@ <h2 style="color: black;">Changes in <span name="attr_version"></span></h2> <div class="sheet-announce-items"> <ul style="font-style:italic"> <li>Added better description for Open Door checks</li> + <li>Added missing misc modifier for Open Door checks</li> <li>Added notes for Head and Touch AC</li> <li>Added notes for Touch-delivered spells</li> <li>Added notes for wishing for ability scores</li> @@ -46216,7 +46217,7 @@ <h2>Monster Sheet specific</h2> 'reference': 'p. 181', 'book': 'PHB', 'book-compendium': 'Wizard’s Spell Compendium Volume One p. 210', - 'errata': 'Dungeon Master Guide p. 139+160', + 'errata': 'Player’s Handbook p. 168\nDungeon Master Guide p. 139+160\nSage Advice #201 p. 45\nSage Advice #256 p. 28\nSage Advice #260 p. 23', 'damage': '', 'damage-type': '', 'healing': '', @@ -46236,7 +46237,7 @@ <h2>Monster Sheet specific</h2> 'reference': 'p. 181', 'book': 'PHB', 'book-compendium': 'Wizard’s Spell Compendium Volume One p. 214', - 'errata': 'Sage Advice #256 p. 28', + 'errata': 'Dungeon Master Guide p. 139\nSage Advice #256 p. 28', 'damage': '', 'damage-type': '', 'healing': '', @@ -70352,16 +70353,17 @@ <h2>Monster Sheet specific</h2> let rollBuilder = new RollTemplateBuilder('2Echeck'); rollBuilder.push('character=@{character_name}','checkroll=[[1d20cs1cf20]]','color=blue','success=The door swings open!'); + let checkTarget; let match = values.opendoor.match(/(\d+)\((\d+)\)/); - if (!match) { - rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','checktarget=[[@{opendoor}]]','fail=The door stays shut, but you can try again.'); - return printRoll(rollBuilder.string()); + if (match) { + checkTarget = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`); + } else { + checkTarget = '@{opendoor}'; } + rollBuilder.push(`checktarget=[[${checkTarget}+(@{misc-mod})]]`); - let target = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`); - rollBuilder.push(`checktarget=[[${target}]]`); - if (target === match[1]) { - rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again.'); + if (!match || checkTarget === match[1]) { + rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again with a cumulative -1 penalty for each try.'); } else { rollBuilder.push('checkvs=Open Locked/Barred/Magically Held Doors Check','fail=The door stays shut. No further attempts can be made by @{character_name}.'); } diff --git a/ADnD_2E_Revised/futureIdeas.txt b/ADnD_2E_Revised/futureIdeas.txt index a0776833278..9e9a97cb2f0 100644 --- a/ADnD_2E_Revised/futureIdeas.txt +++ b/ADnD_2E_Revised/futureIdeas.txt @@ -6,13 +6,16 @@ New weapon section that combines hit and damage - Implement backstab - Implement special maneuvers as written in the Fighters handbook +Add reversible spells to the list of memorized spells. Do not change the content or template. +Just add it as a name like this: "Light", "Darkness (Reverse of Light)" + Add 8th, 9th, and 10th level Priest spells (Psionic enchantments) from Dark Sun Dragon Kings Add True Dweomers from DMGR: High-Level Campaign Section for Wand/Staff/Rods: - Capture initiative modifiers -- Maybe autofill? +- Maybe autofill? Could give players information they should not have. Section for Misc magical items - Capture initiative modifier @@ -24,6 +27,7 @@ Update Potions to have "chugs" instead of quantity Update Scrolls to write "Fireball scroll" instead of "Scroll of Fireball" - Or just add the "scroll of" added to the Macro and not the name. +- Group spells on the same scroll paper somehow. Maybe a notes field, explaining what paper it is on? Check up on Martial Arts from Complete Book of Ninjas diff --git a/ADnD_2E_Revised/html/changelog.html b/ADnD_2E_Revised/html/changelog.html index c54232d3ba1..8e5c4486aa3 100644 --- a/ADnD_2E_Revised/html/changelog.html +++ b/ADnD_2E_Revised/html/changelog.html @@ -5,6 +5,7 @@ <h2 style="color: black;">Changes in <span name="attr_version"></span></h2> <div class="sheet-announce-items"> <ul style="font-style:italic"> <li>Added better description for Open Door checks</li> + <li>Added missing misc modifier for Open Door checks</li> <li>Added notes for Head and Touch AC</li> <li>Added notes for Touch-delivered spells</li> <li>Added notes for wishing for ability scores</li> diff --git a/ADnD_2E_Revised/javascript/sheetWorkers.js b/ADnD_2E_Revised/javascript/sheetWorkers.js index 6520a383966..9940c1328cd 100644 --- a/ADnD_2E_Revised/javascript/sheetWorkers.js +++ b/ADnD_2E_Revised/javascript/sheetWorkers.js @@ -849,16 +849,17 @@ on('clicked:opendoor-check', function (eventInfo){ let rollBuilder = new RollTemplateBuilder('2Echeck'); rollBuilder.push('character=@{character_name}','checkroll=[[1d20cs1cf20]]','color=blue','success=The door swings open!'); + let checkTarget; let match = values.opendoor.match(/(\d+)\((\d+)\)/); - if (!match) { - rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','checktarget=[[@{opendoor}]]','fail=The door stays shut, but you can try again.'); - return printRoll(rollBuilder.string()); + if (match) { + checkTarget = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`); + } else { + checkTarget = '@{opendoor}'; } + rollBuilder.push(`checktarget=[[${checkTarget}+(@{misc-mod})]]`); - let target = await extractQueryResult(`?{What kind of door?|Heavy / Stuck door,${match[1]}|Locked / Barred / Magical door,${match[2]}}`); - rollBuilder.push(`checktarget=[[${target}]]`); - if (target === match[1]) { - rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again.'); + if (!match || checkTarget === match[1]) { + rollBuilder.push('checkvs=Open Heavy/Stuck Doors Check','fail=The door stays shut, but you can try again with a cumulative -1 penalty for each try.'); } else { rollBuilder.push('checkvs=Open Locked/Barred/Magically Held Doors Check','fail=The door stays shut. No further attempts can be made by @{character_name}.'); }