Skip to content

Commit

Permalink
Add token artwork and biography entries
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclayton committed Nov 15, 2019
1 parent 89dcac2 commit 2dd0ff2
Show file tree
Hide file tree
Showing 17 changed files with 127 additions and 4 deletions.
5 changes: 4 additions & 1 deletion module/actor/sheets/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export class ActorSheet5e extends ActorSheet {

// The Actor and its Items
data.actor = duplicate(this.actor.data);
data.items = this.actor.items.map(i => i.data);
data.items = this.actor.items.map(i => {
i.data.labels = i.labels;
return i.data;
});
data.items.sort((a, b) => (a.sort || 0) - (b.sort || 0));
data.data = data.actor.data;
data.labels = this.actor.labels || {};
Expand Down
120 changes: 120 additions & 0 deletions packs/monsters.db

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions templates/actors/parts/actor-features.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ <h4>{{item.name}}</h4>
{{item.data.uses.value}} / {{item.data.uses.max}}
{{else if item.data.recharge.value}}
{{#if item.isOnCooldown}}
<a class="item-recharge rollable">{{../../labels.recharge}}</a>
<a class="item-recharge rollable">{{item.labels.recharge}}</a>
{{else}}
{{localize "DND5E.Charged"}}
{{/if}}
{{/if}}
</div>
<div class="item-detail item-action">
{{#if item.data.activation.type }}
{{../../labels.activation}}
{{item.labels.activation}}
{{/if}}
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/actors/parts/actor-inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h4>

<div class="item-detail item-action">
{{#if item.data.activation.type }}
{{labels.activation}}
{{item.labels.activation}}
{{/if}}
</div>

Expand Down
Binary file added tokens/beast/ConstrictorSnake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/DraftHorse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/Elk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/GiantConstrictorSnake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/GiantCoralSnake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/GiantElk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/GiantWolfSpider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/beast/RidingHorse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/dragon/Pseudodragon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/fiend/Dretch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/humanoid/Acolyte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/undead/Demilich.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tokens/undead/Flameskull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2dd0ff2

Please sign in to comment.