From c82b19dd8aa2c69095b3c71725b58d0a276a2a0f Mon Sep 17 00:00:00 2001 From: Peter Bjerg Lidegaard Date: Tue, 23 Jan 2024 09:23:33 +0100 Subject: [PATCH] - Changed duration input field to textarea - Updated duration for Darkness, undetectable alignment and obscure object (reverse spells) --- ADnD_2E_Revised/2ESheet.html | 60 +++++++++---------- .../html/shared/priest-spell-template.html | 2 +- .../html/shared/wizard-spell-template.html | 2 +- ADnD_2E_Revised/javascript/priestSpells.js | 6 +- ADnD_2E_Revised/javascript/wizardSpells.js | 4 +- ADnD_2E_Revised/pug/spellTemplate.pug | 2 +- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/ADnD_2E_Revised/2ESheet.html b/ADnD_2E_Revised/2ESheet.html index 1f503550f838..f764342ef53f 100644 --- a/ADnD_2E_Revised/2ESheet.html +++ b/ADnD_2E_Revised/2ESheet.html @@ -4532,7 +4532,7 @@

Spells Memorized

Duration: - + Components: @@ -4849,7 +4849,7 @@

Spells Memorized

Duration: - + Components: @@ -5166,7 +5166,7 @@

Spells Memorized

Duration: - + Components: @@ -5483,7 +5483,7 @@

Spells Memorized

Duration: - + Components: @@ -5800,7 +5800,7 @@

Spells Memorized

Duration: - + Components: @@ -6117,7 +6117,7 @@

Spells Memorized

Duration: - + Components: @@ -6434,7 +6434,7 @@

Spells Memorized

Duration: - + Components: @@ -6751,7 +6751,7 @@

Spells Memorized

Duration: - + Components: @@ -7068,7 +7068,7 @@

Spells Memorized

Duration: - + Components: @@ -7385,7 +7385,7 @@

Spells Memorized

Duration: - + Components: @@ -7702,7 +7702,7 @@

Spells Memorized

Duration: - + Components: @@ -8019,7 +8019,7 @@

Spells Memorized

Duration: - + Components: @@ -8336,7 +8336,7 @@

Spells Memorized

Duration: - + Components: @@ -8653,7 +8653,7 @@

Spells Memorized

Duration: - + Components: @@ -8970,7 +8970,7 @@

Spells Memorized

Duration: - + Components: @@ -9391,7 +9391,7 @@

Spells Memorized

Duration: - + Components: @@ -9704,7 +9704,7 @@

Spells Memorized

Duration: - + Components: @@ -10017,7 +10017,7 @@

Spells Memorized

Duration: - + Components: @@ -10330,7 +10330,7 @@

Spells Memorized

Duration: - + Components: @@ -10643,7 +10643,7 @@

Spells Memorized

Duration: - + Components: @@ -10956,7 +10956,7 @@

Spells Memorized

Duration: - + Components: @@ -11269,7 +11269,7 @@

Spells Memorized

Duration: - + Components: @@ -11582,7 +11582,7 @@

Spells Memorized

Duration: - + Components: @@ -21427,7 +21427,7 @@

Additional Monster attacks

Duration: - + Components: @@ -21601,7 +21601,7 @@

Additional Monster attacks

Duration: - + Components: @@ -47086,7 +47086,7 @@

Monster Sheet specific

'level': '2', 'school': 'Divination (Reversible)', 'range': '10 yards', - 'duration': '[[@{level-wizard}]] rounds', + 'duration': '*Know Alignement:* [[@{level-wizard}]] rounds\n*Undetectable Alignment:* 24 hours', 'aoe': '1 creature or object per 2 rounds', 'components': 'V, S', 'cast-time': '1 round', @@ -47147,7 +47147,7 @@

Monster Sheet specific

'level': '2', 'school': 'Divination (Reversible)', 'range': '0', - 'duration': '[[@{level-wizard}]] rounds', + 'duration': '*Locate Object:* [[@{level-wizard}]] rounds\n*Obscure Object:* 8 hours', 'aoe': '[[20*[[@{level-wizard}]] ]] yards', 'components': 'V, S, M', 'cast-time': '2', @@ -56350,7 +56350,7 @@

Monster Sheet specific

'sphere': 'Sun', 'sphere-spells-and-magic': 'Creation, Guardian, Sun', 'range': '120 yards', - 'duration': '1 hour + [[@{level-priest}]] turns', + 'duration': '*Light:* 1 hour + [[@{level-priest}]] turns\n*Darkness:* 30 mins + [[@{level-priest}/2]] turns', 'aoe': '20-foot-radius globe', 'components': 'V, S', 'cast-time': '4', @@ -56811,7 +56811,7 @@

Monster Sheet specific

'school': 'Divination (Reversible)', 'sphere': 'Divination', 'range': '10 yards', - 'duration': '1 turn', + 'duration': '*Know Alignment:* 1 turn\n*Undetectable Alignment:* 24 hours', 'aoe': '1 creature or object', 'components': 'V, S', 'cast-time': '1 round', @@ -57308,7 +57308,7 @@

Monster Sheet specific

