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

@@ -94,6 +94,41 @@ export class ItemSheetKH extends ItemSheet {
skillList.push(item)
}
}
<<<<<<< HEAD
this.position.width = 450;
this.position.height = 605;
break;
case "shipweapon":
// Load Skills Compendium skills
let skillList4
if(game.settings.get("kopparhavet", "gameSystem") === "hjaltarnas-tid") {
skillList4 = await game.packs.get("kopparhavet.skills-ht").getContent();
} else {
skillList4 = await game.packs.get("kopparhavet.skills").getContent();
}
for (let item of skillList4) {
if(item.data.type === "skill" && item.data.data.type.value === "combat") {
skillList.push(item)
}
}
// Retrieve any created skills as well
for (let item of game.items.entities) {
if(item.data.type === "skill" && item.data.data.type.value === "combat") {
skillList.push(item)
}
}
this.position.width = 530;
this.position.height = 750;
break;
case "shiptalent":
this.position.width = 405;
this.position.height = 570;
break;
=======
>>>>>>> master
default:
this.position.width = 450;
this.position.height = 605;

View File

@@ -21,6 +21,8 @@ export class ItemKH extends Item {
itemData.isSpell = itemData.type === "spell";
itemData.isTalent = itemData.type === "talent";
itemData.isWeapon = itemData.type === "weapon";
itemData.isShipWeapon = itemData.type === "shipweapon";
itemData.isShipTalent = itemData.type === "shiptalent";
const html = await renderTemplate("systems/kopparhavet/templates/chat/item-card.html", itemData);
@@ -56,6 +58,8 @@ export class ItemKH extends Item {
itemData.isSpell = itemData.type === "spell";
itemData.isTalent = itemData.type === "talent";
itemData.isWeapon = itemData.type === "weapon";
itemData.isShipWeapon = itemData.type === "shipweapon";
itemData.isShipTalent = itemData.type === "shiptalent";
return itemData
}