Added total success count on a hidden TN roll

This commit is contained in:
Vlyan
2021-02-12 14:01:00 +01:00
parent 48b17be458
commit 6b322be3f4
4 changed files with 29 additions and 9 deletions

View File

@@ -2,6 +2,17 @@
## 1.2.0 - Roll n Keep
- Added Roll n Keep 1st iteration !
- Ability to Keep, Discard, Re-roll and Swap:
- Keep: Keep the die for the next step, if it's an explosive one, automatically roll a new die
- Discard: Self explain, do not keep this die for the next step.
- Re-roll: Replace this die by a new roll (Usually Advantage & Disadvantage stuff). When a reroll is selected, all the dice in the current step will be tag as keep by default.
- Swap (Face): Set a desired face for this die (Some weird techniques stuff)
- Usage:
- All these actions are done by drag a die result and drop into a target action
- A colored border symbolize the choice made on the dice
- You can always change choices for the current step until you clic next.
- Please note all dice without choice will be discarded for the next step
- The GM has the ability to undo choices by left-clicking in the status headers
- Fix image's behavior on create for all items sub classes
- Click on rings in the PC/PNC sheet now open the DicePicker with the selected ring
- Added a booster for loading compendium's core items (speed up 20Q)

File diff suppressed because one or more lines are too long

View File

@@ -54,6 +54,11 @@
font-size: 1rem;
}
}
&.unknown {
background: rgba(255, 191, 0, 0.1);
border-color: rgba(133, 123, 51, 0.75);
color: rgba(155, 138, 55, 0.75);
}
&.fail {
background: rgba(255, 0, 0, 0.1);
border-color: rgba(155, 55, 55, 0.75);

View File

@@ -76,7 +76,11 @@
</div>
{{!-- Result text --}}
{{^if ../l5r5e.difficultyHidden}}
{{#if ../l5r5e.difficultyHidden}}
<div class="l5r5e dice-result-rnk unknown">
{{totalSuccess}} {{localize 'l5r5e.chatdices.successes'}}
</div>
{{else}}
<div class="l5r5e dice-result-rnk {{#ifCond totalSuccess '>=' ../l5r5e.difficulty}}success{{else}}fail{{/ifCond}}">
{{#ifCond totalSuccess '>=' ../l5r5e.difficulty}}
{{localize "l5r5e.chatdices.success_text"}} <i title="{{totalBonus}} {{localize 'l5r5e.chatdices.successes'}}">({{totalBonus}} {{localize "l5r5e.chatdices.bonus_text"}})</i>