Low fantasy gaming updates (#5609)

* Bugfix:  Initiative adds bonus to target DC

Rolling initiative with the deluxe rules now proper adds Dex+Misc Bonus to target DC rather than as a modifier to the roll.

* Bugfix:  Luck now adds bonuses to target DC

Luck rolls now add bonuses to the target DC instead of as a modifier to the roll.

* Bugfix:  Luck rolls now check for minimum luck.

Luck rolls now check that your Luck rolls are using the proper minimum of 1/2 your level.

* Feature:  GS and TF are automatically calculated

Great Success and Terrible Failure DC values no longer need to be entered manually.  They are automatically calculated from your attribute scores.

* Feature:  Add XP and XP goal fields

In preparation for the optional XP rules provided in the LFG Companion book, XP and XP goal fields have been added.

* Bugfix:  Level field now has default value of 1

Level field didn't have a default value, and this caused a syntax error with luck saves if a level is never added.

* Bugfix:  Capped "Terrible Failure" score at 20.

* Add maximum target DC for attribute checks

In Low Fantasy Gaming, attribute checks are a d20, roll under, system.  No matter how high your attribute, a natural roll of 20 is a failure.  Natural 20's were not presenting as failures in the case of an attribute score higher than 19.
This commit is contained in:
Ryan Brent Taylor
2019-10-28 13:48:17 -05:00
committed by Cassie Levett
parent 44389333f3
commit 1eb9faa0e1
+7 -7
View File
@@ -99,7 +99,7 @@
<!-- How to show advantage in the roll template
{{subheaderright= @{strengthadvantage}}} -> this will just eval as the roll result
-->
<button type="roll" name="roll_Str" value="&{template:5eDefault} {{ability=1}} {{title=Strength Check}} {{subheader=@{character_name}}} {{check=[[@{strengthadvantage}]]}} {{target=[[@{strength}]]}} {{gsresult=[[@{strength_gs}]]}} {{tfresult=[[@{strength_tf}]]}}"></button>
<button type="roll" name="roll_Str" value="&{template:5eDefault} {{ability=1}} {{title=Strength Check}} {{subheader=@{character_name}}} {{check=[[@{strengthadvantage}]]}} {{target=[[{@{strength}, 19}kl1]]}} {{gsresult=[[@{strength_gs}]]}} {{tfresult=[[@{strength_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Melee,&nbsp;Athletics</div>
</div>
@@ -120,7 +120,7 @@
</select>
</div>
<div class="sheet-col-1-14 sheet-center">
<button type="roll" name="roll_Dex" value="&{template:5eDefault} {{ability=1}} {{title=Dexterity Check}} {{subheader=@{character_name}}} {{check=[[@{dexterityadvantage}]]}} {{target=[[@{dexterity}]]}} {{gsresult=[[@{dexterity_gs}]]}} {{tfresult=[[@{dexterity_tf}]]}}"></button>
<button type="roll" name="roll_Dex" value="&{template:5eDefault} {{ability=1}} {{title=Dexterity Check}} {{subheader=@{character_name}}} {{check=[[@{dexterityadvantage}]]}} {{target=[[{@{dexterity}, 19}kl1]]}} {{gsresult=[[@{dexterity_gs}]]}} {{tfresult=[[@{dexterity_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Ranged,&nbsp;AC</div>
</div>
@@ -141,7 +141,7 @@
</select>
</div>
<div class="sheet-col-1-14 sheet-center">
<button type="roll" name="roll_Con" value="&{template:5eDefault} {{ability=1}} {{title=Constitution Check}} {{subheader=@{character_name}}} {{check=[[@{constitutionadvantage}]]}} {{target=[[@{constitution}]]}} {{gsresult=[[@{constitution_gs}]]}} {{tfresult=[[@{constitution_tf}]]}}"></button>
<button type="roll" name="roll_Con" value="&{template:5eDefault} {{ability=1}} {{title=Constitution Check}} {{subheader=@{character_name}}} {{check=[[@{constitutionadvantage}]]}} {{target=[[{@{constitution}, 19}kl1]]}} {{gsresult=[[@{constitution_gs}]]}} {{tfresult=[[@{constitution_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Hit&nbsp;Points,&nbsp;Poison</div>
</div>
@@ -162,7 +162,7 @@
</select>
</div>
<div class="sheet-col-1-14 sheet-center">
<button type="roll" name="roll_Int" value="&{template:5eDefault} {{ability=1}} {{title=Intelligence Check}} {{subheader=@{character_name}}} {{check=[[@{intelligenceadvantage}]]}} {{target=[[@{intelligence}]]}} {{gsresult=[[@{intelligence_gs}]]}} {{tfresult=[[@{intelligence_tf}]]}}"></button>
<button type="roll" name="roll_Int" value="&{template:5eDefault} {{ability=1}} {{title=Intelligence Check}} {{subheader=@{character_name}}} {{check=[[@{intelligenceadvantage}]]}} {{target=[[{@{intelligence}, 19}kl1]]}} {{gsresult=[[@{intelligence_gs}]]}} {{tfresult=[[@{intelligence_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Lore,&nbsp;Insight,&nbsp;Lang</div>
</div>
@@ -183,7 +183,7 @@
</select>
</div>
<div class="sheet-col-1-14 sheet-center">
<button type="roll" name="roll_Per" value="&{template:5eDefault} {{ability=1}} {{title=Perception Check}} {{subheader=@{character_name}}} {{check=[[@{perceptionadvantage}]]}} {{target=[[@{perception}]]}} {{gsresult=[[@{perception_gs}]]}} {{tfresult=[[@{perception_tf}]]}}"></button>
<button type="roll" name="roll_Per" value="&{template:5eDefault} {{ability=1}} {{title=Perception Check}} {{subheader=@{character_name}}} {{check=[[@{perceptionadvantage}]]}} {{target=[[{@{perception}, 19}kl1]]}} {{gsresult=[[@{perception_gs}]]}} {{tfresult=[[@{perception_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Alertness,&nbsp;Detection</div>
</div>
@@ -204,7 +204,7 @@
</select>
</div>
<div class="sheet-col-1-14 sheet-center">
<button type="roll" name="roll_Will" value="&{template:5eDefault} {{ability=1}} {{title=Willpower Check}} {{subheader=@{character_name}}} {{check=[[@{willpoweradvantage}]]}} {{target=[[@{willpower}]]}} {{gsresult=[[@{willpower_gs}]]}} {{tfresult=[[@{willpower_tf}]]}}"></button>
<button type="roll" name="roll_Will" value="&{template:5eDefault} {{ability=1}} {{title=Willpower Check}} {{subheader=@{character_name}}} {{check=[[@{willpoweradvantage}]]}} {{target=[[{@{willpower}, 19}kl1]]}} {{gsresult=[[@{willpower_gs}]]}} {{tfresult=[[@{willpower_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Mental&nbsp;Defence,&nbsp;Recovery</div>
</div>
@@ -225,7 +225,7 @@
</select>
</div>
<div class="sheet-col-1-14 sheet-center">
<button type="roll" name="roll_Cha" value="&{template:5eDefault} {{ability=1}} {{title=Charisma Check}} {{subheader=@{character_name}}} {{check=[[@{charismaadvantage}]]}} {{target=[[@{charisma}]]}} {{gsresult=[[@{charisma_gs}]]}} {{tfresult=[[@{charisma_tf}]]}}"></button>
<button type="roll" name="roll_Cha" value="&{template:5eDefault} {{ability=1}} {{title=Charisma Check}} {{subheader=@{character_name}}} {{check=[[@{charismaadvantage}]]}} {{target=[[{@{charisma}, 19}kl1]]}} {{gsresult=[[@{charisma_gs}]]}} {{tfresult=[[@{charisma_tf}]]}}"></button>
</div>
<div class="sheet-col-1-4 sheet-tiny-note">Influence,&nbsp;Morale</div>
</div>