FIX accelerated abilities

This commit is contained in:
Riernar
2022-01-29 10:43:58 +01:00
parent 3d440b6b52
commit ff11afa468
2 changed files with 11 additions and 5 deletions
+6 -3
View File
@@ -993,19 +993,22 @@ This file is automatically generated from a template. Any change will be overwri
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="number" class="number-xp advance" name="attr_Ability_advancementExp" value="5 * ((@{Ability_Score}) + 1)" disabled="true"/>
<input type="number" class="number-xp advance" name="attr_Ability_advancementExp" value="(5 - ((@{AcceleratedCheck}) * 4)) * ((@{Ability_Score}) + 1)" disabled="true"/>
<span class="tooltip" style="width: 200px; margin-left: -100px;" data-i18n="tooltip-xp-step">Additional XP required for the next score, beyond the XP for the current level.<br>If you store only the XP towards the next score in the xp input, increase the score when this amount is reached.</span>
</span>
/
<span class="has-tooltip">
<input type="number" class="number-xp total" name="attr_Ability_totalExp" value="5 * (((@{Ability_Score}) + 1) * ((@{Ability_Score}) + 2) / 2)" disabled="true"/>
<input type="number" class="number-xp total" name="attr_Ability_totalExp" value="(5 - ((@{AcceleratedCheck}) * 4)) * (((@{Ability_Score}) + 1) * ((@{Ability_Score}) + 2) / 2)" disabled="true"/>
<span class="tooltip" style="width: 200px; margin-left: -100px;" data-i18n="tooltip-xp-total">Total XP required for the next score.<br>If you store the total XP in the XP input, increase the score when this amount is reached.</span>
</span>
)
</span>
</span>
</span></th>
<td colspan="2"><span data-i18n="accelerated-">Accelerated</span> <input type="hidden" value="5" name="attr_AcceleratedCheck"><input type="checkbox" class="check" value="1" name="attr_AcceleratedCheck"></td>
<td colspan="2">
<span data-i18n="accelerated-">Accelerated</span>
<input type="checkbox" class="check" value="1" name="attr_AcceleratedCheck">
</td>
</tr>
</table>
</div>
+5 -2
View File
@@ -475,8 +475,11 @@ $$update_alerts$$
<td><input type="text" class="number_2" name="attr_Ability_Puissant" value="0"/><span></span></td>
</tr>
<tr>
<th colspan="2"><span class="flex-container-left">XP $$xp("Ability")$$</span></th>
<td colspan="2"><span data-i18n="accelerated-">Accelerated</span> <input type="hidden" value="5" name="attr_AcceleratedCheck"><input type="checkbox" class="check" value="1" name="attr_AcceleratedCheck"></td>
<th colspan="2"><span class="flex-container-left">XP $$xp("Ability", factor="(5 - ((@{AcceleratedCheck}) * 4))")$$</span></th>
<td colspan="2">
<span data-i18n="accelerated-">Accelerated</span>
<input type="checkbox" class="check" value="1" name="attr_AcceleratedCheck">
</td>
</tr>
</table>
</div>