This is now officially support fan-material
Add Ship sheet
Layout fix for adversaries
Ability to remove skills on adversaries, useful when duplicating a adversary
Option to automatically apply spell cost when rolled
Added Armor compendium
Added Weapons compendium
Skills compendium updated with descriptions
Co-Authored-By: erebus <erebus@rikspolisen.se>
Co-Committed-By: erebus <erebus@rikspolisen.se>
This commit was merged in pull request #3.
This commit is contained in:
2020-12-04 19:50:46 +00:00
parent 2e389704ea
commit c103fac27c
26 changed files with 559 additions and 76 deletions

View File

@@ -72,6 +72,8 @@ export class ActorSheetKH extends ActorSheet {
const gear = [];
const spells = [];
const attacks = [];
const shipweapons = [];
const shiptalents = [];
// Iterate through items, allocating to containers
for (let i of sheetData.items) {
@@ -96,6 +98,10 @@ export class ActorSheetKH extends ActorSheet {
spells.push(i);
} else if (i.type === "adversaryAttack") {
attacks.push(i);
} else if (i.type === "shiptalent") {
shiptalents.push(i);
} else if (i.type === "shipweapon") {
shipweapons.push(i);
}
}
@@ -109,8 +115,11 @@ export class ActorSheetKH extends ActorSheet {
actorData.gear = gear;
actorData.spells = spells;
actorData.attacks = attacks;
actorData.shiptalents = shiptalents;
actorData.shipweapons = shipweapons;
}
/* -------------------------------------------- */
/** @override */