Skip to content

Commit

Permalink
Pathfinder by Roll20 v1.24 bis
Browse files Browse the repository at this point in the history
Add Caster Level Check to PC and NPC sheets
  • Loading branch information
NathaTerrien committed Dec 31, 2018
1 parent a3cfd87 commit ab04fff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pathfinder Official/Pathfinder Official.html

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions Pathfinder Official/sources/Pathfinder Official.html
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@
<input type="hidden" name="attr_npcsplike_data" accept="data" /> <!-- catch-all the rest -->
<div class="myrow">
<span class="bold" data-i18n="spell-like-abilities">Spell-Like Abilities</span>
(<span data-i18n="cl-u">CL</span> <span name="attr_caster2_level"></span>;
(<button type="roll" class="myrol" name="RollCaster2Check" value="@{whispertype} &{template:npc} {{name=^{caster-level-check}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{casterclass=^{level}}} {{level=@{caster2_level}}} {{roll=[[1d20+@{caster2_level}[MOD]+@{rollmod_save}[QUERY]]]}}" data-i18n-title="caster-level-check" title="Caster Level Check"><span data-i18n="cl-u">CL</span> <span name="attr_caster2_level"></span></button>;
<button class="myrol" type="roll" name="roll_npc_spelllike_concentration" data-i18n-title="concentration-roll" title="Concentration roll" value="@{whispertype} &{template:npc} {{name=^{concentration}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{roll=[[1d20+@{caster2_concentration}[MOD]+@{rollmod_save}[QUERY]]]}}"><span data-i18n="concentration">Concentration</span> +<span name="attr_caster2_concentration"></span></button>)
</div>
<fieldset class="repeating_spell-like"> <!-- REPEATING SPELL-LIKE -->
Expand Down Expand Up @@ -908,7 +908,8 @@
<input type="hidden" class="optional-flag0" name="attr_spells_flag" value="1" /><div class="optional blk npcatk spells"> <!-- SPELLS -->
<div class="myrow">
<span class="bold" data-i18n="spells-prepared">Spells Prepared</span>
(<span data-i18n="cl-u">CL</span> <span name="attr_caster1_level"></span>; <button class="myrol" type="roll" name="roll_npc_spell_concentration" data-i18n-title="concentration-roll" title="Concentration roll" value="@{whispertype} &{template:npc} {{name=^{concentration}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{roll=[[1d20+@{caster1_concentration}[MOD]+@{rollmod_save}[QUERY]]]}}"><span data-i18n="concentration">Concentration</span> +<span name="attr_caster1_concentration"></span></button>)
(<button type="roll" class="myrol" name="RollCaster1Check" value="@{whispertype} &{template:npc} {{name=^{caster-level-check}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{casterclass=^{level}}} {{level=@{caster1_level}}} {{roll=[[1d20+@{caster1_level}[MOD]+@{rollmod_save}[QUERY]]]}}" data-i18n-title="caster-level-check" title="Caster Level Check"><span data-i18n="cl-u">CL</span> <span name="attr_caster1_level"></span></button>;
<button class="myrol" type="roll" name="roll_npc_spell_concentration" data-i18n-title="concentration-roll" title="Concentration roll" value="@{whispertype} &{template:npc} {{name=^{concentration}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{roll=[[1d20+@{caster1_concentration}[MOD]+@{rollmod_save}[QUERY]]]}}"><span data-i18n="concentration">Concentration</span> +<span name="attr_caster1_concentration"></span></button>)
<span class="blk" name="attr_caster1_spells_notes"></span>
</div>
<input type="hidden" class="optional-flag0" name="attr_caster1_spells_perday_level_9" value="0" /><div class="optional blk grtopbrd"> <!-- Spells lvl 9 -->
Expand Down Expand Up @@ -5838,7 +5839,11 @@
</div>
<input type="hidden" class="optional-flag0" name="attr_caster1_flag" value="0" /><div class="optional blk bordered titled inbox"> <!-- CASTER CLASS 1 -->
<div class="myrow">
<span class="roundblack">1</span> <span class="pseudoattr" tabindex="0" name="attr_caster1_class" title="@{caster1_class}"></span> <span class="pseudoattr" tabindex="0" name="attr_caster1_level" title="@{caster1_level}"></span>
<button type="roll" class="myrol" name="RollCaster1Check" value="@{whispertype} &{template:pc} {{name=^{caster-level-check}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{casterclass=@{caster1_class}}} {{level=@{caster1_level}}} {{roll=[[1d20+@{caster1_level}[MOD]+@{rollmod_save}[QUERY]]]}}" data-i18n-title="caster-level-check" title="Caster Level Check">
<span class="roundblack">1</span>
<span class="pseudoattr" tabindex="0" name="attr_caster1_class" title="@{caster1_class}"></span>
<span class="pseudoattr" tabindex="0" name="attr_caster1_level" title="@{caster1_level}"></span>
</button>
<span class="lbl margindent" data-i18n="ability-mod">Ability mod</span> <span class="pseudoattr number greybg underlined" tabindex="0" name="attr_caster1_ability_mod" title="@{caster1_ability_mod}"></span>
</div>
<div class="topspace concentration"> <!-- CONCENTRATION -->
Expand Down Expand Up @@ -5970,7 +5975,11 @@
</div> <!-- END CASTER CLASS 1 -->
<input type="hidden" class="optional-flag0" name="attr_caster2_flag" value="0" /><div class="optional blk bordered inbox"> <!-- CASTER CLASS 2 -->
<div class="myrow">
<span class="roundblack">2</span> <span class="pseudoattr" tabindex="0" name="attr_caster2_class" title="@{caster2_class}"></span> <span class="pseudoattr" tabindex="0" name="attr_caster2_level" title="@{caster2_level}"></span>
<button type="roll" class="myrol" name="RollCaster2Check" value="@{whispertype} &{template:pc} {{name=^{caster-level-check}}} {{type=save}} {{showchar=@{rollshowchar}}} {{charname=@{character_name}}} {{casterclass=@{caster2_class}}} {{level=@{caster2_level}}} {{roll=[[1d20+@{caster2_level}[MOD]+@{rollmod_save}[QUERY]]]}}" data-i18n-title="caster-level-check" title="Caster Level Check">
<span class="roundblack">2</span>
<span class="pseudoattr" tabindex="0" name="attr_caster2_class" title="@{caster2_class}"></span>
<span class="pseudoattr" tabindex="0" name="attr_caster2_level" title="@{caster2_level}"></span>
</button>
<span class="lbl margindent" data-i18n="ability-mod">Ability mod</span> <span class="pseudoattr number greybg underlined" tabindex="0" name="attr_caster2_ability_mod" title="@{caster2_ability_mod}"></span>
</div>
<div class="topspace concentration"> <!-- CONCENTRATION -->
Expand Down
1 change: 1 addition & 0 deletions Pathfinder Official/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"caster-level-check": "Caster Level Check",
"cost:": "Cost:",
"slot:": "Slot:",
"reset-to-pc": "Reset to PC (Player Character).",
Expand Down
1 change: 1 addition & 0 deletions Pathfinder Official/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"caster-level-check": "Caster Level Check",
"cost:": "Cost:",
"slot:": "Slot:",
"reset-to-pc": "Reset to PC (Player Character).",
Expand Down

0 comments on commit ab04fff

Please sign in to comment.