Skip to content

Commit

Permalink
Merge pull request #1649 from StarWarsFoundryVTT/weapon_special_1625
Browse files Browse the repository at this point in the history
fix(weapons): dice icons on special
  • Loading branch information
wrycu authored Aug 8, 2024
2 parents 75dbbed + 77e4b89 commit aff3c99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Includes species characteristics bonus when calculating upgrade cost ([#1638](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1638))
* Specializations: Talents are now correctly looked up in compendium
* Removed "unused" slot checking (on combatant defeat) as they would sometimes lead to actors being unable to act
* Weapon "special" text now properly renders dice icons ([#1625](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1625))

`1.902`
* Features:
Expand Down
1 change: 1 addition & 0 deletions modules/items/item-sheet-ffg.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class ItemSheetFFG extends ItemSheet {
case "shipweapon":
this.position.width = 550;
this.position.height = 750;
data.data.enrichedSpecial = await PopoutEditor.renderDiceImages(data?.data?.special?.value, this.actor ? this.actor : {});
break;
case "itemattachment":
this.position.width = 500;
Expand Down
2 changes: 1 addition & 1 deletion templates/items/ffg-weapon-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeh
{{#if (or (eq item.flags.starwarsffg.config.enablePrice undefined) (eq item.flags.starwarsffg.config.enablePrice true) )}}
{{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.ItemWeaponPrice" type="Number" name="data.price.value" value=data.price.value adjusted=data.price.adjusted)}}
{{/if}}
{{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.ItemWeaponSpecial" type="PopoutEditor" name="data.special.value" value=data.special.value )}}
{{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.ItemWeaponSpecial" type="PopoutEditor" name="data.special.value" value=data.enrichedSpecial )}}
</div>
<div class="flex-group-center weapon-values hidden-content">
{{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.ItemWeaponQuantity" type="Number" name="data.quantity.value" value=data.quantity.value)}}
Expand Down

0 comments on commit aff3c99

Please sign in to comment.