v10 migration
This commit is contained in:
parent
562c6ab88d
commit
183cb2b097
@ -24,16 +24,15 @@ export class CrucibleActorSheet extends ActorSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
async getData() {
|
||||||
const objectData = CrucibleUtility.data(this.object);
|
const objectData = this.object.system
|
||||||
|
let actorData = duplicate(objectData)
|
||||||
let actorData = duplicate(CrucibleUtility.templateData(this.object));
|
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
id: objectData.id,
|
id: this.actor.id,
|
||||||
type: objectData.type,
|
type: this.actor.type,
|
||||||
img: objectData.img,
|
img: this.actor.img,
|
||||||
name: objectData.name,
|
name: this.actor.name,
|
||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
data: actorData,
|
data: actorData,
|
||||||
@ -200,9 +199,9 @@ export class CrucibleActorSheet extends ActorSheet {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _onDropItem(event, dragData) {
|
async _onDropItem(event, dragData) {
|
||||||
console.log(">>>>>> DROPPED!!!!")
|
console.log(">>>>>> DROPPED!!!!")
|
||||||
let item = await CrucibleUtility.searchItem( dragData)
|
const item = fromUuidSync(dragData.uuid)
|
||||||
if (item == undefined) {
|
if (item == undefined) {
|
||||||
item = this.actor.items.get( dragData.data._id )
|
item = this.actor.items.get( item.id )
|
||||||
}
|
}
|
||||||
let ret = await this.actor.preprocessItem( event, item, true )
|
let ret = await this.actor.preprocessItem( event, item, true )
|
||||||
if ( ret ) {
|
if ( ret ) {
|
||||||
|
@ -63,22 +63,22 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
computeHitPoints() {
|
computeHitPoints() {
|
||||||
let hp = duplicate(this.data.data.secondary.hp)
|
let hp = duplicate(this.system.secondary.hp)
|
||||||
let max = (this.data.data.abilities.str.value + this.data.data.abilities.con.value) * 6
|
let max = (this.system.abilities.str.value + this.system.abilities.con.value) * 6
|
||||||
if (max != hp.max || hp.value > max) {
|
if (max != hp.max || hp.value > max) {
|
||||||
hp.max = max
|
hp.max = max
|
||||||
hp.value = max // Init case
|
hp.value = max // Init case
|
||||||
this.update({ 'data.secondary.hp': hp })
|
this.update({ 'system.secondary.hp': hp })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
computeEffortPoints() {
|
computeEffortPoints() {
|
||||||
let effort = duplicate(this.data.data.secondary.effort)
|
let effort = duplicate(this.system.secondary.effort)
|
||||||
let max = (this.data.data.abilities.con.value + this.data.data.abilities.int.value) * 6
|
let max = (this.system.abilities.con.value + this.system.abilities.int.value) * 6
|
||||||
if (max != effort.max || effort.value > max) {
|
if (max != effort.max || effort.value > max) {
|
||||||
effort.max = max
|
effort.max = max
|
||||||
effort.value = max // Init case
|
effort.value = max // Init case
|
||||||
this.update({ 'data.secondary.effort': effort })
|
this.update({ 'system.secondary.effort': effort })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ export class CrucibleActor extends Actor {
|
|||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
|
|
||||||
if (this.type == 'character' || game.user.isGM) {
|
if (this.type == 'character' || game.user.isGM) {
|
||||||
this.data.data.encCapacity = this.getEncumbranceCapacity()
|
this.system.encCapacity = this.getEncumbranceCapacity()
|
||||||
this.buildContainerTree()
|
this.buildContainerTree()
|
||||||
this.computeHitPoints()
|
this.computeHitPoints()
|
||||||
this.computeEffortPoints()
|
this.computeEffortPoints()
|
||||||
@ -108,46 +108,46 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getMoneys() {
|
getMoneys() {
|
||||||
let comp = this.data.items.filter(item => item.type == 'money');
|
let comp = this.items.filter(item => item.type == 'money');
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getFeats() {
|
getFeats() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'feat') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'feat') || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getFeatsWithDie() {
|
getFeatsWithDie() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'feat' && item.data.data.isfeatdie) || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'feat' && item.system.isfeatdie) || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
getFeatsWithSL() {
|
getFeatsWithSL() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'feat' && item.data.data.issl) || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'feat' && item.system.issl) || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getLore() {
|
getLore() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'spell') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'spell') || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
getEquippedWeapons() {
|
getEquippedWeapons() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'weapon' && item.data.data.equipped) || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'weapon' && item.system.equipped) || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getArmors() {
|
getArmors() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'armor') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'armor') || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
getEquippedArmor() {
|
getEquippedArmor() {
|
||||||
let comp = this.data.items.find(item => item.type == 'armor' && item.data.data.equipped)
|
let comp = this.items.find(item => item.type == 'armor' && item.system.equipped)
|
||||||
if (comp) {
|
if (comp) {
|
||||||
return duplicate(comp)
|
return duplicate(comp)
|
||||||
}
|
}
|
||||||
@ -155,12 +155,12 @@ export class CrucibleActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getShields() {
|
getShields() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'shield') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'shield') || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
getEquippedShield() {
|
getEquippedShield() {
|
||||||
let comp = this.data.items.find(item => item.type == 'shield' && item.data.data.equipped)
|
let comp = this.items.find(item => item.type == 'shield' && item.system.equipped)
|
||||||
if (comp) {
|
if (comp) {
|
||||||
return duplicate(comp)
|
return duplicate(comp)
|
||||||
}
|
}
|
||||||
@ -168,7 +168,7 @@ export class CrucibleActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getRace() {
|
getRace() {
|
||||||
let race = this.data.items.filter(item => item.type == 'race')
|
let race = this.items.filter(item => item.type == 'race')
|
||||||
return race[0] ?? [];
|
return race[0] ?? [];
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -185,25 +185,22 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getWeapons() {
|
getWeapons() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'weapon') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'weapon') || []);
|
||||||
CrucibleUtility.sortArrayObjectsByName(comp)
|
CrucibleUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getItemById(id) {
|
getItemById(id) {
|
||||||
let item = this.data.items.find(item => item.id == id);
|
let item = this.items.find(item => item.id == id);
|
||||||
if (item) {
|
if (item) {
|
||||||
item = duplicate(item)
|
item = duplicate(item)
|
||||||
if (item.type == 'specialisation') {
|
|
||||||
item.data.dice = CrucibleUtility.getDiceFromLevel(item.data.level);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getSkills() {
|
getSkills() {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'skill') || [])
|
let comp = duplicate(this.items.filter(item => item.type == 'skill') || [])
|
||||||
for (let skill of comp) {
|
for (let skill of comp) {
|
||||||
CrucibleUtility.updateSkill(skill)
|
CrucibleUtility.updateSkill(skill)
|
||||||
}
|
}
|
||||||
@ -213,30 +210,30 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getRelevantAbility(statKey) {
|
getRelevantAbility(statKey) {
|
||||||
let comp = duplicate(this.data.items.filter(item => item.type == 'skill' && item.data.data.ability == ability) || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'skill' && item.system.ability == ability) || []);
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async equipItem(itemId) {
|
async equipItem(itemId) {
|
||||||
let item = this.data.items.find(item => item.id == itemId)
|
let item = this.items.find(item => item.id == itemId)
|
||||||
if (item && item.data.data) {
|
if (item && item.system) {
|
||||||
if (item.type == "armor") {
|
if (item.type == "armor") {
|
||||||
let armor = this.data.items.find(item => item.id != itemId && item.type == "armor" && item.data.data.equipped)
|
let armor = this.items.find(item => item.id != itemId && item.type == "armor" && item.system.equipped)
|
||||||
if (armor) {
|
if (armor) {
|
||||||
ui.notifications.warn("You already have an armor equipped!")
|
ui.notifications.warn("You already have an armor equipped!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (item.type == "shield") {
|
if (item.type == "shield") {
|
||||||
let shield = this.data.items.find(item => item.id != itemId && item.type == "shield" && item.data.data.equipped)
|
let shield = this.items.find(item => item.id != itemId && item.type == "shield" && item.system.equipped)
|
||||||
if (shield) {
|
if (shield) {
|
||||||
ui.notifications.warn("You already have a shield equipped!")
|
ui.notifications.warn("You already have a shield equipped!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let update = { _id: item.id, "data.equipped": !item.data.data.equipped };
|
let update = { _id: item.id, "system.equipped": !item.system.equipped };
|
||||||
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -254,11 +251,11 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
getEquipments() {
|
getEquipments() {
|
||||||
return this.data.items.filter(item => item.type == 'shield' || item.type == 'armor' || item.type == "weapon" || item.type == "equipment");
|
return this.items.filter(item => item.type == 'shield' || item.type == 'armor' || item.type == "weapon" || item.type == "equipment");
|
||||||
}
|
}
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
getEquipmentsOnly() {
|
getEquipmentsOnly() {
|
||||||
return duplicate(this.data.items.filter(item => item.type == "equipment") || [])
|
return duplicate(this.items.filter(item => item.type == "equipment") || [])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
@ -267,33 +264,33 @@ export class CrucibleActor extends Actor {
|
|||||||
reflex: {
|
reflex: {
|
||||||
"label": "Reflex Save",
|
"label": "Reflex Save",
|
||||||
"img": "systems/fvtt-crucible-rpg/images/icons/saves/reflex_save.webp",
|
"img": "systems/fvtt-crucible-rpg/images/icons/saves/reflex_save.webp",
|
||||||
"value": this.data.data.abilities.agi.value + this.data.data.abilities.wit.value
|
"value": this.system.abilities.agi.value + this.system.abilities.wit.value
|
||||||
},
|
},
|
||||||
fortitude: {
|
fortitude: {
|
||||||
"label": "Fortitude Save",
|
"label": "Fortitude Save",
|
||||||
"img": "systems/fvtt-crucible-rpg/images/icons/saves/fortitude_save.webp",
|
"img": "systems/fvtt-crucible-rpg/images/icons/saves/fortitude_save.webp",
|
||||||
"value": this.data.data.abilities.str.value + this.data.data.abilities.con.value
|
"value": this.system.abilities.str.value + this.system.abilities.con.value
|
||||||
},
|
},
|
||||||
willpower: {
|
willpower: {
|
||||||
"label": "Willpower Save",
|
"label": "Willpower Save",
|
||||||
"img": "systems/fvtt-crucible-rpg/images/icons/saves/will_save.webp",
|
"img": "systems/fvtt-crucible-rpg/images/icons/saves/will_save.webp",
|
||||||
"value": this.data.data.abilities.int.value + this.data.data.abilities.cha.value
|
"value": this.system.abilities.int.value + this.system.abilities.cha.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
async buildContainerTree() {
|
async buildContainerTree() {
|
||||||
let equipments = duplicate(this.data.items.filter(item => item.type == "equipment") || [])
|
let equipments = duplicate(this.items.filter(item => item.type == "equipment") || [])
|
||||||
for (let equip1 of equipments) {
|
for (let equip1 of equipments) {
|
||||||
if (equip1.data.iscontainer) {
|
if (equip1.system.iscontainer) {
|
||||||
equip1.data.contents = []
|
equip1.system.contents = []
|
||||||
equip1.data.contentsEnc = 0
|
equip1.system.contentsEnc = 0
|
||||||
for (let equip2 of equipments) {
|
for (let equip2 of equipments) {
|
||||||
if (equip1._id != equip2._id && equip2.data.containerid == equip1._id) {
|
if (equip1._id != equip2.id && equip2.system.containerid == equip1.id) {
|
||||||
equip1.data.contents.push(equip2)
|
equip1.system.contents.push(equip2)
|
||||||
let q = equip2.data.quantity ?? 1
|
let q = equip2.system.quantity ?? 1
|
||||||
equip1.data.contentsEnc += q * equip2.data.weight
|
equip1.system.contentsEnc += q * equip2.system.weight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -303,25 +300,25 @@ export class CrucibleActor extends Actor {
|
|||||||
let enc = 0
|
let enc = 0
|
||||||
for (let item of equipments) {
|
for (let item of equipments) {
|
||||||
//item.data.idrDice = CrucibleUtility.getDiceFromLevel(Number(item.data.idr))
|
//item.data.idrDice = CrucibleUtility.getDiceFromLevel(Number(item.data.idr))
|
||||||
if (item.data.equipped) {
|
if (item.system.equipped) {
|
||||||
if (item.data.iscontainer) {
|
if (item.system.iscontainer) {
|
||||||
enc += item.data.contentsEnc
|
enc += item.system.contentsEnc
|
||||||
} else if (item.data.containerid == "") {
|
} else if (item.system.containerid == "") {
|
||||||
let q = item.data.quantity ?? 1
|
let q = item.system.quantity ?? 1
|
||||||
enc += q * item.data.weight
|
enc += q * item.system.weight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let item of this.data.items) { // Process items/shields/armors
|
for (let item of this.items) { // Process items/shields/armors
|
||||||
if ((item.type == "weapon" || item.type == "shield" || item.type == "armor") && item.data.data.equipped) {
|
if ((item.type == "weapon" || item.type == "shield" || item.type == "armor") && item.system.equipped) {
|
||||||
let q = item.data.data.quantity ?? 1
|
let q = item.system.quantity ?? 1
|
||||||
enc += q * item.data.data.weight
|
enc += q * item.system.weight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store local values
|
// Store local values
|
||||||
this.encCurrent = enc
|
this.encCurrent = enc
|
||||||
this.containersTree = equipments.filter(item => item.data.containerid == "") // Returns the root of equipements without container
|
this.containersTree = equipments.filter(item => item.system.containerid == "") // Returns the root of equipements without container
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,36 +335,36 @@ export class CrucibleActor extends Actor {
|
|||||||
async incDecHP( formula ) {
|
async incDecHP( formula ) {
|
||||||
let dmgRoll = new Roll(formula).roll( {async: false})
|
let dmgRoll = new Roll(formula).roll( {async: false})
|
||||||
await CrucibleUtility.showDiceSoNice(dmgRoll, game.settings.get("core", "rollMode"))
|
await CrucibleUtility.showDiceSoNice(dmgRoll, game.settings.get("core", "rollMode"))
|
||||||
let hp = duplicate(this.data.data.secondary.hp)
|
let hp = duplicate(this.system.secondary.hp)
|
||||||
hp.value = Number(hp.value) + Number(dmgRoll.total)
|
hp.value = Number(hp.value) + Number(dmgRoll.total)
|
||||||
this.update( {'data.secondary.hp': hp })
|
this.update( {'system.secondary.hp': hp })
|
||||||
return Number(dmgRoll.total)
|
return Number(dmgRoll.total)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getAbility(abilKey) {
|
getAbility(abilKey) {
|
||||||
return this.data.data.abilities[abilKey];
|
return this.system.abilities[abilKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async addObjectToContainer(itemId, containerId) {
|
async addObjectToContainer(itemId, containerId) {
|
||||||
let container = this.data.items.find(item => item.id == containerId && item.data.data.iscontainer)
|
let container = this.items.find(item => item.id == containerId && item.system.iscontainer)
|
||||||
let object = this.data.items.find(item => item.id == itemId)
|
let object = this.items.find(item => item.id == itemId)
|
||||||
if (container) {
|
if (container) {
|
||||||
if (object.data.data.iscontainer) {
|
if (object.system.iscontainer) {
|
||||||
ui.notifications.warn("Only 1 level of container allowed")
|
ui.notifications.warn("Only 1 level of container allowed")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let alreadyInside = this.data.items.filter(item => item.data.data.containerid && item.data.data.containerid == containerId);
|
let alreadyInside = this.items.filter(item => item.system.containerid && item.system.containerid == containerId);
|
||||||
if (alreadyInside.length >= container.data.data.containercapacity) {
|
if (alreadyInside.length >= container.system.containercapacity) {
|
||||||
ui.notifications.warn("Container is already full !")
|
ui.notifications.warn("Container is already full !")
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
await this.updateEmbeddedDocuments("Item", [{ _id: object.id, 'data.containerid': containerId }])
|
await this.updateEmbeddedDocuments("Item", [{ _id: object.id, 'system.containerid': containerId }])
|
||||||
}
|
}
|
||||||
} else if (object && object.data.data.containerid) { // remove from container
|
} else if (object && object.system.containerid) { // remove from container
|
||||||
console.log("Removeing: ", object)
|
console.log("Removeing: ", object)
|
||||||
await this.updateEmbeddedDocuments("Item", [{ _id: object.id, 'data.containerid': "" }]);
|
await this.updateEmbeddedDocuments("Item", [{ _id: object.id, 'system.containerid': "" }]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -381,9 +378,9 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async equipGear(equipmentId) {
|
async equipGear(equipmentId) {
|
||||||
let item = this.data.items.find(item => item.id == equipmentId);
|
let item = this.items.find(item => item.id == equipmentId);
|
||||||
if (item && item.data.data) {
|
if (item && item.system) {
|
||||||
let update = { _id: item.id, "data.equipped": !item.data.data.equipped };
|
let update = { _id: item.id, "system.equipped": !item.system.equipped };
|
||||||
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -399,26 +396,26 @@ export class CrucibleActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getSubActors() {
|
getSubActors() {
|
||||||
let subActors = [];
|
let subActors = [];
|
||||||
for (let id of this.data.data.subactors) {
|
for (let id of this.system.subactors) {
|
||||||
subActors.push(duplicate(game.actors.get(id)))
|
subActors.push(duplicate(game.actors.get(id)))
|
||||||
}
|
}
|
||||||
return subActors;
|
return subActors;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async addSubActor(subActorId) {
|
async addSubActor(subActorId) {
|
||||||
let subActors = duplicate(this.data.data.subactors);
|
let subActors = duplicate(this.system.subactors);
|
||||||
subActors.push(subActorId);
|
subActors.push(subActorId);
|
||||||
await this.update({ 'data.subactors': subActors });
|
await this.update({ 'system.subactors': subActors });
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async delSubActor(subActorId) {
|
async delSubActor(subActorId) {
|
||||||
let newArray = [];
|
let newArray = [];
|
||||||
for (let id of this.data.data.subactors) {
|
for (let id of this.system.subactors) {
|
||||||
if (id != subActorId) {
|
if (id != subActorId) {
|
||||||
newArray.push(id);
|
newArray.push(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await this.update({ 'data.subactors': newArray });
|
await this.update({ 'system.subactors': newArray });
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -429,7 +426,7 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getOneSkill(skillId) {
|
getOneSkill(skillId) {
|
||||||
let skill = this.data.items.find(item => item.type == 'skill' && item.id == skillId)
|
let skill = this.items.find(item => item.type == 'skill' && item.id == skillId)
|
||||||
if (skill) {
|
if (skill) {
|
||||||
skill = duplicate(skill);
|
skill = duplicate(skill);
|
||||||
}
|
}
|
||||||
@ -438,13 +435,13 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async deleteAllItemsByType(itemType) {
|
async deleteAllItemsByType(itemType) {
|
||||||
let items = this.data.items.filter(item => item.type == itemType);
|
let items = this.items.filter(item => item.type == itemType);
|
||||||
await this.deleteEmbeddedDocuments('Item', items);
|
await this.deleteEmbeddedDocuments('Item', items);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async addItemWithoutDuplicate(newItem) {
|
async addItemWithoutDuplicate(newItem) {
|
||||||
let item = this.data.items.find(item => item.type == newItem.type && item.name.toLowerCase() == newItem.name.toLowerCase())
|
let item = this.items.find(item => item.type == newItem.type && item.name.toLowerCase() == newItem.name.toLowerCase())
|
||||||
if (!item) {
|
if (!item) {
|
||||||
await this.createEmbeddedDocuments('Item', [newItem]);
|
await this.createEmbeddedDocuments('Item', [newItem]);
|
||||||
}
|
}
|
||||||
@ -452,23 +449,23 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async incrementSkillExp(skillId, inc) {
|
async incrementSkillExp(skillId, inc) {
|
||||||
let skill = this.data.items.get(skillId)
|
let skill = this.items.get(skillId)
|
||||||
if (skill) {
|
if (skill) {
|
||||||
await this.updateEmbeddedDocuments('Item', [{ _id: skill.id, 'data.exp': skill.data.data.exp + inc }])
|
await this.updateEmbeddedDocuments('Item', [{ _id: skill.id, 'system.exp': skill.system.exp + inc }])
|
||||||
let chatData = {
|
let chatData = {
|
||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
whisper: [game.user.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
whisper: [game.user.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
||||||
content: `<div>${this.name} has gained 1 exp in the skill ${skill.name} (exp = ${skill.data.data.exp})</div`
|
content: `<div>${this.name} has gained 1 exp in the skill ${skill.name} (exp = ${skill.system.exp})</div`
|
||||||
}
|
}
|
||||||
ChatMessage.create(chatData)
|
ChatMessage.create(chatData)
|
||||||
if (skill.data.data.exp >= 25) {
|
if (skill.system.exp >= 25) {
|
||||||
await this.updateEmbeddedDocuments('Item', [{ _id: skill.id, 'data.exp': 0, 'data.explevel': skill.data.data.explevel + 1 }])
|
await this.updateEmbeddedDocuments('Item', [{ _id: skill.id, 'system.exp': 0, 'system.explevel': skill.system.explevel + 1 }])
|
||||||
let chatData = {
|
let chatData = {
|
||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
whisper: [game.user.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
whisper: [game.user.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
||||||
content: `<div>${this.name} has gained 1 exp SL in the skill ${skill.name} (new exp SL : ${skill.data.data.explevel}) !</div`
|
content: `<div>${this.name} has gained 1 exp SL in the skill ${skill.name} (new exp SL : ${skill.system.explevel}) !</div`
|
||||||
}
|
}
|
||||||
ChatMessage.create(chatData)
|
ChatMessage.create(chatData)
|
||||||
}
|
}
|
||||||
@ -477,21 +474,21 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async incDecQuantity(objetId, incDec = 0) {
|
async incDecQuantity(objetId, incDec = 0) {
|
||||||
let objetQ = this.data.items.get(objetId)
|
let objetQ = this.items.get(objetId)
|
||||||
if (objetQ) {
|
if (objetQ) {
|
||||||
let newQ = objetQ.data.data.quantity + incDec
|
let newQ = objetQ.system.quantity + incDec
|
||||||
if (newQ >= 0) {
|
if (newQ >= 0) {
|
||||||
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'data.quantity': newQ }]) // pdates one EmbeddedEntity
|
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'system.quantity': newQ }]) // pdates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async incDecAmmo(objetId, incDec = 0) {
|
async incDecAmmo(objetId, incDec = 0) {
|
||||||
let objetQ = this.data.items.get(objetId)
|
let objetQ = this.items.get(objetId)
|
||||||
if (objetQ) {
|
if (objetQ) {
|
||||||
let newQ = objetQ.data.data.ammocurrent + incDec;
|
let newQ = objetQ.system.ammocurrent + incDec;
|
||||||
if (newQ >= 0 && newQ <= objetQ.data.data.ammomax) {
|
if (newQ >= 0 && newQ <= objetQ.system.ammomax) {
|
||||||
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'data.ammocurrent': newQ }]); // pdates one EmbeddedEntity
|
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'system.ammocurrent': newQ }]); // pdates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -527,39 +524,46 @@ export class CrucibleActor extends Actor {
|
|||||||
rollAbility(abilityKey) {
|
rollAbility(abilityKey) {
|
||||||
let rollData = this.getCommonRollData(abilityKey)
|
let rollData = this.getCommonRollData(abilityKey)
|
||||||
rollData.mode = "ability"
|
rollData.mode = "ability"
|
||||||
|
if (rollData.target) {
|
||||||
|
ui.notifications.warn("You are targetting a token with a skill : please use a Weapon instead.")
|
||||||
|
return
|
||||||
|
}
|
||||||
CrucibleUtility.rollCrucible(rollData)
|
CrucibleUtility.rollCrucible(rollData)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollSkill(skillId) {
|
rollSkill(skillId) {
|
||||||
let skill = this.data.items.get(skillId)
|
let skill = this.items.get(skillId)
|
||||||
if (skill) {
|
if (skill) {
|
||||||
if (skill.data.islore && skill.data.level == 0) {
|
if (skill.system.islore && skill.system.level == 0) {
|
||||||
ui.notifications.warn("You can't use Lore Skills with a SL of 0.")
|
ui.notifications.warn("You can't use Lore Skills with a SL of 0.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
skill = duplicate(skill)
|
skill = duplicate(skill)
|
||||||
CrucibleUtility.updateSkill(skill)
|
CrucibleUtility.updateSkill(skill)
|
||||||
let abilityKey = skill.data.ability
|
let abilityKey = skill.system.ability
|
||||||
let rollData = this.getCommonRollData(abilityKey)
|
let rollData = this.getCommonRollData(abilityKey)
|
||||||
rollData.mode = "skill"
|
rollData.mode = "skill"
|
||||||
rollData.skill = skill
|
rollData.skill = skill
|
||||||
rollData.img = skill.img
|
rollData.img = skill.img
|
||||||
|
if (rollData.target) {
|
||||||
|
ui.notifications.warn("You are targetting a token with a skill : please use a Weapon instead.")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.startRoll(rollData)
|
this.startRoll(rollData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollWeapon(weaponId) {
|
rollWeapon(weaponId) {
|
||||||
let weapon = this.data.items.get(weaponId)
|
let weapon = this.items.get(weaponId)
|
||||||
if (weapon) {
|
if (weapon) {
|
||||||
weapon = duplicate(weapon)
|
weapon = duplicate(weapon)
|
||||||
let skill = this.data.items.find(item => item.name.toLowerCase() == weapon.data.skill.toLowerCase())
|
let skill = this.items.find(item => item.name.toLowerCase() == weapon.system.skill.toLowerCase())
|
||||||
if (skill) {
|
if (skill) {
|
||||||
skill = duplicate(skill)
|
skill = duplicate(skill)
|
||||||
CrucibleUtility.updateSkill(skill)
|
CrucibleUtility.updateSkill(skill)
|
||||||
let abilityKey = skill.data.ability
|
let abilityKey = skill.system.ability
|
||||||
let rollData = this.getCommonRollData(abilityKey)
|
let rollData = this.getCommonRollData(abilityKey)
|
||||||
rollData.mode = "weapon"
|
rollData.mode = "weapon"
|
||||||
rollData.skill = skill
|
rollData.skill = skill
|
||||||
@ -575,14 +579,14 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollDefenseMelee(attackRollData) {
|
rollDefenseMelee(attackRollData) {
|
||||||
let weapon = this.data.items.get(attackRollData.defenseWeaponId)
|
let weapon = this.items.get(attackRollData.defenseWeaponId)
|
||||||
if (weapon) {
|
if (weapon) {
|
||||||
weapon = duplicate(weapon)
|
weapon = duplicate(weapon)
|
||||||
let skill = this.data.items.find(item => item.name.toLowerCase() == weapon.data.skill.toLowerCase())
|
let skill = this.items.find(item => item.name.toLowerCase() == weapon.system.skill.toLowerCase())
|
||||||
if (skill) {
|
if (skill) {
|
||||||
skill = duplicate(skill)
|
skill = duplicate(skill)
|
||||||
CrucibleUtility.updateSkill(skill)
|
CrucibleUtility.updateSkill(skill)
|
||||||
let abilityKey = skill.data.ability
|
let abilityKey = skill.system.ability
|
||||||
let rollData = this.getCommonRollData(abilityKey)
|
let rollData = this.getCommonRollData(abilityKey)
|
||||||
rollData.defenderTokenId = undefined // Cleanup
|
rollData.defenderTokenId = undefined // Cleanup
|
||||||
rollData.mode = "weapondefense"
|
rollData.mode = "weapondefense"
|
||||||
@ -651,12 +655,13 @@ export class CrucibleActor extends Actor {
|
|||||||
multiply = 2
|
multiply = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let diceColor = armor.data.absorprionroll
|
let diceColor = armor.system.absorprionroll
|
||||||
let armorResult = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
let armorResult = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
||||||
let armorValue = (Number(armorResult.data.text) - reduce) * multiply
|
console.log("Armor log", armorResult)
|
||||||
|
let armorValue = (Number(armorResult.text) - reduce) * multiply
|
||||||
if ( advantage || disadvantage) {
|
if ( advantage || disadvantage) {
|
||||||
let armorResult2 = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
let armorResult2 = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
||||||
let armorValue2 = (Number(armorResult2.data.text) - reduce) * multiply
|
let armorValue2 = (Number(armorResult2.text) - reduce) * multiply
|
||||||
if ( advantage) {
|
if ( advantage) {
|
||||||
armorValue = (armorValue2 > armorValue) ? armorValue2 : armorValue
|
armorValue = (armorValue2 > armorValue) ? armorValue2 : armorValue
|
||||||
messages.push(`Armor advantage - Roll 1 = ${armorValue} - Roll 2 = ${armorValue2}`)
|
messages.push(`Armor advantage - Roll 1 = ${armorValue} - Roll 2 = ${armorValue2}`)
|
||||||
@ -685,8 +690,10 @@ export class CrucibleActor extends Actor {
|
|||||||
let rollData = this.getCommonRollData()
|
let rollData = this.getCommonRollData()
|
||||||
rollData.mode = "save"
|
rollData.mode = "save"
|
||||||
rollData.save = save
|
rollData.save = save
|
||||||
//rollData.img = skill.img
|
if (rollData.target) {
|
||||||
|
ui.notifications.warn("You are targetting a token with a save roll - Not authorized.")
|
||||||
|
return
|
||||||
|
}
|
||||||
this.startRoll(rollData)
|
this.startRoll(rollData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,19 +48,19 @@ export class CrucibleItemSheet extends ItemSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
async getData() {
|
||||||
const objectData = CrucibleUtility.data(this.object);
|
|
||||||
if ( objectData.type == "skill") {
|
if ( this.object.type == "skill") {
|
||||||
console.log(objectData)
|
CrucibleUtility.updateSkill(this.object)
|
||||||
CrucibleUtility.updateSkill(objectData)
|
|
||||||
}
|
}
|
||||||
|
let objectData = duplicate(this.object.system)
|
||||||
|
|
||||||
let itemData = foundry.utils.deepClone(CrucibleUtility.templateData(this.object))
|
let itemData = objectData
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
id: this.id,
|
id: this.id,
|
||||||
type: objectData.type,
|
type: this.object.type,
|
||||||
img: objectData.img,
|
img: this.object.img,
|
||||||
name: objectData.name,
|
name: this.object.name,
|
||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
weaponSkills: CrucibleUtility.getWeaponSkills(),
|
weaponSkills: CrucibleUtility.getWeaponSkills(),
|
||||||
@ -72,7 +72,7 @@ export class CrucibleItemSheet extends ItemSheet {
|
|||||||
isGM: game.user.isGM
|
isGM: game.user.isGM
|
||||||
}
|
}
|
||||||
|
|
||||||
this.options.editable = !(this.object.data.origin == "embeddedItem");
|
this.options.editable = !(this.object.origin == "embeddedItem");
|
||||||
console.log("ITEM DATA", formData, this);
|
console.log("ITEM DATA", formData, this);
|
||||||
return formData;
|
return formData;
|
||||||
}
|
}
|
||||||
@ -136,13 +136,6 @@ export class CrucibleItemSheet extends ItemSheet {
|
|||||||
this.deleteSubitem(ev);
|
this.deleteSubitem(ev);
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find('.stat-choice-flag').click(ev => {
|
|
||||||
let idx = $(ev.currentTarget).data("stat-idx");
|
|
||||||
let array = duplicate(this.object.data.data.statincreasechoice);
|
|
||||||
array[Number(idx)].flag = !array[Number(idx)].flag;
|
|
||||||
this.object.update({ "data.statincreasechoice": array });
|
|
||||||
});
|
|
||||||
|
|
||||||
// Update Inventory Item
|
// Update Inventory Item
|
||||||
html.find('.item-delete').click(ev => {
|
html.find('.item-delete').click(ev => {
|
||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
|
@ -74,8 +74,8 @@ export class CrucibleUtility {
|
|||||||
static async ready() {
|
static async ready() {
|
||||||
const skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills")
|
const skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills")
|
||||||
this.skills = skills.map(i => i.toObject())
|
this.skills = skills.map(i => i.toObject())
|
||||||
this.weaponSkills = duplicate(this.skills.filter(item => item.data.isweaponskill))
|
this.weaponSkills = duplicate(this.skills.filter(item => item.system.isweaponskill))
|
||||||
this.shieldSkills = duplicate(this.skills.filter(item => item.data.isshieldskill))
|
this.shieldSkills = duplicate(this.skills.filter(item => item.system.isshieldskill))
|
||||||
|
|
||||||
const rollTables = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.rolltables")
|
const rollTables = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.rolltables")
|
||||||
this.rollTables = rollTables.map(i => i.toObject())
|
this.rollTables = rollTables.map(i => i.toObject())
|
||||||
@ -96,56 +96,56 @@ export class CrucibleUtility {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isArmorLight(armor) {
|
static isArmorLight(armor) {
|
||||||
if (armor && (armor.data.armortype.includes("light") || armor.data.armortype.includes("clothes"))) {
|
if (armor && (armor.system.armortype.includes("light") || armor.system.armortype.includes("clothes"))) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponPenetrating(weapon) {
|
static isWeaponPenetrating(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("penetrating")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("penetrating")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponLight(weapon) {
|
static isWeaponLight(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("light")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("light")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponHeavy(weapon) {
|
static isWeaponHeavy(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("heavy")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("heavy")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponHack(weapon) {
|
static isWeaponHack(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("hack")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("hack")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponUndamaging(weapon) {
|
static isWeaponUndamaging(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("undamaging")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("undamaging")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponDangerous(weapon) {
|
static isWeaponDangerous(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("dangerous")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("dangerous")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isWeaponDeadly(weapon) {
|
static isWeaponDeadly(weapon) {
|
||||||
if (weapon && weapon.data.qualities.toLowerCase().includes("deadly")) {
|
if (weapon && weapon.system.qualities.toLowerCase().includes("deadly")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
@ -168,7 +168,7 @@ export class CrucibleUtility {
|
|||||||
static async getCritical(level, weapon) {
|
static async getCritical(level, weapon) {
|
||||||
const pack = game.packs.get("fvtt-crucible-rpg.rolltables")
|
const pack = game.packs.get("fvtt-crucible-rpg.rolltables")
|
||||||
|
|
||||||
let tableName = "Crit " + level + " (" + this.upperFirst(weapon.data.damage) + ")"
|
let tableName = "Crit " + level + " (" + this.upperFirst(weapon.system.damage) + ")"
|
||||||
const index = await pack.getIndex()
|
const index = await pack.getIndex()
|
||||||
const entry = index.find(e => e.name === tableName)
|
const entry = index.find(e => e.name === tableName)
|
||||||
let table = await pack.getDocument(entry._id)
|
let table = await pack.getDocument(entry._id)
|
||||||
@ -238,18 +238,6 @@ export class CrucibleUtility {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static templateData(it) {
|
|
||||||
return CrucibleUtility.data(it)?.data ?? {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static data(it) {
|
|
||||||
if (it instanceof Actor || it instanceof Item || it instanceof Combatant) {
|
|
||||||
return it.data;
|
|
||||||
}
|
|
||||||
return it;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static createDirectOptionList(min, max) {
|
static createDirectOptionList(min, max) {
|
||||||
@ -302,15 +290,16 @@ export class CrucibleUtility {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async displayDefenseMessage(rollData) {
|
static async displayDefenseMessage(rollData) {
|
||||||
if (rollData.defenderTokenId) {
|
if (rollData.mode == "weapon" && rollData.defenderTokenId) {
|
||||||
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
|
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
|
||||||
if (game.user.isGM || (game.user.character && game.user.character.id == defender.id)) {
|
if (game.user.isGM || (game.user.character && game.user.character.id == defender.id)) {
|
||||||
rollData.defender = defender
|
rollData.defender = defender
|
||||||
rollData.defenderWeapons = defender.getEquippedWeapons()
|
rollData.defenderWeapons = defender.getEquippedWeapons()
|
||||||
rollData.isRollTarget = rollData.weapon?.data.isranged
|
rollData.isRollTarget = rollData.weapon?.system.isranged
|
||||||
this.createChatWithRollMode(defender.name, {
|
this.createChatWithRollMode(defender.name, {
|
||||||
|
name: defender.name,
|
||||||
alias: defender.name,
|
alias: defender.name,
|
||||||
user: defender.id,
|
//user: defender.id,
|
||||||
content: await renderTemplate(`systems/fvtt-crucible-rpg/templates/chat-request-defense.html`, rollData),
|
content: await renderTemplate(`systems/fvtt-crucible-rpg/templates/chat-request-defense.html`, rollData),
|
||||||
whisper: [defender.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
whisper: [defender.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
||||||
})
|
})
|
||||||
@ -330,7 +319,7 @@ export class CrucibleUtility {
|
|||||||
return { result: "miss" }
|
return { result: "miss" }
|
||||||
}
|
}
|
||||||
if (rollData.sumSuccess == 0) {
|
if (rollData.sumSuccess == 0) {
|
||||||
if (rollData.attackRollData.weapon.data.isranged) {
|
if (rollData.attackRollData.weapon.system.isranged) {
|
||||||
return { result: "target_space", aoe: true }
|
return { result: "target_space", aoe: true }
|
||||||
} else {
|
} else {
|
||||||
return { result: "clash", hack_vs_shields: true }
|
return { result: "clash", hack_vs_shields: true }
|
||||||
@ -375,7 +364,7 @@ export class CrucibleUtility {
|
|||||||
result.attackerHPLossValue = await attacker.incDecHP("-" + result.attackerHPLoss)
|
result.attackerHPLossValue = await attacker.incDecHP("-" + result.attackerHPLoss)
|
||||||
}
|
}
|
||||||
if (attacker && defender && result.defenderDamage) {
|
if (attacker && defender && result.defenderDamage) {
|
||||||
let dmgDice = (rollData.attackRollData.weapon.data.isranged) ? "d6" : "d8"
|
let dmgDice = (rollData.attackRollData.weapon.system.isranged) ? "d6" : "d8"
|
||||||
result.damageWeaponFormula = result.defenderDamage + dmgDice
|
result.damageWeaponFormula = result.defenderDamage + dmgDice
|
||||||
result.defenderHPLossValue = await defender.incDecHP("-" + result.damageWeaponFormula)
|
result.defenderHPLossValue = await defender.incDecHP("-" + result.damageWeaponFormula)
|
||||||
}
|
}
|
||||||
@ -385,7 +374,7 @@ export class CrucibleUtility {
|
|||||||
if (result.critical_1 || result.critical_2) {
|
if (result.critical_1 || result.critical_2) {
|
||||||
let isDeadly = CrucibleUtility.isWeaponDeadly(rollData.attackRollData.weapon)
|
let isDeadly = CrucibleUtility.isWeaponDeadly(rollData.attackRollData.weapon)
|
||||||
result.critical = await this.getCritical((result.critical_1) ? "I" : "II", rollData.attackRollData.weapon )
|
result.critical = await this.getCritical((result.critical_1) ? "I" : "II", rollData.attackRollData.weapon )
|
||||||
result.criticalText = result.critical.data.text
|
result.criticalText = result.critical.text
|
||||||
}
|
}
|
||||||
this.createChatWithRollMode(rollData.alias, {
|
this.createChatWithRollMode(rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-crucible-rpg/templates/chat-attack-defense-result.html`, rollData)
|
content: await renderTemplate(`systems/fvtt-crucible-rpg/templates/chat-attack-defense-result.html`, rollData)
|
||||||
@ -486,9 +475,9 @@ export class CrucibleUtility {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static updateSkill(skill) {
|
static updateSkill(skill) {
|
||||||
skill.data.level = skill.data.background + skill.data.basic + skill.data.class + skill.data.explevel
|
skill.system.level = skill.system.background + skill.system.basic + skill.system.class + skill.system.explevel
|
||||||
if (skill.data.level > 7) { skill.data.level = 7 }
|
if (skill.system.level > 7) { skill.system.level = 7 }
|
||||||
skill.data.skilldice = __skillLevel2Dice[skill.data.level]
|
skill.system.skilldice = __skillLevel2Dice[skill.system.level]
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -511,28 +500,28 @@ export class CrucibleUtility {
|
|||||||
// feat => 4
|
// feat => 4
|
||||||
// bonus => 6
|
// bonus => 6
|
||||||
if (rollData.skill) {
|
if (rollData.skill) {
|
||||||
let level = rollData.skill.data.level
|
let level = rollData.skill.system.level
|
||||||
if (rollData.skill.data.issl2) {
|
if (rollData.skill.system.issl2) {
|
||||||
rollData.hasSLBonus = true
|
rollData.hasSLBonus = true
|
||||||
level += 2
|
level += 2
|
||||||
if (level > 7) { level = 7 }
|
if (level > 7) { level = 7 }
|
||||||
}
|
}
|
||||||
rollData.skill.data.skilldice = __skillLevel2Dice[level]
|
rollData.skill.system.skilldice = __skillLevel2Dice[level]
|
||||||
diceFormula += "+" + String(rollData.skill.data.skilldice) + "cs>=5"
|
diceFormula += "+" + String(rollData.skill.system.skilldice) + "cs>=5"
|
||||||
|
|
||||||
if (rollData.skill.data.skilltype == "complex" && rollData.skill.data.level == 0) {
|
if (rollData.skill.system.skilltype == "complex" && rollData.skill.system.level == 0) {
|
||||||
rollData.complexSkillDisadvantage = true
|
rollData.complexSkillDisadvantage = true
|
||||||
rollData.rollAdvantage = "roll-disadvantage"
|
rollData.rollAdvantage = "roll-disadvantage"
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rollData.skill.data.isfeatdie) {
|
if (rollData.skill.system.isfeatdie) {
|
||||||
rollData.hasFeatDie = true
|
rollData.hasFeatDie = true
|
||||||
diceFormula += "+ 1d10cs>=5"
|
diceFormula += "+ 1d10cs>=5"
|
||||||
} else {
|
} else {
|
||||||
diceFormula += `+ 0d10cs>=5`
|
diceFormula += `+ 0d10cs>=5`
|
||||||
}
|
}
|
||||||
if (rollData.skill.data.bonusdice != "none") {
|
if (rollData.skill.system.bonusdice != "none") {
|
||||||
rollData.hasBonusDice = rollData.skill.data.bonusdice
|
rollData.hasBonusDice = rollData.skill.system.bonusdice
|
||||||
diceFormula += `+ ${rollData.hasBonusDice}cs>=5`
|
diceFormula += `+ ${rollData.hasBonusDice}cs>=5`
|
||||||
} else {
|
} else {
|
||||||
diceFormula += `+ 0d6cs>=5`
|
diceFormula += `+ 0d6cs>=5`
|
||||||
@ -564,11 +553,11 @@ export class CrucibleUtility {
|
|||||||
// armor => 12
|
// armor => 12
|
||||||
let skillArmorPenalty = 0
|
let skillArmorPenalty = 0
|
||||||
for (let armor of rollData.armors) {
|
for (let armor of rollData.armors) {
|
||||||
if (armor.data.equipped) {
|
if (armor.system.equipped) {
|
||||||
skillArmorPenalty += armor.data.skillpenalty
|
skillArmorPenalty += armor.system.skillpenalty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rollData.skill && rollData.skill.data.armorpenalty && skillArmorPenalty > 0) {
|
if (rollData.skill && rollData.skill.system.armorpenalty && skillArmorPenalty > 0) {
|
||||||
rollData.skillArmorPenalty = skillArmorPenalty
|
rollData.skillArmorPenalty = skillArmorPenalty
|
||||||
diceFormula += `- ${skillArmorPenalty}d8cs>=5`
|
diceFormula += `- ${skillArmorPenalty}d8cs>=5`
|
||||||
} else {
|
} else {
|
||||||
@ -577,7 +566,7 @@ export class CrucibleUtility {
|
|||||||
|
|
||||||
// shield => 14
|
// shield => 14
|
||||||
if (rollData.useshield && rollData.shield) {
|
if (rollData.useshield && rollData.shield) {
|
||||||
diceFormula += "+ 1" + String(rollData.shield.data.shielddie) + "cs>=5"
|
diceFormula += "+ 1" + String(rollData.shield.system.shielddie) + "cs>=5"
|
||||||
} else {
|
} else {
|
||||||
diceFormula += " + 0d6cs>=5"
|
diceFormula += " + 0d6cs>=5"
|
||||||
}
|
}
|
||||||
@ -603,11 +592,15 @@ export class CrucibleUtility {
|
|||||||
rollData.rollOrder = 2
|
rollData.rollOrder = 2
|
||||||
let myRoll2 = new Roll(diceFormula).roll({ async: false })
|
let myRoll2 = new Roll(diceFormula).roll({ async: false })
|
||||||
await this.showDiceSoNice(myRoll2, game.settings.get("core", "rollMode"))
|
await this.showDiceSoNice(myRoll2, game.settings.get("core", "rollMode"))
|
||||||
|
|
||||||
rollData.roll = myRoll2 // Tmp switch to display the proper results
|
rollData.roll = myRoll2 // Tmp switch to display the proper results
|
||||||
|
rollData.nbSuccess = myRoll2.total
|
||||||
this.createChatWithRollMode(rollData.alias, {
|
this.createChatWithRollMode(rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-crucible-rpg/templates/chat-generic-result.html`, rollData)
|
content: await renderTemplate(`systems/fvtt-crucible-rpg/templates/chat-generic-result.html`, rollData)
|
||||||
})
|
})
|
||||||
rollData.roll = myRoll // Revert the tmp switch
|
rollData.roll = myRoll // Revert the tmp switch
|
||||||
|
rollData.nbSuccess = myRoll.total
|
||||||
|
|
||||||
if (rollData.rollAdvantage == "roll-advantage") {
|
if (rollData.rollAdvantage == "roll-advantage") {
|
||||||
if (myRoll2.total > rollData.nbSuccess) {
|
if (myRoll2.total > rollData.nbSuccess) {
|
||||||
hasChanged = true
|
hasChanged = true
|
||||||
@ -626,10 +619,10 @@ export class CrucibleUtility {
|
|||||||
|
|
||||||
rollData.isFirstRollAdvantage = false
|
rollData.isFirstRollAdvantage = false
|
||||||
// Manage exp
|
// Manage exp
|
||||||
if (rollData.skill && rollData.skill.data.level > 0) {
|
if (rollData.skill && rollData.skill.system.level > 0) {
|
||||||
let nbSkillSuccess = rollData.roll.terms[2].total
|
let nbSkillSuccess = rollData.roll.terms[2].total
|
||||||
if (nbSkillSuccess == 0 || nbSkillSuccess == rollData.skill.data.level) {
|
if (nbSkillSuccess == 0 || nbSkillSuccess == rollData.skill.system.level) {
|
||||||
actor.incrementSkillExp(rollData.skill._id, 1)
|
actor.incrementSkillExp(rollData.skill.id, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -665,7 +658,7 @@ export class CrucibleUtility {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static getUsers(filter) {
|
static getUsers(filter) {
|
||||||
return game.users.filter(filter).map(user => user.data._id);
|
return game.users.filter(filter).map(user => user.id);
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static getWhisperRecipients(rollMode, name) {
|
static getWhisperRecipients(rollMode, name) {
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
{"_id":"3QGyPwA2H8RwtFBr","name":"Hand Axe (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hand%20Axe.webp","data":{"ability":"dex","isproficient":false,"qualities":"","flaws":"Light","damage":"Slashing","range":"Same Zone","maxrange":"1 Zone","minstr":0,"cost":0,"equipped":false,"description":"<p>Hand Axe</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"3QGyPwA2H8RwtFBr","name":"Hand Axe (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hand%20Axe.webp","data":{"isproficient":false,"skill":"Weapon - Hand Axe (Thrown)","qualities":"","flaws":"Light","damage":"Slashing","isranged":true,"range":"Same Zone","maxrange":"1 Zone","minstr":0,"cost":0,"equipped":false,"description":"<p>Hand Axe</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"3VT9Bgs1lpFRqgWt","name":"2-H Pick","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Pick.webp","data":{"ability":"str","isproficient":false,"qualities":"Heavy,Penetrating","flaws":"","damage":"Piercing","range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Pick</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"3VT9Bgs1lpFRqgWt","name":"2-H Pick","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Pick.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Pick","qualities":"Heavy,Penetrating","flaws":"","damage":"Piercing","isranged":false,"range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Pick</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"6B8kMi1FHv5njtbD","name":"2-H Flail","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Flail.webp","data":{"ability":"agi","isproficient":false,"qualities":"Heavy,Reach,Entangle","flaws":"Dangerous","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Flail</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"6B8kMi1FHv5njtbD","name":"2-H Flail","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Flail.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Flail","qualities":"Heavy,Reach,Entangle","flaws":"Dangerous","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Flail</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"A4O9ISnyCqtckanV","name":"Dagger (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Dagger.webp","data":{"ability":"agi","isproficient":false,"qualities":"","flaws":"Light","damage":"Piercing","range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Dagger</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"A4O9ISnyCqtckanV","name":"Dagger (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Dagger.webp","data":{"isproficient":false,"skill":"Weapon - Dagger (Melee)","qualities":"","flaws":"Light","damage":"Piercing","isranged":false,"range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Dagger</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"Czf55rIkPBsaLLfN","name":"Hammer (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hammer.webp","data":{"ability":"dex","isproficient":false,"qualities":"","flaws":"","damage":"Bludgeoning","range":"Same Zone","maxrange":"1 Zone","minstr":0,"cost":0,"equipped":false,"description":"<p>Hammer</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"Czf55rIkPBsaLLfN","name":"Hammer (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hammer.webp","data":{"isproficient":false,"skill":"Weapon - Hammer (Thrown)","qualities":"","flaws":"","damage":"Bludgeoning","isranged":true,"range":"Same Zone","maxrange":"1 Zone","minstr":0,"cost":0,"equipped":false,"description":"<p>Hammer</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"GrjekQXKaFnFODXK","name":"Unarmed","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Unarmed.webp","data":{"ability":"agi","isproficient":false,"qualities":"","flaws":"Undamaging","damage":"Bludgeoning","range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Unarmed</p>\n<p> </p>\n<p>As an UNDAMAGING attack the maximum Result is +2.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"GrjekQXKaFnFODXK","name":"Unarmed","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Unarmed.webp","data":{"isproficient":false,"skill":"Weapon - Unarmed","qualities":"","flaws":"Undamaging","damage":"Bludgeoning","isranged":false,"range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Unarmed</p>\n<p> </p>\n<p>As an UNDAMAGING attack the maximum Result is +2.</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"JXK1qP9uqlxvcnxB","name":"2-H Club","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Club.webp","data":{"ability":"str","isproficient":false,"qualities":"","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>2-H Club</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"JXK1qP9uqlxvcnxB","name":"2-H Club","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Club.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Club","qualities":"","flaws":"","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>2-H Club</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"LATr6R7cNOtYJgaO","name":"Hammer (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hammer.webp","data":{"ability":"str","isproficient":false,"qualities":"","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Hammer</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"LATr6R7cNOtYJgaO","name":"Hammer (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hammer.webp","data":{"isproficient":false,"skill":"Weapon - Hammer (Melee)","qualities":"","flaws":"","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Hammer</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"MpzJvauaq7UKdyi5","name":"Sling","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Sling.webp","data":{"ability":"dex","isproficient":false,"qualities":"","flaws":"","damage":"Bludgeoning","range":"2 Zones","maxrange":"3 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Sling</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"MpzJvauaq7UKdyi5","name":"Sling","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Sling.webp","data":{"isproficient":false,"skill":"Weapon - Sling","qualities":"","flaws":"","damage":"Bludgeoning","isranged":true,"range":"2 Zones","maxrange":"3 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Sling</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"PDXDPlqck6VURcGB","name":"2-H Axe","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Axe.webp","data":{"ability":"str","isproficient":false,"qualities":"Heavy,Hack","flaws":"","damage":"Slashing","range":"","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Axe</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"PDXDPlqck6VURcGB","name":"2-H Axe","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Axe.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Axe","qualities":"Heavy,Hack","flaws":"","damage":"Slashing","isranged":false,"range":"","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Axe</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"Q4tpJZV4HAsyVAWT","name":"2-H Mace","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Mace.webp","data":{"ability":"str","isproficient":false,"qualities":"Heavy","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Mace</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"Q4tpJZV4HAsyVAWT","name":"2-H Mace","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Mace.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Hammer","qualities":"Heavy","flaws":"","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Mace</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"QRMIOZHBrauWQjTb","name":"Bite","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Bite.webp","data":{"ability":"agi","isproficient":false,"qualities":"","flaws":"","damage":"Piercing","range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Bite - natural weapon</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"QRMIOZHBrauWQjTb","name":"Bite","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Bite.webp","data":{"isproficient":false,"skill":"Weapon - Bite","qualities":"","flaws":"","damage":"Piercing","isranged":false,"range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Bite - natural weapon</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"QzJZr6guDrUjsuTU","name":"Spear (1-H)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Spear.webp","data":{"ability":"agi","isproficient":false,"qualities":"Reach","flaws":"","damage":"Piercing","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Spear</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"QzJZr6guDrUjsuTU","name":"Spear (1-H)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Spear.webp","data":{"isproficient":false,"skill":"Weapon - Spear (1-H)","qualities":"Reach","flaws":"","damage":"Piercing","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Spear</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"Sm3Pze2LY6BnoTBq","name":"Mace","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Mace.webp","data":{"ability":"str","isproficient":false,"qualities":"","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Mace</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"Sm3Pze2LY6BnoTBq","name":"Mace","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Mace.webp","data":{"isproficient":false,"skill":"Weapon - Mace","qualities":"","flaws":"","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Mace</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"VOg1kpjhJ7h3XsSk","name":"Club","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Club.webp","data":{"ability":"str","isproficient":false,"qualities":"","flaws":"Light","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Club</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"VOg1kpjhJ7h3XsSk","name":"Club","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Club.webp","data":{"isproficient":false,"skill":"Weapon - Club","qualities":"","flaws":"Light","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Club</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"WvqALDHVEVt6TskF","name":"Javelin","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Javelin.webp","data":{"ability":"agi","isproficient":false,"qualities":"Penetrating","flaws":"","damage":"Piercing","range":"2 Zones","maxrange":"4 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Javelin</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"WvqALDHVEVt6TskF","name":"Javelin","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Javelin.webp","data":{"isproficient":false,"skill":"Weapon - Javelin","qualities":"Penetrating","flaws":"","damage":"Piercing","isranged":true,"range":"2 Zones","maxrange":"4 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Javelin</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"XTfw2cefPXucQgMG","name":"Crossbow","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Crossbow.webp","data":{"isproficient":false,"skill":"Axe","qualities":"Penetrating","flaws":"Reload","damage":"Piercing","range":"3 Zones","maxrange":"5 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Crossbow</p>\n<p>Requires 1 Action to reload after shooting - So you can only shoot every other Action Round.</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"XTfw2cefPXucQgMG","name":"Crossbow","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Crossbow.webp","data":{"isproficient":false,"skill":"Weapon - Crossbow","qualities":"Penetrating","flaws":"Reload","damage":"Piercing","isranged":true,"range":"3 Zones","maxrange":"5 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Crossbow</p>\n<p>Requires 1 Action to reload after shooting - So you can only shoot every other Action Round.</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"XUAMSiOmPHi1LEHs","name":"2-H Hammer","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Hammer.webp","data":{"ability":"str","isproficient":false,"qualities":"Heavy","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Hammer</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"XUAMSiOmPHi1LEHs","name":"2-H Hammer","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Hammer.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Hammer","qualities":"Heavy","flaws":"","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-H Hammer</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"ZfBqMaYjg5z8Kh97","name":"Hand Axe (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hand%20Axe.webp","data":{"ability":"str","isproficient":false,"qualities":"Hack","flaws":"Light","damage":"Slashing","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Hand Axe</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"ZfBqMaYjg5z8Kh97","name":"Hand Axe (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Hand%20Axe.webp","data":{"isproficient":false,"skill":"Weapon - Hand Axe (Melee)","qualities":"Hack","flaws":"Light","damage":"Slashing","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Hand Axe</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"ZoooviRlvZIQR6d2","name":"Sting","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Sting.webp","data":{"ability":"agi","isproficient":false,"qualities":"","flaws":"","damage":"Piercing","range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Sting - natural weapon</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"ZoooviRlvZIQR6d2","name":"Sting","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Sting.webp","data":{"isproficient":false,"skill":"Weapon - Sting","qualities":"","flaws":"","damage":"Piercing","isranged":false,"range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Sting - natural weapon</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"cC3xXzzZ8UpDGONs","name":"2-H Sword","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Sword.webp","data":{"ability":"str","isproficient":false,"qualities":"Heavy,Reach,Hack","flaws":"","damage":"Slashing","range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-Handed Sword</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"cC3xXzzZ8UpDGONs","name":"2-H Sword","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/2-H%20Sword.webp","data":{"isproficient":false,"skill":"Weapon - 2-H Sword","qualities":"Heavy,Reach,Hack","flaws":"","damage":"Slashing","isranged":false,"range":"Melee","maxrange":"","minstr":2,"cost":0,"equipped":false,"description":"<p>2-Handed Sword</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"cMMWV7HusxfUfL4E","name":"Flail","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Flail.webp","data":{"ability":"agi","isproficient":false,"qualities":"Entangle","flaws":"Dangerous","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Flail</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"cMMWV7HusxfUfL4E","name":"Flail","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Flail.webp","data":{"isproficient":false,"skill":"Weapon - Flail","qualities":"Entangle","flaws":"Dangerous","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Flail</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"fE5cUHjc5GYGRdty","name":"Spear (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Spear.webp","data":{"ability":"agi","isproficient":false,"qualities":"Penetrating","flaws":"","damage":"Piercing","range":"2 Zones","maxrange":"3 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Spear</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"fE5cUHjc5GYGRdty","name":"Spear (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Spear.webp","data":{"isproficient":false,"skill":"Weapon - Spear (Thrown)","qualities":"Penetrating","flaws":"","damage":"Piercing","isranged":true,"range":"2 Zones","maxrange":"3 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Spear</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"hR0EtMiIy5ybcS84","name":"Staff (2-H)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Staff.webp","data":{"ability":"str","isproficient":false,"qualities":"Reach","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Staff - always used 2-handed.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"hR0EtMiIy5ybcS84","name":"Staff (2-H)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Staff.webp","data":{"ability":"str","isproficient":false,"qualities":"Reach","flaws":"","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Staff - always used 2-handed.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"ivLgdf33xEk9IWAW","name":"Pick","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Pick.webp","data":{"ability":"str","isproficient":false,"qualities":"Penetrating","flaws":"","damage":"Piercing","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Pick</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"ivLgdf33xEk9IWAW","name":"Pick","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Pick.webp","data":{"isproficient":false,"skill":"Weapon - Pick","qualities":"Penetrating","flaws":"","damage":"Piercing","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Pick</p>","ability":"str"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"lH54F6LNWMYg5dNt","name":"Claw","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Claw.webp","data":{"ability":"agi","isproficient":false,"qualities":"","flaws":"","damage":"Slashing","range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Claw - natural weapon</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"lH54F6LNWMYg5dNt","name":"Claw","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Claw.webp","data":{"isproficient":false,"skill":"Weapon - Claw","qualities":"","flaws":"","damage":"Slashing","isranged":false,"range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Claw - natural weapon</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"mMCl8JZboWUYZgvB","name":"Dagger (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Dagger.webp","data":{"ability":"dex","isproficient":false,"qualities":"","flaws":"Light","damage":"Piercing","range":"1 Zone","maxrange":"2 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Dagger</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"mMCl8JZboWUYZgvB","name":"Dagger (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Dagger.webp","data":{"isproficient":false,"skill":"Weapon - Dagger (Thrown)","qualities":"","flaws":"Light","damage":"Piercing","isranged":true,"range":"1 Zone","maxrange":"2 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Dagger</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"oSBtSHos9aQvbhfm","name":"Improvised (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Improvised-_Thrown_.webp","data":{"ability":"dex","isproficient":false,"qualities":"","flaws":"Light","damage":"Bludgeoning","range":"Same Zone","maxrange":"1 Zone","minstr":0,"cost":0,"equipped":false,"description":"<p>An Improvised ranged weapon such as a bottle or a rock.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"oSBtSHos9aQvbhfm","name":"Improvised (Thrown)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Improvised-_Thrown_.webp","data":{"isproficient":false,"skill":"Weapon - Improvised (Thrown)","qualities":"","flaws":"Light","damage":"Bludgeoning","isranged":true,"range":"Same Zone","maxrange":"1 Zone","minstr":0,"cost":0,"equipped":false,"description":"<p>An Improvised ranged weapon such as a bottle or a rock.</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"qz2f2DO4HOZFrv2k","name":"Spear (2-H)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Spear.webp","data":{"ability":"agi","isproficient":false,"qualities":"Heavy,Reach,Penetrating","flaws":"","damage":"Piercing","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Spear, used with both hands.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"qz2f2DO4HOZFrv2k","name":"Spear (2-H)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Spear.webp","data":{"isproficient":false,"skill":"Weapon - Spear (2-H)","qualities":"Heavy,Reach,Penetrating","flaws":"","damage":"Piercing","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Spear, used with both hands.</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"u4vvzNFSNluNdyn0","name":"Bow","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Bow.webp","data":{"ability":"dex","isproficient":false,"qualities":"Penetrating","flaws":"","damage":"Piercing","range":"4 Zones","maxrange":"6 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Bow with arrows</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"u4vvzNFSNluNdyn0","name":"Bow","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Bow.webp","data":{"isproficient":false,"skill":"Weapon - Bow","qualities":"Penetrating","flaws":"","damage":"Piercing","isranged":true,"range":"4 Zones","maxrange":"6 Zones","minstr":0,"cost":0,"equipped":false,"description":"<p>Bow with arrows</p>","ability":"dex"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"name":"Gore","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Gore.webp","data":{"ability":"agi","isproficient":false,"qualities":"Heavy","flaws":"","damage":"Piercing","range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Horns</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{"core":{"sourceId":"Item.h3ezFIKi5PR1POfT"}},"_id":"uCxCoRfH7KwVRt8d"}
|
{"_id":"uCxCoRfH7KwVRt8d","name":"Gore","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Gore.webp","data":{"isproficient":false,"skill":"Weapon - Gore","qualities":"Heavy","flaws":"","damage":"Piercing","isranged":false,"range":"Close","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Horns</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{"core":{"sourceId":"Item.h3ezFIKi5PR1POfT"}}}
|
||||||
{"_id":"uJs7IdVvomKVXlV9","name":"Improvised (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Improvised.webp","data":{"ability":"agi","isproficient":false,"qualities":"","flaws":"Light","damage":"Bludgeoning","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>An Improvised melee weapon such as a broken bottle, a chair leg, or a stick.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"uJs7IdVvomKVXlV9","name":"Improvised (Melee)","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Improvised.webp","data":{"isproficient":false,"skill":"Weapon - Improvised (Melee)","qualities":"","flaws":"Light","damage":"Bludgeoning","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>An Improvised melee weapon such as a broken bottle, a chair leg, or a stick.</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
{"_id":"x6wkZiE2G2QP41S2","name":"Sword","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Sword.webp","data":{"ability":"agi","isproficient":false,"qualities":"Deadly","flaws":"","damage":"Slashing","range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Sword</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
{"_id":"x6wkZiE2G2QP41S2","name":"Sword","type":"weapon","img":"systems/fvtt-crucible-rpg/images/icons/weapons/Sword.webp","data":{"isproficient":false,"skill":"Weapon - Sword","qualities":"Deadly","flaws":"","damage":"Slashing","isranged":false,"range":"Melee","maxrange":"","minstr":0,"cost":0,"equipped":false,"description":"<p>Sword</p>","ability":"agi"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||||
|
56
system.json
56
system.json
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"author": "Uberwald",
|
"authors": [
|
||||||
"compatibleCoreVersion": "9",
|
{"name": "Uberwald"}
|
||||||
|
],
|
||||||
"description": "Crucible RPG system for FoundryVTT",
|
"description": "Crucible RPG system for FoundryVTT",
|
||||||
"esmodules": [
|
"esmodules": [
|
||||||
"modules/crucible-main.js"
|
"modules/crucible-main.js"
|
||||||
@ -16,13 +17,11 @@
|
|||||||
],
|
],
|
||||||
"library": false,
|
"library": false,
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"manifestPlusVersion": "1.0.0",
|
|
||||||
"media": [],
|
"media": [],
|
||||||
"minimumCoreVersion": "0.8.0",
|
|
||||||
"name": "fvtt-crucible-rpg",
|
"name": "fvtt-crucible-rpg",
|
||||||
"packs": [
|
"packs": [
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Armors",
|
"label": "Armors",
|
||||||
"name": "armor",
|
"name": "armor",
|
||||||
"path": "./packs/armor.db",
|
"path": "./packs/armor.db",
|
||||||
@ -32,7 +31,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Equipments",
|
"label": "Equipments",
|
||||||
"name": "equipment",
|
"name": "equipment",
|
||||||
"path": "./packs/equipment.db",
|
"path": "./packs/equipment.db",
|
||||||
@ -42,7 +41,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Shields",
|
"label": "Shields",
|
||||||
"name": "shields",
|
"name": "shields",
|
||||||
"path": "./packs/shields.db",
|
"path": "./packs/shields.db",
|
||||||
@ -52,7 +51,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Weapons",
|
"label": "Weapons",
|
||||||
"name": "weapons",
|
"name": "weapons",
|
||||||
"path": "./packs/weapons.db",
|
"path": "./packs/weapons.db",
|
||||||
@ -62,7 +61,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Conditions",
|
"label": "Conditions",
|
||||||
"name": "conditions",
|
"name": "conditions",
|
||||||
"path": "./packs/conditions.db",
|
"path": "./packs/conditions.db",
|
||||||
@ -72,7 +71,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Currency",
|
"label": "Currency",
|
||||||
"name": "currency",
|
"name": "currency",
|
||||||
"path": "./packs/currency.db",
|
"path": "./packs/currency.db",
|
||||||
@ -82,7 +81,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Lore - Air",
|
"label": "Lore - Air",
|
||||||
"name": "lore-air",
|
"name": "lore-air",
|
||||||
"path": "./packs/lore-air.db",
|
"path": "./packs/lore-air.db",
|
||||||
@ -92,7 +91,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Lore - Earth",
|
"label": "Lore - Earth",
|
||||||
"name": "lore-earth",
|
"name": "lore-earth",
|
||||||
"path": "./packs/lore-earth.db",
|
"path": "./packs/lore-earth.db",
|
||||||
@ -102,7 +101,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Lore - Fire",
|
"label": "Lore - Fire",
|
||||||
"name": "lore-fire",
|
"name": "lore-fire",
|
||||||
"path": "./packs/lore-fire.db",
|
"path": "./packs/lore-fire.db",
|
||||||
@ -112,7 +111,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Lore - Water",
|
"label": "Lore - Water",
|
||||||
"name": "lore-water",
|
"name": "lore-water",
|
||||||
"path": "./packs/lore-water.db",
|
"path": "./packs/lore-water.db",
|
||||||
@ -122,7 +121,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Lore - Shadow",
|
"label": "Lore - Shadow",
|
||||||
"name": "lore-shadow",
|
"name": "lore-shadow",
|
||||||
"path": "./packs/lore-shadow.db",
|
"path": "./packs/lore-shadow.db",
|
||||||
@ -132,7 +131,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Skills",
|
"label": "Skills",
|
||||||
"name": "skills",
|
"name": "skills",
|
||||||
"path": "./packs/skills.db",
|
"path": "./packs/skills.db",
|
||||||
@ -142,7 +141,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Feats",
|
"label": "Feats",
|
||||||
"name": "feats",
|
"name": "feats",
|
||||||
"path": "./packs/feats.db",
|
"path": "./packs/feats.db",
|
||||||
@ -152,7 +151,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Poisons",
|
"label": "Poisons",
|
||||||
"name": "poisons",
|
"name": "poisons",
|
||||||
"path": "./packs/poisons.db",
|
"path": "./packs/poisons.db",
|
||||||
@ -162,7 +161,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Powers - Class",
|
"label": "Powers - Class",
|
||||||
"name": "classpowers",
|
"name": "classpowers",
|
||||||
"path": "./packs/classpowers.db",
|
"path": "./packs/classpowers.db",
|
||||||
@ -172,7 +171,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Tricks & Traps",
|
"label": "Tricks & Traps",
|
||||||
"name": "trickstraps",
|
"name": "trickstraps",
|
||||||
"path": "./packs/trickstraps.db",
|
"path": "./packs/trickstraps.db",
|
||||||
@ -182,7 +181,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Action Tokens",
|
"label": "Action Tokens",
|
||||||
"name": "action-tokens",
|
"name": "action-tokens",
|
||||||
"path": "./packs/action-tokens.db",
|
"path": "./packs/action-tokens.db",
|
||||||
@ -192,7 +191,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "Item",
|
"type": "Item",
|
||||||
"label": "Powers - Monsters",
|
"label": "Powers - Monsters",
|
||||||
"name": "monster-powers",
|
"name": "monster-powers",
|
||||||
"path": "./packs/monster-powers.db",
|
"path": "./packs/monster-powers.db",
|
||||||
@ -202,7 +201,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"entity": "RollTable",
|
"type": "RollTable",
|
||||||
"label": "Rolltables",
|
"label": "Rolltables",
|
||||||
"name": "rolltables",
|
"name": "rolltables",
|
||||||
"path": "./packs/rolltables.db",
|
"path": "./packs/rolltables.db",
|
||||||
@ -218,11 +217,16 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles/simple.css"
|
"styles/simple.css"
|
||||||
],
|
],
|
||||||
"templateVersion": 16,
|
"version": "10.0.1",
|
||||||
|
"compatibility": {
|
||||||
|
"minimum": "10",
|
||||||
|
"verified": "10.276",
|
||||||
|
"maximum": "10"
|
||||||
|
},
|
||||||
|
"templateVersion": 18,
|
||||||
"title": "Crucible RPG",
|
"title": "Crucible RPG",
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v0.1.29.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v10.0.0.zip",
|
||||||
"url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg",
|
"url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg",
|
||||||
"version": "0.1.29",
|
|
||||||
"background" : "./images/ui/crucible_welcome_page.webp"
|
"background" : "./images/ui/crucible_welcome_page.webp"
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
"age": 0,
|
"age": 0,
|
||||||
"size": 0,
|
"size": 0,
|
||||||
"weight": "",
|
"weight": "",
|
||||||
|
"height": "",
|
||||||
"hair": "",
|
"hair": "",
|
||||||
"sex": "",
|
"sex": "",
|
||||||
"eyes": "",
|
"eyes": "",
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<span class="ability-label " name="class">
|
<span class="ability-label " name="class">
|
||||||
<h4 class="ability-text-white ability-margin">Class</h4>
|
<h4 class="ability-text-white ability-margin">Class</h4>
|
||||||
</span>
|
</span>
|
||||||
<select class="competence-base flexrow" type="text" name="data.biodata.class" value="{{data.biodata.class}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.biodata.class" value="{{data.biodata.class}}" data-dtype="String">
|
||||||
{{#select data.biodata.class}}
|
{{#select data.biodata.class}}
|
||||||
<option value="chaplain">Chaplain</option>
|
<option value="chaplain">Chaplain</option>
|
||||||
<option value="magus">Magus</option>
|
<option value="magus">Magus</option>
|
||||||
@ -108,8 +108,8 @@
|
|||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{skill.img}}" /></a>
|
src="{{skill.img}}" /></a>
|
||||||
<span class="item-name-label"><a class="roll-skill">{{skill.name}}</a></span>
|
<span class="item-name-label"><a class="roll-skill">{{skill.name}}</a></span>
|
||||||
<span class="item-field-label-short">{{upper skill.data.ability}}</span>
|
<span class="item-field-label-short">{{upper skill.system.ability}}</span>
|
||||||
<span class="item-field-label-short">{{skill.data.skilldice}}</span>
|
<span class="item-field-label-short">{{skill.system.skilldice}}</span>
|
||||||
<span class="item-field-label-long"> - </span>
|
<span class="item-field-label-long"> - </span>
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
@ -143,9 +143,9 @@
|
|||||||
src="{{weapon.img}}" /></a>
|
src="{{weapon.img}}" /></a>
|
||||||
<span class="item-name-label-long"><a class ="roll-weapon">{{weapon.name}}</a></span>
|
<span class="item-name-label-long"><a class ="roll-weapon">{{weapon.name}}</a></span>
|
||||||
|
|
||||||
<span class="item-field-label-short">{{weapon.data.ability}}</span>
|
<span class="item-field-label-short">{{weapon.system.ability}}</span>
|
||||||
|
|
||||||
<span class="item-field-label-medium">{{perk.data.range}}</span>
|
<span class="item-field-label-medium">{{perk.system.range}}</span>
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
@ -178,9 +178,9 @@
|
|||||||
src="{{feat.img}}" /></a>
|
src="{{feat.img}}" /></a>
|
||||||
<span class="item-name-label-long">{{feat.name}}</span>
|
<span class="item-name-label-long">{{feat.name}}</span>
|
||||||
|
|
||||||
<span class="item-field-label-medium">{{upperFirst feat.data.isfeatdie}}</span>
|
<span class="item-field-label-medium">{{upperFirst feat.system.isfeatdie}}</span>
|
||||||
<span class="item-field-label-medium">{{upperFirst feat.data.issl}}</span>
|
<span class="item-field-label-medium">{{upperFirst feat.system.issl}}</span>
|
||||||
<span class="item-field-label-medium">{{feat.data.sl}}</span>
|
<span class="item-field-label-medium">{{feat.system.sl}}</span>
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
@ -223,9 +223,9 @@
|
|||||||
<span class="item-name-label">
|
<span class="item-name-label">
|
||||||
<a class="power-roll">{{spell.name}}</a>
|
<a class="power-roll">{{spell.name}}</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-medium">{{upperFirst spell.data.lore}}</span>
|
<span class="item-field-label-medium">{{upperFirst spell.system.lore}}</span>
|
||||||
<span class="item-field-label-short">{{upperFirst spell.data.circle}}</span>
|
<span class="item-field-label-short">{{upperFirst spell.system.circle}}</span>
|
||||||
<span class="item-field-label-medium">{{upperFirst spell.data.range}}</span>
|
<span class="item-field-label-medium">{{upperFirst spell.system.range}}</span>
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
@ -273,16 +273,16 @@
|
|||||||
<span class="item-name-label">{{money.name}}</span>
|
<span class="item-name-label">{{money.name}}</span>
|
||||||
|
|
||||||
<span class="item-field-label-long"><label>
|
<span class="item-field-label-long"><label>
|
||||||
{{money.data.quantity}}
|
{{money.system.quantity}}
|
||||||
(<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
|
(<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
|
||||||
</label>
|
</label>
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-medium">
|
<span class="item-field-label-medium">
|
||||||
<label>{{money.data.weight}}</label>
|
<label>{{money.system.weight}}</label>
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-medium">
|
<span class="item-field-label-medium">
|
||||||
{{#if money.data.idrDice}}
|
{{#if money.system.idrDice}}
|
||||||
<a class="roll-idr" data-dice-value="{{money.data.idrDice}}">{{money.data.idrDice}}</a>
|
<a class="roll-idr" data-dice-value="{{money.data.idrDice}}">{{money.system.idrDice}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
-
|
-
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -316,12 +316,12 @@
|
|||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{weapon.img}}" /></a>
|
src="{{weapon.img}}" /></a>
|
||||||
<span class="item-name-label">{{weapon.name}}</span>
|
<span class="item-name-label">{{weapon.name}}</span>
|
||||||
<span class="item-field-label-short"><label>{{upper weapon.data.ability}}</label></span>
|
<span class="item-field-label-short"><label>{{upper weapon.system.ability}}</label></span>
|
||||||
<span class="item-field-label-short"><label>{{upper weapon.data.damage}}</label></span>
|
<span class="item-field-label-short"><label>{{upper weapon.system.damage}}</label></span>
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
<a class="item-control item-equip" title="Worn">{{#if weapon.data.equipped}}<i
|
<a class="item-control item-equip" title="Worn">{{#if weapon.system.equipped}}<i
|
||||||
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
@ -351,12 +351,12 @@
|
|||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{armor.img}}" /></a>
|
src="{{armor.img}}" /></a>
|
||||||
<span class="item-name-label">{{armor.name}}</span>
|
<span class="item-name-label">{{armor.name}}</span>
|
||||||
<span class="item-field-label-short">{{upper armor.data.armortype}}</span>
|
<span class="item-field-label-short">{{upper armor.system.armortype}}</span>
|
||||||
<span class="item-field-label-short">{{armor.data.absorprionroll}}</span>
|
<span class="item-field-label-short">{{armor.system.absorprionroll}}</span>
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
<a class="item-control item-equip" title="Worn">{{#if armor.data.equipped}}<i
|
<a class="item-control item-equip" title="Worn">{{#if armor.system.equipped}}<i
|
||||||
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
@ -382,11 +382,11 @@
|
|||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{shield.img}}" /></a>
|
src="{{shield.img}}" /></a>
|
||||||
<span class="item-name-label">{{shield.name}}</span>
|
<span class="item-name-label">{{shield.name}}</span>
|
||||||
<span class="item-field-label-short">{{shield.data.levelDice}}</span>
|
<span class="item-field-label-short">{{shield.system.levelDice}}</span>
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
<a class="item-control item-equip" title="Worn">{{#if shield.data.equipped}}<i
|
<a class="item-control item-equip" title="Worn">{{#if shield.system.equipped}}<i
|
||||||
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
@ -429,24 +429,24 @@
|
|||||||
<ul class="item-list alternate-list">
|
<ul class="item-list alternate-list">
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Origin</label>
|
<label class="generic-label">Origin</label>
|
||||||
<input type="text" class="" name="data.biodata.origin" value="{{data.biodata.origin}}"
|
<input type="text" class="" name="system.biodata.origin" value="{{data.biodata.origin}}"
|
||||||
data-dtype="String" />
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Age</label>
|
<label class="generic-label">Age</label>
|
||||||
<input type="text" class="" name="data.biodata.age" value="{{data.biodata.age}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.age" value="{{data.biodata.age}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Height</label>
|
<label class="generic-label">Height</label>
|
||||||
<input type="text" class="" name="data.biodata.size" value="{{data.biodata.size}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.height" value="{{data.biodata.height}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Eyes</label>
|
<label class="generic-label">Eyes</label>
|
||||||
<input type="text" class="" name="data.biodata.eyes" value="{{data.biodata.eyes}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.eyes" value="{{data.biodata.eyes}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Hair</label>
|
<label class="generic-label">Hair</label>
|
||||||
<input type="text" class="" name="data.biodata.hair" value="{{data.biodata.hair}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.hair" value="{{data.biodata.hair}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -454,7 +454,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Size</label>
|
<label class="generic-label">Size</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.biodata.size" value="{{data.biodata.size}}" data-dtype="Number">
|
<select class="competence-base flexrow" type="text" name="system.biodata.size" value="{{data.biodata.size}}" data-dtype="Number">
|
||||||
{{#select data.biodata.size}}
|
{{#select data.biodata.size}}
|
||||||
<option value="1">Tiny</option>
|
<option value="1">Tiny</option>
|
||||||
<option value="2">Small</option>
|
<option value="2">Small</option>
|
||||||
@ -467,17 +467,17 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Sex</label>
|
<label class="generic-label">Sex</label>
|
||||||
<input type="text" class="" name="data.biodata.sex" value="{{data.biodata.sex}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.sex" value="{{data.biodata.sex}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Preferred Hand</label>
|
<label class="generic-label">Preferred Hand</label>
|
||||||
<input type="text" class="" name="data.biodata.preferredhand" value="{{data.biodata.preferredhand}}"
|
<input type="text" class="" name="system.biodata.preferredhand" value="{{data.biodata.preferredhand}}"
|
||||||
data-dtype="String" />
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item" data-item-id="{{race._id}}">
|
<li class="flexrow item" data-item-id="{{race._id}}">
|
||||||
<label class="generic-label">Race</label>
|
<label class="generic-label">Race</label>
|
||||||
<a class="item-edit"><img class="stat-icon" src="{{race.img}}"></a>
|
<a class="item-edit"><img class="stat-icon" src="{{race.img}}"></a>
|
||||||
<input type="text" class="" name="data.biodata.racename" value="{{data.biodata.racename}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.racename" value="{{data.biodata.racename}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -487,13 +487,13 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<h3>Background : </h3>
|
<h3>Background : </h3>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor content=data.biodata.description target="data.biodata.description" button=true owner=owner
|
{{editor data.biodata.description target="system.biodata.description" button=true owner=owner
|
||||||
editable=editable}}
|
editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Notes : </h3>
|
<h3>Notes : </h3>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor content=data.biodata.notes target="data.biodata.notes" button=true owner=owner editable=editable}}
|
{{editor data.biodata.notes target="system.biodata.notes" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</article>
|
</article>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><strong>Fight result !</strong></li>
|
<li><strong>Fight result !</strong></li>
|
||||||
{{#if successDetails.fumbleDetails}}
|
{{#if successDetails.fumbleDetails}}
|
||||||
<li>Fumble ! : {{successDetails.fumbleDetails}} </li>
|
<li>Fumble ! : {{successDetails.fumbleDetails.data.text}} </li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if armorResult}}
|
{{#if armorResult}}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<div class="tab" data-group="primary">
|
<div class="tab" data-group="primary">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Type</label>
|
<li class="flexrow"><label class="generic-label">Type</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.armortype" value="{{data.armortype}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.armortype" value="{{data.armortype}}" data-dtype="String">
|
||||||
{{#select data.armortype}}
|
{{#select data.armortype}}
|
||||||
<option value="clothes">Clothes</option>
|
<option value="clothes">Clothes</option>
|
||||||
<option value="paddedlight">Padded (Light)</option>
|
<option value="paddedlight">Padded (Light)</option>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Absorption roll</label>
|
<li class="flexrow"><label class="generic-label">Absorption roll</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.absorprionroll" value="{{data.absorprionroll}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.absorprionroll" value="{{data.absorprionroll}}" data-dtype="String">
|
||||||
{{#select data.absorprionroll}}
|
{{#select data.absorprionroll}}
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
<option value="white">White</option>
|
<option value="white">White</option>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Damaged roll</label>
|
<li class="flexrow"><label class="generic-label">Damaged roll</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.damagedroll" value="{{data.damagedroll}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.damagedroll" value="{{data.damagedroll}}" data-dtype="String">
|
||||||
{{#select data.damagedroll}}
|
{{#select data.damagedroll}}
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
<option value="white">White</option>
|
<option value="white">White</option>
|
||||||
@ -65,23 +65,23 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is proficient ?</label>
|
<li class="flexrow"><label class="generic-label">Is proficient ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isproficient" {{checked data.isproficient}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isproficient" {{checked data.isproficient}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Minimum strength</label>
|
<li class="flexrow"><label class="generic-label">Minimum strength</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.minstr" value="{{data.minstr}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.minstr" value="{{data.minstr}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Skill penalty</label>
|
<li class="flexrow"><label class="generic-label">Skill penalty</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.skillpenalty" value="{{data.skillpenalty}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.skillpenalty" value="{{data.skillpenalty}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked data.equipped}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="medium-editor item-text-long-line">
|
<div class="medium-editor item-text-long-line">
|
||||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked data.equipped}}/></label>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Quantity</label>
|
<li class="flexrow"><label class="generic-label">Quantity</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,16 +16,16 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Add feat die ?</label>
|
<li class="flexrow"><label class="generic-label">Add feat die ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isfeatdie" {{checked data.isfeatdie}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isfeatdie" {{checked data.isfeatdie}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Add SL ?</label>
|
<li class="flexrow"><label class="generic-label">Add SL ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.issl" {{checked data.issl}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.issl" {{checked data.issl}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{#if data.issl}}
|
{{#if data.issl}}
|
||||||
<li class="flexrow"><label class="generic-label">SL value</label>
|
<li class="flexrow"><label class="generic-label">SL value</label>
|
||||||
<input type="text" class="" name="data.sl" value="{{data.sl}}" data-dtype="Number"/>
|
<input type="text" class="" name="data.sl" value="{{system.sl}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Quantity</label>
|
<li class="flexrow"><label class="generic-label">Quantity</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.quantity" value="{{data.quantity}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Unit value</label>
|
<li class="flexrow"><label class="generic-label">Unit value</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.value" value="{{data.value}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.value" value="{{data.value}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<div class="tab" data-group="primary">
|
<div class="tab" data-group="primary">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Shield die</label>
|
<li class="flexrow"><label class="generic-label">Shield die</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.shielddie" value="{{data.shielddie}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.shielddie" value="{{data.shielddie}}" data-dtype="String">
|
||||||
{{#select data.shielddie}}
|
{{#select data.shielddie}}
|
||||||
<option value="d6">d6</option>
|
<option value="d6">d6</option>
|
||||||
<option value="d8">d8</option>
|
<option value="d8">d8</option>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Associated skill</label>
|
<li class="flexrow"><label class="generic-label">Associated skill</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.skill" value="{{data.skill}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.skill" value="{{data.skill}}" data-dtype="String">
|
||||||
{{#select data.skill}}
|
{{#select data.skill}}
|
||||||
{{#each shieldSkills as |skill idx|}}
|
{{#each shieldSkills as |skill idx|}}
|
||||||
<option value="{{skill.name}}">{{skill.name}}</option>
|
<option value="{{skill.name}}">{{skill.name}}</option>
|
||||||
@ -40,11 +40,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked data.equipped}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Ability</label>
|
<li class="flexrow"><label class="generic-label">Ability</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.ability" value="{{data.ability}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.ability" value="{{data.ability}}" data-dtype="String">
|
||||||
{{#select data.ability}}
|
{{#select data.ability}}
|
||||||
{{> systems/fvtt-crucible-rpg/templates/partial-options-abilities.html}}
|
{{> systems/fvtt-crucible-rpg/templates/partial-options-abilities.html}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
@ -24,18 +24,18 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is Feat Die ?</label>
|
<li class="flexrow"><label class="generic-label">Is Feat Die ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isfeatdie" {{checked data.isfeatdie}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isfeatdie" {{checked data.isfeatdie}}/></label>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Is SL +2 ?</label>
|
<li class="flexrow"><label class="generic-label">Is SL +2 ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.issl2" {{checked data.issl2}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.issl2" {{checked data.issl2}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Subject to Armor Penalty ?</label>
|
<li class="flexrow"><label class="generic-label">Subject to Armor Penalty ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.armorpenalty" {{checked data.armorpenalty}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.armorpenalty" {{checked data.armorpenalty}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Skill Type</label>
|
<li class="flexrow"><label class="generic-label">Skill Type</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.skilltype" value="{{data.skilltype}}" data-dtype="string">
|
<select class="competence-base flexrow" type="text" name="system.skilltype" value="{{data.skilltype}}" data-dtype="string">
|
||||||
{{#select data.skilltype}}
|
{{#select data.skilltype}}
|
||||||
<option value="simple">Simple</option>
|
<option value="simple">Simple</option>
|
||||||
<option value="complex">Complex</option>
|
<option value="complex">Complex</option>
|
||||||
@ -44,19 +44,19 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Skill Dice</label>
|
<li class="flexrow"><label class="generic-label">Skill Dice</label>
|
||||||
<input type="text" class="" name="data.skilldice" value="{{data.skilldice}} (level {{data.level}})" data-dtype="String" disabled/>
|
<input type="text" class="" name="system.skilldice" value="{{data.skilldice}} (level {{data.level}})" data-dtype="String" disabled/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is Innate ?</label>
|
<li class="flexrow"><label class="generic-label">Is Innate ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isinnate" {{checked data.isinnate}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isinnate" {{checked data.isinnate}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is Lore ?</label>
|
<li class="flexrow"><label class="generic-label">Is Lore ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.islore" {{checked data.islore}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.islore" {{checked data.islore}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is Weapon Skill ?</label>
|
<li class="flexrow"><label class="generic-label">Is Weapon Skill ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isweaponskill" {{checked data.isweaponskill}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isweaponskill" {{checked data.isweaponskill}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- <li class="flexrow"><label class="generic-label">Is Shield Skill ?</label>
|
<!-- <li class="flexrow"><label class="generic-label">Is Shield Skill ?</label>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
</li> -->
|
</li> -->
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Bonus dice</label>
|
<li class="flexrow"><label class="generic-label">Bonus dice</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.bonusdice" value="{{data.bonusdice}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.bonusdice" value="{{data.bonusdice}}" data-dtype="String">
|
||||||
{{#select data.bonusdice}}
|
{{#select data.bonusdice}}
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
<option value="1d6">1d6</option>
|
<option value="1d6">1d6</option>
|
||||||
@ -80,23 +80,23 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Background</label>
|
<li class="flexrow"><label class="generic-label">Background</label>
|
||||||
<input type="text" class="" name="data.background" value="{{data.background}}" data-dtype="Number"/>
|
<input type="text" class="" name="system.background" value="{{data.background}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Basic</label>
|
<li class="flexrow"><label class="generic-label">Basic</label>
|
||||||
<input type="text" class="" name="data.basic" value="{{data.basic}}" data-dtype="Number"/>
|
<input type="text" class="" name="system.basic" value="{{data.basic}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Class</label>
|
<li class="flexrow"><label class="generic-label">Class</label>
|
||||||
<input type="text" class="" name="data.class" value="{{data.class}}" data-dtype="Number"/>
|
<input type="text" class="" name="system.class" value="{{data.class}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Exp level</label>
|
<li class="flexrow"><label class="generic-label">Exp level</label>
|
||||||
<input type="text" class="" name="data.explevel" value="{{data.explevel}}" data-dtype="Number"/>
|
<input type="text" class="" name="system.explevel" value="{{data.explevel}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Gained exp (+1 to Exp level at 25)</label>
|
<li class="flexrow"><label class="generic-label">Gained exp (+1 to Exp level at 25)</label>
|
||||||
<input type="text" class="" name="data.exp" value="{{data.exp}}" data-dtype="Number"/>
|
<input type="text" class="" name="system.exp" value="{{data.exp}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Lore</label>
|
<li class="flexrow"><label class="generic-label">Lore</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.lore" value="{{data.lore}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.lore" value="{{data.lore}}" data-dtype="String">
|
||||||
{{#select data.lore}}
|
{{#select data.lore}}
|
||||||
<option value="earth">Earth</option>
|
<option value="earth">Earth</option>
|
||||||
<option value="air">Air</option>
|
<option value="air">Air</option>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Circle</label>
|
<li class="flexrow"><label class="generic-label">Circle</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.circle" value="{{data.circle}}" data-dtype="Number">
|
<select class="competence-base flexrow" type="text" name="system.circle" value="{{data.circle}}" data-dtype="Number">
|
||||||
{{#select data.circle}}
|
{{#select data.circle}}
|
||||||
<option value="1">1</option>
|
<option value="1">1</option>
|
||||||
<option value="2">2</option>
|
<option value="2">2</option>
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Range</label>
|
<li class="flexrow"><label class="generic-label">Range</label>
|
||||||
<input type="text" class="" name="data.range" value="{{data.range}}" data-dtype="String"/>
|
<input type="text" class="" name="system.range" value="{{data.range}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -27,11 +27,11 @@
|
|||||||
</li> -->
|
</li> -->
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is proficient ?</label>
|
<li class="flexrow"><label class="generic-label">Is proficient ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isproficient" {{checked data.isproficient}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isproficient" {{checked data.isproficient}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Associated skill</label>
|
<li class="flexrow"><label class="generic-label">Associated skill</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.skill" value="{{data.skill}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.skill" value="{{data.skill}}" data-dtype="String">
|
||||||
{{#select data.skill}}
|
{{#select data.skill}}
|
||||||
{{#each weaponSkills as |skill idx|}}
|
{{#each weaponSkills as |skill idx|}}
|
||||||
<option value="{{skill.name}}">{{skill.name}}</option>
|
<option value="{{skill.name}}">{{skill.name}}</option>
|
||||||
@ -41,39 +41,39 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Qualities (comma separated list)</label>
|
<li class="flexrow"><label class="generic-label">Qualities (comma separated list)</label>
|
||||||
<input type="text" class="padd-right" name="data.qualities" value="{{data.qualities}}" data-dtype="String"/>
|
<input type="text" class="padd-right" name="system.qualities" value="{{data.qualities}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Flaws (comma separated list)</label>
|
<li class="flexrow"><label class="generic-label">Flaws (comma separated list)</label>
|
||||||
<input type="text" class="padd-right" name="data.flaws" value="{{data.flaws}}" data-dtype="String"/>
|
<input type="text" class="padd-right" name="system.flaws" value="{{data.flaws}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Damage</label>
|
<li class="flexrow"><label class="generic-label">Damage</label>
|
||||||
<input type="text" class="right" name="data.damage" value="{{data.damage}}" data-dtype="String"/>
|
<input type="text" class="right" name="system.damage" value="{{data.damage}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Is ranged weapon ?</label>
|
<li class="flexrow"><label class="generic-label">Is ranged weapon ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isranged" {{checked data.isranged}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.isranged" {{checked data.isranged}}/></label>
|
||||||
</li>
|
</li>
|
||||||
{{#if data.isranged}}
|
{{#if data.isranged}}
|
||||||
<li class="flexrow"><label class="generic-label">Range</label>
|
<li class="flexrow"><label class="generic-label">Range</label>
|
||||||
<input type="text" class="right" name="data.range" value="{{data.range}}" data-dtype="String"/>
|
<input type="text" class="right" name="system.range" value="{{data.range}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Max range</label>
|
<li class="flexrow"><label class="generic-label">Max range</label>
|
||||||
<input type="text" class="right" name="data.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
|
<input type="text" class="right" name="system.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Minimum strength</label>
|
<li class="flexrow"><label class="generic-label">Minimum strength</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.minstr" value="{{data.minstr}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.minstr" value="{{data.minstr}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked data.equipped}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<span class="ability-label ability-margin" name="{{key}}">
|
<span class="ability-label ability-margin" name="{{key}}">
|
||||||
<h4 class="ability-text-white ability-margin"><a class="roll-ability ability-margin" data-ability-key="{{key}}">{{ability.label}}</a></h4>
|
<h4 class="ability-text-white ability-margin"><a class="roll-ability ability-margin" data-ability-key="{{key}}">{{ability.label}}</a></h4>
|
||||||
</span>
|
</span>
|
||||||
<select class="status-small-label color-class-common" type="text" name="data.abilities.{{key}}.value" value="{{ability.value}}"
|
<select class="status-small-label color-class-common" type="text" name="system.abilities.{{key}}.value" value="{{ability.value}}"
|
||||||
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||||
{{#select ability.value}}
|
{{#select ability.value}}
|
||||||
<option value="0">0</option>
|
<option value="0">0</option>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<span class="item-field-label-long"><label>
|
<span class="item-field-label-long"><label>
|
||||||
{{equip.data.quantity}}
|
{{equip.system.quantity}}
|
||||||
(<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
|
(<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
|
||||||
</label>
|
</label>
|
||||||
</span>
|
</span>
|
||||||
@ -16,10 +16,10 @@
|
|||||||
-
|
-
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-short">
|
<span class="item-field-label-short">
|
||||||
{{#if equip.data.iscontainer}}
|
{{#if equip.system.iscontainer}}
|
||||||
{{equip.data.contentsEnc}}
|
{{equip.system.contentsEnc}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{mul equip.data.weight equip.data.quantity}}
|
{{mul equip.system.weight equip.system.quantity}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-medium">
|
<span class="item-field-label-medium">
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
{{#if (eq level 1)}}
|
{{#if (eq level 1)}}
|
||||||
<a class="item-control item-equip" title="Worn">{{#if equip.data.equipped}}<i
|
<a class="item-control item-equip" title="Worn">{{#if equip.system.equipped}}<i
|
||||||
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
<span class="ability-label " name="hp">
|
<span class="ability-label " name="hp">
|
||||||
<h4 class="ability-text-white ability-margin">HP</h4>
|
<h4 class="ability-text-white ability-margin">HP</h4>
|
||||||
</span>
|
</span>
|
||||||
<span class="ability-label ability-margin"><input class="input-numeric-short" name="data.secondary.hp.value" value="{{data.secondary.hp.value}}"></span>
|
<span class="ability-label ability-margin"><input class="input-numeric-short" name="system.secondary.hp.value" value="{{data.secondary.hp.value}}"></span>
|
||||||
<span class="ability-label ability-margin"> / {{data.secondary.hp.max}}</span>
|
<span class="ability-label ability-margin"> / {{data.secondary.hp.max}}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow list-item" data-attr-key="hp">
|
<li class="item flexrow list-item" data-attr-key="hp">
|
||||||
<span class="ability-label " name="hp">
|
<span class="ability-label " name="hp">
|
||||||
<h4 class="ability-text-white ability-margin">Effort</h4>
|
<h4 class="ability-text-white ability-margin">Effort</h4>
|
||||||
</span>
|
</span>
|
||||||
<span class="ability-label ability-margin"><input class="input-numeric-short" name="data.secondary.effort.value" value="{{data.secondary.effort.value}}"></span>
|
<span class="ability-label ability-margin"><input class="input-numeric-short" name="system.secondary.effort.value" value="{{data.secondary.effort.value}}"></span>
|
||||||
<span class="ability-label ability-margin"> / {{data.secondary.effort.max}}</span>
|
<span class="ability-label ability-margin"> / {{data.secondary.effort.max}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="medium-editor item-text-long-line">
|
<div class="medium-editor item-text-long-line">
|
||||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user