Iteration on effects tab of character sheet

This commit is contained in:
Kakeman89 2020-10-19 13:04:48 -04:00
parent a40f7adb9c
commit 90fab8d89f
5 changed files with 16 additions and 8 deletions

View file

@ -40,8 +40,6 @@ export default class ItemSheet5e extends ItemSheet {
getData() {
const data = super.getData();
data.labels = this.item.labels;
// Include CONFIG values
data.config = CONFIG.SW5E;
// Item Type, Status, and Details
@ -57,6 +55,7 @@ export default class ItemSheet5e extends ItemSheet {
data.hasAttackRoll = this.item.hasAttack;
data.isHealing = data.item.data.actionType === "heal";
data.isFlatDC = getProperty(data.item.data, "save.scaling") === "flat";
data.isLine = ["line", "wall"].includes(data.item.data.target?.type);
// Vehicles
data.isCrewed = data.item.data.activation?.type === 'crew';