Skip to content

Commit

Permalink
Merge pull request #57 from mattraykowski/feature/54_fix_vtraits
Browse files Browse the repository at this point in the history
#54: Fixed villainy and fear ranks on monsters and villains.
  • Loading branch information
Armaklan authored Dec 2, 2021
2 parents 5e45944 + 28ff068 commit d3c1747
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions module/actor/sheets/monster.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class ActorSheetSS2eMonster extends ActorSheetSS2e {
* @return {undefined}
*/
_prepareMonsterItems(baseData, sheetData) {
sheetData.fear = baseData.data.data.fear;
sheetData.monsterqualities = getMonsterQualityItems(baseData);
}
}
1 change: 1 addition & 0 deletions module/actor/sheets/villain.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class ActorSheetSS2eVillain extends ActorSheetSS2e {
*/
_prepareVillainItems(baseData, sheetData) {
// Assign and return
sheetData.villainy = baseData.data.data.villainy;
sheetData.advantages = getAdvantageItems(baseData);
sheetData.artifacts = getArtifactItems(baseData);
sheetData.sorcery = getSorceryItems(baseData);
Expand Down
1 change: 0 additions & 1 deletion templates/actors/monster.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" height="100" width="100" />
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="{{localize 'SVNSEA2E.ActorName'}}" /></h1>
{{> "systems/svnsea2e/templates/actors/parts/actor-villainy.html"}}
{{> "systems/svnsea2e/templates/actors/parts/actor-wounds.html"}}
</div>
</header>
Expand Down

0 comments on commit d3c1747

Please sign in to comment.