Skip to content

Commit

Permalink
fix: Exception on empty skill list. Wrong names for new tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Jul 5, 2020
1 parent 237925a commit e243fe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/module/actors/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export default class TwodsixActor extends Actor {
// Process Cascade skills
// So... if a child skill is set to 0 or 1, then the cascade parent is set to 0.
let key: string, attr: any;
for ([key, attr] of Object.entries(data.skills)) {
let o = data.skills || [];
for ([key, attr] of Object.entries(o)) {

if (attr.parent){
const pnt = data.skills[attr.parent];
Expand Down
6 changes: 3 additions & 3 deletions static/templates/actors/actor-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ <h1 class="charname">

{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="items">UCF</a>
<a class="item" data-tab="items">Skills</a>
<a class="item" data-tab="ucf">UCF</a>
<a class="item" data-tab="skills">Skills</a>
<a class="item" data-tab="items">Items</a>
<a class="item" data-tab="description">Description</a>

</nav>

Expand Down

0 comments on commit e243fe6

Please sign in to comment.