Skip to content

Commit

Permalink
Merge pull request dmdorman#550 from phBalance/phBalance/attack-power…
Browse files Browse the repository at this point in the history
…s-have-dice-roll-in-power-tab

Attack powers now have a dice icon in the character sheet's powers tab to allow rolling
  • Loading branch information
phBalance authored Dec 25, 2023
2 parents ce3bc9c + 7f581c9 commit db53c05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Releases

## Version 3.0.54 (So far...)

- The character sheet's power tab now has the dice icon for attack powers to initiate attacks.

## Version 3.0.53

- Fix crash with Aid and Telekinesis powers during upload. [#474](https://github.com/dmdorman/hero6e-foundryvtt/issues/474)
Expand Down
11 changes: 8 additions & 3 deletions templates/actor/actor-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,14 @@
<td>{{item.system.endEstimate}}</td>

<td>
{{#if item.system.showToggle}}<input class="item-toggle" type="checkbox"
Xname="item.system.active" {{checked item.system.active}} data-dtype="Boolean"
data-action="toggle" />
{{#if (ne item.system.subType "attack")}}
{{#if item.system.showToggle}}
<input class="item-toggle" type="checkbox"
Xname="item.system.active" {{checked item.system.active}} data-dtype="Boolean"
data-action="toggle" />
{{/if}}
{{else}}
<a class="item-image item-rollable"><i class="fas fa-dice" title="{{item.name}}" width="24" height="24"></i></a>
{{/if}}
</td>
<td>
Expand Down

0 comments on commit db53c05

Please sign in to comment.