Skip to content

Commit

Permalink
fix: Misspelled variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Aug 22, 2020
1 parent 75f1c60 commit 45e1c69
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/module/sheets/TwodsixActorSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ export class TwodsixActorSheet extends ActorSheet {
const actorData = this.actor.data;
const data = actorData.data;

if (data.jackofalltrades.value < 3) {
this.actor.update({'data.jackofalltrades.value': data.jackofalltrades.value + 1})
if (data.jackOfAllTrades.value < 3) {
this.actor.update({'data.jackOfAllTrades.value': data.jackOfAllTrades.value + 1})
}
}

Expand All @@ -168,8 +168,8 @@ export class TwodsixActorSheet extends ActorSheet {
const actorData = this.actor.data;
const data = actorData.data;

if (data.jackofalltrades.value > 0) {
this.actor.update({'data.jackofalltrades.value': data.jackofalltrades.value - 1})
if (data.jackOfAllTrades.value > 0) {
this.actor.update({'data.jackOfAllTrades.value': data.jackOfAllTrades.value - 1})
}
}

Expand Down
16 changes: 8 additions & 8 deletions static/templates/actors/parts/actor-skills.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

<div class="skills-joat"></div>
<label for="joat" class="flex3 resource-label">Jack of All Trades</label>
<span id="joat" class="flex4">
<i class="fa fa-arrow-circle-down downgrade-joat downgrade-joat-{{data.jackofalltrades.value}}"></i>
<i class="fa fa-arrow-circle-up upgrade-joat upgrade-joat-{{data.jackofalltrades.value}}"></i>
{{data.jackofalltrades.value}}
<span class="flex4">
<i class="fa fa-arrow-circle-down downgrade-joat downgrade-joat-{{data.jackOfAllTrades.value}}"></i>
<i class="fa fa-arrow-circle-up upgrade-joat upgrade-joat-{{data.jackOfAllTrades.value}}"></i>
{{data.jackOfAllTrades.value}}
</span></div>


Expand All @@ -36,10 +36,10 @@
<span class="skill-arrows flex1">
<i data-label="{{key}}" class="fa fa-arrow-circle-down downgrade-skill-{{skill.trained}} downgrade-skill"></i>

<span class="skill-output flex1 skill-mod" id="data.skills.{{key}}.value" data-label="{{skill.label}}">{{numberFormat (getSkillValueWithJoat skill @root.data.jackofalltrades) decimals=0 sign=true}}</span>
<span class="skill-output flex1 skill-mod" data-label="{{skill.label}}">{{numberFormat (getSkillValueWithJoat skill @root.data.jackOfAllTrades) decimals=0 sign=true}}</span>

<i data-label="{{key}}" class="fa fa-arrow-circle-up upgrade-skill{{skill.value}} upgrade-skill"></i>
{{data.jackofalltrades.value}}
{{data.jackOfAllTrades.value}}
</span>


Expand All @@ -55,9 +55,9 @@
{{/select}}
</select>

<span class="total-output flex1 skill-mod">{{numberFormat (getTotalSkillValue skill @root.data.jackofalltrades skill.mod) decimals=0 sign=true}}</span>
<span class="total-output flex1 skill-mod">{{numberFormat (getTotalSkillValue skill @root.data.jackOfAllTrades skill.mod) decimals=0 sign=true}}</span>

<span class="mini-dice"><img class="rollable" data-label="{{skill.label}}" data-roll="2d6+{{getTotalSkillValue skill @root.data.jackofalltrades skill.mod}}" src="./systems/twodsix/assets/d6-icon.svg" alt="roll skill"/></span>
<span class="mini-dice"><img class="rollable" data-label="{{skill.label}}" data-roll="2d6+{{getTotalSkillValue skill @root.data.jackOfAllTrades skill.mod}}" src="./systems/twodsix/assets/d6-icon.svg" alt="roll skill"/></span>

</div>
{{/if}}
Expand Down

0 comments on commit 45e1c69

Please sign in to comment.