'school': 'Divination (Reversible)', 'sphere': 'Divination', 'range': '[[60+10*[[@{level-priest}]] ]] yards', - 'duration': '[[@{level-priest}]] rounds', + 'duration': '*Locate Object:* [[@{level-priest}]] rounds\n*Obscure Object:* 8 hours', 'aoe': '1 object', 'components': 'V, S, M', 'cast-time': '1 turn', diff --git a/ADnD_2E_Revised/html/shared/priest-spell-template.html b/ADnD_2E_Revised/html/shared/priest-spell-template.html index b0f28ea0b20d..0c3f075110e5 100644 --- a/ADnD_2E_Revised/html/shared/priest-spell-template.html +++ b/ADnD_2E_Revised/html/shared/priest-spell-template.html @@ -91,7 +91,7 @@ Duration: - + Components: diff --git a/ADnD_2E_Revised/html/shared/wizard-spell-template.html b/ADnD_2E_Revised/html/shared/wizard-spell-template.html index 30efbfafbb24..f36502fda106 100644 --- a/ADnD_2E_Revised/html/shared/wizard-spell-template.html +++ b/ADnD_2E_Revised/html/shared/wizard-spell-template.html @@ -91,7 +91,7 @@ Duration: - + Components: diff --git a/ADnD_2E_Revised/javascript/priestSpells.js b/ADnD_2E_Revised/javascript/priestSpells.js index 1fff54d8be2b..3a3e9ff8973c 100644 --- a/ADnD_2E_Revised/javascript/priestSpells.js +++ b/ADnD_2E_Revised/javascript/priestSpells.js @@ -305,7 +305,7 @@ pri1['Light'] = { 'sphere': 'Sun', 'sphere-spells-and-magic': 'Creation, Guardian, Sun', 'range': '120 yards', - 'duration': '1 hour + [[@{level-priest}]] turns', + 'duration': '*Light:* 1 hour + [[@{level-priest}]] turns\n*Darkness:* 30 mins + [[@{level-priest}/2]] turns', 'aoe': '20-foot-radius globe', 'components': 'V, S', 'cast-time': '4', @@ -766,7 +766,7 @@ pri2['Know Alignment'] = { 'school': 'Divination (Reversible)', 'sphere': 'Divination', 'range': '10 yards', - 'duration': '1 turn', + 'duration': '*Know Alignment:* 1 turn\n*Undetectable Alignment:* 24 hours', 'aoe': '1 creature or object', 'components': 'V, S', 'cast-time': '1 round', @@ -1263,7 +1263,7 @@ pri3['Locate Object'] = { 'school': 'Divination (Reversible)', 'sphere': 'Divination', 'range': '[[60+10*[[@{level-priest}]] ]] yards', - 'duration': '[[@{level-priest}]] rounds', + 'duration': '*Locate Object:* [[@{level-priest}]] rounds\n*Obscure Object:* 8 hours', 'aoe': '1 object', 'components': 'V, S, M', 'cast-time': '1 turn', diff --git a/ADnD_2E_Revised/javascript/wizardSpells.js b/ADnD_2E_Revised/javascript/wizardSpells.js index 607a115f4a23..97d055c3bc38 100644 --- a/ADnD_2E_Revised/javascript/wizardSpells.js +++ b/ADnD_2E_Revised/javascript/wizardSpells.js @@ -1351,7 +1351,7 @@ wiz2['Know Alignment'] = { 'level': '2', 'school': 'Divination (Reversible)', 'range': '10 yards', - 'duration': '[[@{level-wizard}]] rounds', + 'duration': '*Know Alignement:* [[@{level-wizard}]] rounds\n*Undetectable Alignment:* 24 hours', 'aoe': '1 creature or object per 2 rounds', 'components': 'V, S', 'cast-time': '1 round', @@ -1412,7 +1412,7 @@ wiz2['Locate Object'] = { 'level': '2', 'school': 'Divination (Reversible)', 'range': '0', - 'duration': '[[@{level-wizard}]] rounds', + 'duration': '*Locate Object:* [[@{level-wizard}]] rounds\n*Obscure Object:* 8 hours', 'aoe': '[[20*[[@{level-wizard}]] ]] yards', 'components': 'V, S, M', 'cast-time': '2', diff --git a/ADnD_2E_Revised/pug/spellTemplate.pug b/ADnD_2E_Revised/pug/spellTemplate.pug index 05357b13f139..9501bc6e7025 100644 --- a/ADnD_2E_Revised/pug/spellTemplate.pug +++ b/ADnD_2E_Revised/pug/spellTemplate.pug @@ -69,7 +69,7 @@ fieldset(name="repeating_spells-#REPLACE0#" class="repeating_spells-#REPLACE0#") tr th Duration: td - input(type="text" name="attr_spell-duration" title="@{repeating_spells-#REPLACE0#_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration") + textarea(name="attr_spell-duration" title="@{repeating_spells-#REPLACE0#_$X_spell-duration}" class="sheet-spell-half sheet-input-like" placeholder="Duration") th Components: td input(type="text" name="attr_spell-components" title="@{repeating_spells-#REPLACE0#_$X_spell-components}" class="sheet-spell-half" placeholder="Components")