v10 Migration
This commit is contained in:
parent
39d220cfe6
commit
f5c4213a8f
BIN
images/icons/icon_ability.webp
Normal file
BIN
images/icons/icon_ability.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
BIN
images/icons/icon_armor.webp
Normal file
BIN
images/icons/icon_armor.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
images/icons/icon_weapon.webp
Normal file
BIN
images/icons/icon_weapon.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -25,9 +25,8 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async getData() {
|
||||
const objectData = PegasusUtility.data(this.object);
|
||||
|
||||
let actorData = duplicate(PegasusUtility.templateData(this.object));
|
||||
const objectData = this.object
|
||||
let actorData = duplicate(this.object)
|
||||
|
||||
let formData = {
|
||||
title: this.title,
|
||||
@ -37,7 +36,7 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
name: objectData.name,
|
||||
editable: this.isEditable,
|
||||
cssClass: this.isEditable ? "editable" : "locked",
|
||||
data: actorData,
|
||||
data: actorData.system,
|
||||
traumaState: this.actor.getTraumaState(),
|
||||
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
|
||||
limited: this.object.limited,
|
||||
@ -87,7 +86,7 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async rollIDR( itemId, diceValue) {
|
||||
let item = this.actor.data.items.get( itemId) ?? {name: "Unknown"}
|
||||
let item = this.actor.items.get( itemId) ?? {name: "Unknown"}
|
||||
let myRoll = new Roll(diceValue+"x").roll({ async: false })
|
||||
await PegasusUtility.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
|
||||
let chatData = {
|
||||
@ -362,10 +361,9 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async _onDropItem(event, dragData) {
|
||||
console.log(">>>>>> DROPPED!!!!")
|
||||
let item = await PegasusUtility.searchItem( dragData)
|
||||
const item = fromUuidSync(dragData.uuid)
|
||||
if (item == undefined) {
|
||||
item = this.actor.items.get( dragData.data._id )
|
||||
item = this.actor.items.get( dragData.uuid )
|
||||
}
|
||||
let ret = await this.actor.preprocessItem( event, item, true )
|
||||
if ( ret ) {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -48,9 +48,9 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async getData() {
|
||||
const objectData = PegasusUtility.data(this.object);
|
||||
const objectData = this.object
|
||||
|
||||
let itemData = foundry.utils.deepClone(PegasusUtility.templateData(this.object));
|
||||
let itemData = foundry.utils.deepClone(objectData)
|
||||
let formData = {
|
||||
title: this.title,
|
||||
id: this.id,
|
||||
@ -61,7 +61,7 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
cssClass: this.isEditable ? "editable" : "locked",
|
||||
optionsDiceList: PegasusUtility.getOptionsDiceList(),
|
||||
optionsStatusList: PegasusUtility.getOptionsStatusList(),
|
||||
data: itemData,
|
||||
data: itemData.system,
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
@ -69,7 +69,7 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
isGM: game.user.isGM
|
||||
}
|
||||
|
||||
this.options.editable = !(this.object.data.origin == "embeddedItem");
|
||||
this.options.editable = true //!(this.object.isEmbedded)
|
||||
console.log("ITEM DATA", formData, this);
|
||||
return formData;
|
||||
}
|
||||
@ -88,7 +88,7 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
postItem() {
|
||||
let chatData = duplicate(PegasusUtility.data(this.item));
|
||||
let chatData = this.item.system
|
||||
if (this.actor) {
|
||||
chatData.actor = { id: this.actor.id };
|
||||
}
|
||||
@ -113,10 +113,10 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
async viewSubitem(ev) {
|
||||
let field = $(ev.currentTarget).data('type');
|
||||
let idx = Number($(ev.currentTarget).data('index'));
|
||||
let itemData = this.object.data.data[field][idx];
|
||||
let itemData = this.object.system[field][idx];
|
||||
if (itemData.name != 'None') {
|
||||
let spec = await Item.create(itemData, { temporary: true });
|
||||
spec.data.origin = "embeddedItem";
|
||||
spec.system.origin = "embeddedItem";
|
||||
new PegasusItemSheet(spec).render(true);
|
||||
}
|
||||
}
|
||||
@ -125,8 +125,8 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
async deleteSubitem(ev) {
|
||||
let field = $(ev.currentTarget).data('type');
|
||||
let idx = Number($(ev.currentTarget).data('index'));
|
||||
let oldArray = this.object.data.data[field];
|
||||
let itemData = this.object.data.data[field][idx];
|
||||
let oldArray = this.object.system[field];
|
||||
let itemData = this.object.system[field][idx];
|
||||
if (itemData.name != 'None') {
|
||||
let newArray = [];
|
||||
for (var i = 0; i < oldArray.length; i++) {
|
||||
@ -134,16 +134,16 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
newArray.push(oldArray[i]);
|
||||
}
|
||||
}
|
||||
this.object.update({ [`data.${field}`]: newArray });
|
||||
this.object.update({ [`system.${field}`]: newArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async manageSpec() {
|
||||
let itemData = this.object.data.data.specialisation[0];
|
||||
let itemData = this.object.system.specialisation[0];
|
||||
if (itemData.name != 'None') {
|
||||
let spec = await Item.create(itemData, { temporary: true });
|
||||
spec.data.origin = "embeddedItem";
|
||||
spec.system.origin = "embeddedItem";
|
||||
new PegasusItemSheet(spec).render(true);
|
||||
}
|
||||
}
|
||||
@ -165,7 +165,7 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
});
|
||||
|
||||
html.find('.delete-spec').click(ev => {
|
||||
this.object.update({ "data.specialisation": [{ name: 'None' }] });
|
||||
this.object.update({ "system.specialisation": [{ name: 'None' }] });
|
||||
});
|
||||
|
||||
html.find('.delete-subitem').click(ev => {
|
||||
@ -174,9 +174,9 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
|
||||
html.find('.stat-choice-flag').click(ev => {
|
||||
let idx = $(ev.currentTarget).data("stat-idx");
|
||||
let array = duplicate(this.object.data.data.statincreasechoice);
|
||||
let array = duplicate(this.object.system.statincreasechoice);
|
||||
array[Number(idx)].flag = !array[Number(idx)].flag;
|
||||
this.object.update({ "data.statincreasechoice": array });
|
||||
this.object.update({ "system.statincreasechoice": array });
|
||||
});
|
||||
|
||||
// Update Inventory Item
|
||||
@ -197,225 +197,225 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addAbility(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
console.log("ABB", event, item, dataItem)
|
||||
async addAbility(event, item) {
|
||||
let newItem = duplicate(item)
|
||||
newItem._id = randomID(item.id.length);
|
||||
console.log("ABB", event, item)
|
||||
if (event.toElement.className == 'drop-abilities') {
|
||||
let abilityArray = duplicate(this.object.data.data.abilities);
|
||||
let abilityArray = duplicate(this.object.system.abilities);
|
||||
abilityArray.push(newItem);
|
||||
await this.object.update({ 'data.abilities': abilityArray });
|
||||
await this.object.update({ 'system.abilities': abilityArray });
|
||||
}
|
||||
if (event.toElement.className == 'drop-optionnal-abilities') {
|
||||
let abilityArray = duplicate(this.object.data.data.optionnalabilities);
|
||||
let abilityArray = duplicate(this.object.system.optionnalabilities);
|
||||
abilityArray.push(newItem);
|
||||
await this.object.update({ 'data.optionnalabilities': abilityArray });
|
||||
await this.object.update({ 'system.optionnalabilities': abilityArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addRacePerk(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addRacePerk(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id);
|
||||
if (event.toElement.className == 'drop-race-perk') {
|
||||
let perkArray = duplicate(this.object.data.data.perks);
|
||||
let perkArray = duplicate(this.object.system.perks);
|
||||
perkArray.push(newItem);
|
||||
await this.object.update({ 'data.perks': perkArray });
|
||||
await this.object.update({ 'system.perks': perkArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addSpecialisation(item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addSpecialisation(item) {
|
||||
let newItem = duplicate(item)
|
||||
newItem._id = randomID(item.id.length)
|
||||
let specArray = [newItem];
|
||||
await this.object.update({ 'data.specialisation': specArray });
|
||||
await this.object.update({ 'system.specialisation': specArray });
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addRoleSpecialisation(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addRoleSpecialisation(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
console.log("Add spec", event, newItem);
|
||||
if (event.toElement.className == 'drop-spec1') {
|
||||
let specArray = duplicate(this.object.data.data.specialisationsplus1);
|
||||
let specArray = duplicate(this.object.system.specialisationsplus1);
|
||||
specArray.push(newItem);
|
||||
await this.object.update({ 'data.specialisationsplus1': specArray });
|
||||
await this.object.update({ 'system.specialisationsplus1': specArray });
|
||||
}
|
||||
if (event.toElement.className == 'drop-spec2') {
|
||||
let specArray = duplicate(this.object.data.data.specincrease);
|
||||
let specArray = duplicate(this.object.system.specincrease);
|
||||
specArray.push(newItem);
|
||||
await this.object.update({ 'data.specincrease': specArray });
|
||||
await this.object.update({ 'system.specincrease': specArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addRolePerk(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addRolePerk(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
if (event.toElement.className == 'drop-perk2') {
|
||||
let perkArray = duplicate(this.object.data.data.perks);
|
||||
let perkArray = duplicate(this.object.system.perks);
|
||||
perkArray.push(newItem);
|
||||
await this.object.update({ 'data.perks': perkArray });
|
||||
await this.object.update({ 'system.perks': perkArray });
|
||||
}
|
||||
if (event.toElement.className == 'drop-specialperk1') {
|
||||
let perkArray = duplicate(this.object.data.data.specialperk);
|
||||
let perkArray = duplicate(this.object.system.specialperk);
|
||||
perkArray.push(newItem);
|
||||
await this.object.update({ 'data.specialperk': perkArray });
|
||||
await this.object.update({ 'system.specialperk': perkArray });
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
async addRoleAbility(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data)
|
||||
newItem._id = randomID(dataItem.id.length)
|
||||
async addRoleAbility(event, item) {
|
||||
let newItem = duplicate(item)
|
||||
newItem._id = randomID(item.id.length)
|
||||
if (event.toElement.className == 'drop-specialability') {
|
||||
let abiArray = duplicate(this.object.data.data.specialability)
|
||||
let abiArray = duplicate(this.object.system.specialability)
|
||||
abiArray.push(newItem)
|
||||
await this.object.update({ 'data.specialability': abiArray })
|
||||
await this.object.update({ 'system.specialability': abiArray })
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addPower(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addPower(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
if (event.toElement.className == 'drop-spec-power') {
|
||||
let powArray = duplicate(this.object.data.data.powers);
|
||||
let powArray = duplicate(this.object.system.powers);
|
||||
powArray.push(newItem);
|
||||
await this.object.update({ 'data.powers': powArray });
|
||||
await this.object.update({ 'system.powers': powArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addAbilityPower(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addAbilityPower(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
if (event.toElement.className == 'drop-ability-power') {
|
||||
let powArray = duplicate(this.object.data.data.powersgained);
|
||||
let powArray = duplicate(this.object.system.powersgained);
|
||||
powArray.push(newItem);
|
||||
await this.object.update({ 'data.powersgained': powArray });
|
||||
await this.object.update({ 'system.powersgained': powArray });
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
async addAbilityEffect(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addAbilityEffect(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
if (event.toElement.className == 'drop-ability-effect') {
|
||||
let powArray = duplicate(this.object.data.data.effectsgained);
|
||||
let powArray = duplicate(this.object.system.effectsgained);
|
||||
powArray.push(newItem);
|
||||
await this.object.update({ 'data.effectsgained': powArray });
|
||||
await this.object.update({ 'system.effectsgained': powArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addAbilitySpec(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addAbilitySpec(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
if (event.toElement.className == 'drop-ability-spec') {
|
||||
let powArray = duplicate(this.object.data.data.specialisations);
|
||||
let powArray = duplicate(this.object.system.specialisations);
|
||||
powArray.push(newItem);
|
||||
await this.object.update({ 'data.specialisations': powArray });
|
||||
await this.object.update({ 'system.specialisations': powArray });
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
async addAbilityWeaponArmor(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
newItem._id = randomID(dataItem.id.length);
|
||||
async addAbilityWeaponArmor(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
newItem._id = randomID(item.id.length);
|
||||
if (event.toElement.className == 'drop-ability-weapon') {
|
||||
let weaponArray = duplicate(this.object.data.data.attackgained);
|
||||
let weaponArray = duplicate(this.object.system.attackgained);
|
||||
weaponArray.push(newItem);
|
||||
await this.object.update({ 'data.attackgained': weaponArray });
|
||||
await this.object.update({ 'system.attackgained': weaponArray });
|
||||
}
|
||||
if (event.toElement.className == 'drop-ability-armor') {
|
||||
let armorArray = duplicate(this.object.data.data.armorgained);
|
||||
let armorArray = duplicate(this.object.system.armorgained);
|
||||
armorArray.push(newItem);
|
||||
await this.object.update({ 'data.armorgained': armorArray });
|
||||
await this.object.update({ 'system.armorgained': armorArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addPerkSpecialisation(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
async addPerkSpecialisation(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
if (event.toElement.className == 'drop-spec-perk') {
|
||||
//console.log("PER SPEC", event)
|
||||
let key = event.toElement.dataset["key"];
|
||||
if (key == 'affectedspec') {
|
||||
await this.object.update({ 'data.features.affectedspec.value': newItem.name });
|
||||
await this.object.update({ 'system.features.affectedspec.value': newItem.name });
|
||||
} else {
|
||||
await this.object.update({ 'data.features.gainspecdice.value': newItem.name });
|
||||
await this.object.update({ 'system.features.gainspecdice.value': newItem.name });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addPerkEffect(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data)
|
||||
async addPerkEffect(event, item) {
|
||||
let newItem = duplicate(item)
|
||||
if (event.toElement.className == 'drop-perk-effect') {
|
||||
let effectArray = duplicate(this.object.data.data.effectsgained)
|
||||
let effectArray = duplicate(this.object.system.effectsgained)
|
||||
effectArray.push(newItem)
|
||||
await this.object.update({ 'data.effectsgained': effectArray })
|
||||
await this.object.update({ 'system.effectsgained': effectArray })
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addEffectPower(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data)
|
||||
async addEffectPower(event, item) {
|
||||
let newItem = duplicate(item)
|
||||
if (event.toElement.className == 'drop-power-effect') {
|
||||
let effectArray = duplicate(this.object.data.data.effectsgained)
|
||||
let effectArray = duplicate(this.object.system.effectsgained)
|
||||
effectArray.push(newItem);
|
||||
await this.object.update({ 'data.effectsgained': effectArray })
|
||||
await this.object.update({ 'system.effectsgained': effectArray })
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addEffectSpec(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
async addEffectSpec(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
if (event.toElement.className == 'drop-effect-spec') {
|
||||
let specArray = duplicate(this.object.data.data.recoveryrollspec);
|
||||
let specArray = duplicate(this.object.system.recoveryrollspec);
|
||||
specArray.push(newItem);
|
||||
await this.object.update({ 'data.recoveryrollspec': specArray });
|
||||
await this.object.update({ 'system.recoveryrollspec': specArray });
|
||||
}
|
||||
if (event.toElement.className == 'drop-effect-specaffected') {
|
||||
let specArray = duplicate(this.object.data.data.specaffected);
|
||||
let specArray = duplicate(this.object.system.specaffected);
|
||||
specArray.push(newItem);
|
||||
await this.object.update({ 'data.specaffected': specArray });
|
||||
await this.object.update({ 'system.specaffected': specArray });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async addEffectItem(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
async addEffectItem(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
if (event.toElement.className == 'drop-equipment-effect') {
|
||||
let effectArray = duplicate(this.object.data.data.effects);
|
||||
let effectArray = duplicate(this.object.system.effects);
|
||||
effectArray.push(newItem);
|
||||
await this.object.update({ 'data.effects': effectArray });
|
||||
await this.object.update({ 'system.effects': effectArray });
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
async addEffectVirtueVice(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
async addEffectVirtueVice(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
if (event.toElement.className == 'drop-virtue-vice-effect') {
|
||||
let effectArray = duplicate(this.object.data.data.effectsgained);
|
||||
let effectArray = duplicate(this.object.system.effectsgained);
|
||||
effectArray.push(newItem);
|
||||
await this.object.update({ 'data.effectsgained': effectArray });
|
||||
await this.object.update({ 'system.effectsgained': effectArray });
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
async addViceToVirtue(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
async addViceToVirtue(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
if (event.toElement.className == 'drop-virtue-vice') {
|
||||
let viceArray = duplicate(this.object.data.data.unavailablevice);
|
||||
let viceArray = duplicate(this.object.system.unavailablevice);
|
||||
viceArray.push(newItem);
|
||||
await this.object.update({ 'data.unavailablevice': viceArray });
|
||||
await this.object.update({ 'system.unavailablevice': viceArray });
|
||||
}
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
async addVirtueToVice(event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
async addVirtueToVice(event, item) {
|
||||
let newItem = duplicate(item);
|
||||
if (event.toElement.className == 'drop-vice-virtue') {
|
||||
let virtueArray = duplicate(this.object.data.data.unavailablevirtue);
|
||||
let virtueArray = duplicate(this.object.system.unavailablevirtue);
|
||||
virtueArray.push(newItem);
|
||||
await this.object.update({ 'data.unavailablevirtue': virtueArray });
|
||||
await this.object.update({ 'system.unavailablevirtue': virtueArray });
|
||||
}
|
||||
}
|
||||
|
||||
@ -423,140 +423,101 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
/* -------------------------------------------- */
|
||||
async _onDrop(event) {
|
||||
|
||||
let data = event.dataTransfer.getData('text/plain')
|
||||
let dataItem = JSON.parse( data)
|
||||
console.log("DROP", event, dataItem )
|
||||
const item = fromUuidSync(dataItem.uuid)
|
||||
if (!item) {
|
||||
ui.notifications.warn("Unable to find relevant item - Aborting drag&drop " + data.uuid)
|
||||
return
|
||||
}
|
||||
|
||||
if (this.object.type == 'virtue' ) {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'effect') {
|
||||
return this.addEffectVirtueVice(event, item, dataItem);
|
||||
}
|
||||
if (item.data.type == 'vice') {
|
||||
return this.addViceToVirtue(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'effect') {
|
||||
return this.addEffectVirtueVice(event, item);
|
||||
}
|
||||
if (item.type == 'vice') {
|
||||
return this.addViceToVirtue(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'vice' ) {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'effect') {
|
||||
return this.addEffectVirtueVice(event, item, dataItem);
|
||||
}
|
||||
if (item.data.type == 'virtue') {
|
||||
return this.addVirtueToVice(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'effect') {
|
||||
return this.addEffectVirtueVice(event, item);
|
||||
}
|
||||
if (item.type == 'virtue') {
|
||||
return this.addVirtueToVice(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'weapon' || this.object.type == 'armor' || this.object.type == 'shield'
|
||||
|| this.object.type == 'equipment' || this.object.type == 'vehiclemodule'
|
||||
|| this.object.type == 'vehicleweaponmodule') {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'effect') {
|
||||
return this.addEffectItem(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'effect') {
|
||||
return this.addEffectItem(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'power') {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'effect') {
|
||||
return this.addEffectPower(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'effect') {
|
||||
return this.addEffectPower(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'effect') {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'specialisation') {
|
||||
return this.addEffectSpec(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'specialisation') {
|
||||
return this.addEffectSpec(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'race') {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'ability') {
|
||||
return this.addAbility(event, item, dataItem);
|
||||
}
|
||||
if (item.data.type == 'perk') {
|
||||
return this.addRacePerk(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'ability') {
|
||||
return this.addAbility(event, item);
|
||||
}
|
||||
if (item.type == 'perk') {
|
||||
return this.addRacePerk(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'perk') {
|
||||
let data = event.dataTransfer.getData('text/plain')
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem)
|
||||
if (item.data.type == 'specialisation') {
|
||||
return this.addPerkSpecialisation(event, item, dataItem)
|
||||
}
|
||||
if (item.data.type == 'effect') {
|
||||
return this.addPerkEffect(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'specialisation') {
|
||||
return this.addPerkSpecialisation(event, item)
|
||||
}
|
||||
if (item.type == 'effect') {
|
||||
return this.addPerkEffect(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'specialisation') {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'power') {
|
||||
return this.addPower(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'power') {
|
||||
return this.addPower(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'ability') {
|
||||
let data = event.dataTransfer.getData('text/plain');
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data);
|
||||
let item = await PegasusUtility.searchItem(dataItem);
|
||||
if (item.data.type == 'effect') {
|
||||
return this.addAbilityEffect(event, item, dataItem);
|
||||
}
|
||||
if (item.data.type == 'power') {
|
||||
return this.addAbilityPower(event, item, dataItem);
|
||||
}
|
||||
if (item.data.type == 'specialisation') {
|
||||
return this.addAbilitySpec(event, item, dataItem);
|
||||
}
|
||||
if (item.data.type == 'weapon' || item.data.type == 'armor') {
|
||||
return this.addAbilityWeaponArmor(event, item, dataItem);
|
||||
}
|
||||
if (item.type == 'effect') {
|
||||
return this.addAbilityEffect(event, item);
|
||||
}
|
||||
if (item.type == 'power') {
|
||||
return this.addAbilityPower(event, item);
|
||||
}
|
||||
if (item.type == 'specialisation') {
|
||||
return this.addAbilitySpec(event, item);
|
||||
}
|
||||
if (item.type == 'weapon' || item.type == 'armor') {
|
||||
return this.addAbilityWeaponArmor(event, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.object.type == 'role') {
|
||||
let data = event.dataTransfer.getData('text/plain')
|
||||
if (data) {
|
||||
let dataItem = JSON.parse(data)
|
||||
let item = await PegasusUtility.searchItem(dataItem)
|
||||
if (item.data.type == 'specialisation') {
|
||||
return this.addRoleSpecialisation(event, item, dataItem)
|
||||
}
|
||||
if (item.data.type == 'perk') {
|
||||
return this.addRolePerk(event, item, dataItem)
|
||||
}
|
||||
if (item.data.type == 'ability') {
|
||||
return this.addRoleAbility(event, item, dataItem)
|
||||
}
|
||||
if (item.type == 'specialisation') {
|
||||
return this.addRoleSpecialisation(event, item)
|
||||
}
|
||||
if (item.type == 'perk') {
|
||||
return this.addRolePerk(event, item)
|
||||
}
|
||||
if (item.type == 'ability') {
|
||||
return this.addRoleAbility(event, item)
|
||||
}
|
||||
}
|
||||
ui.notifications.warn("This item can not be dropped over another item")
|
||||
|
@ -51,10 +51,10 @@ export class PegasusRollDialog extends Dialog {
|
||||
let level, genre, idVal, key
|
||||
if (effect.type == 'effect') {
|
||||
let effectData = effect.effect
|
||||
level = effectData.data.effectlevel
|
||||
genre = effectData.data.genre
|
||||
effectData.data.isUsed = toggled
|
||||
if (effectData.data.reducedicevalue || effectData.data.statdice) {
|
||||
level = effectData.system.effectlevel
|
||||
genre = effectData.system.genre
|
||||
effectData.system.isUsed = toggled
|
||||
if (effectData.system.reducedicevalue || effectData.system.statdice) {
|
||||
idVal = "#statDicesLevel"
|
||||
key = "statLevelBonus"
|
||||
}
|
||||
@ -124,13 +124,13 @@ export class PegasusRollDialog extends Dialog {
|
||||
if (equip) {
|
||||
equip.applied = toggled
|
||||
let idVal = "#damageDiceLevel" // Default
|
||||
if (equip.equip.data.bonusdice) {
|
||||
if (equip.equip.system.bonusdice) {
|
||||
idVal = "#bonusDicesLevel"
|
||||
}
|
||||
if (equip.equip.data.statdice) {
|
||||
if (equip.equip.system.statdice) {
|
||||
idVal = "#statDicesLevel"
|
||||
}
|
||||
if (equip.equip.data.otherdice) {
|
||||
if (equip.equip.system.otherdice) {
|
||||
idVal = "#damageDiceLevel"
|
||||
}
|
||||
let newLevel = Number($(idVal).val())
|
||||
@ -170,7 +170,7 @@ export class PegasusRollDialog extends Dialog {
|
||||
this.rollData.selectedSpec = event.currentTarget.value
|
||||
let spec = this.rollData.specList.find(item => item._id == this.rollData.selectedSpec)
|
||||
if (spec) {
|
||||
this.rollData.specDicesLevel = spec.data.level
|
||||
this.rollData.specDicesLevel = spec.system.level
|
||||
this.rollData.specName = spec.name
|
||||
$('#specDicesLevel').val(this.rollData.specDicesLevel)
|
||||
} else {
|
||||
|
@ -109,12 +109,12 @@ export class PegasusUtility {
|
||||
static updateEffectsBonusDice(rollData) {
|
||||
let newDicePool = rollData.dicePool.filter(dice => dice.name != "effect-bonus-dice")
|
||||
for (let effect of rollData.effectsList) {
|
||||
if (effect && effect.applied && effect.type == "effect" && effect.effect.data.bonusdice) {
|
||||
let diceKey = PegasusUtility.getDiceFromLevel(effect.effect.data.effectlevel)
|
||||
if (effect && effect.applied && effect.type == "effect" && effect.effect.system.bonusdice) {
|
||||
let diceKey = PegasusUtility.getDiceFromLevel(effect.effect.system.effectlevel)
|
||||
let diceList = diceKey.split(" ")
|
||||
for (let myDice of diceList) {
|
||||
let newDice = {
|
||||
name: "effect-bonus-dice", key: myDice, level: effect.effect.data.effectlevel, effect: effect.effect.name,
|
||||
name: "effect-bonus-dice", key: myDice, level: effect.effect.system.effectlevel, effect: effect.effect.name,
|
||||
img: `systems/fvtt-pegasus-rpg/images/dice/${myDice}.webp`
|
||||
}
|
||||
newDicePool.push(newDice)
|
||||
@ -128,8 +128,8 @@ export class PegasusUtility {
|
||||
static updateHindranceBonusDice(rollData) {
|
||||
let newDicePool = rollData.dicePool.filter(dice => dice.name != "effect-hindrance")
|
||||
for (let hindrance of rollData.effectsList) {
|
||||
if (hindrance && hindrance.applied && (hindrance.type == "hindrance" || (hindrance.type == "effect" && hindrance.effect?.data?.hindrance) ) ) {
|
||||
let diceKey = PegasusUtility.getDiceFromLevel( (hindrance.value) ? hindrance.value : hindrance.effect.data.effectlevel)
|
||||
if (hindrance && hindrance.applied && (hindrance.type == "hindrance" || (hindrance.type == "effect" && hindrance.effect?.system?.hindrance) ) ) {
|
||||
let diceKey = PegasusUtility.getDiceFromLevel( (hindrance.value) ? hindrance.value : hindrance.effect.system.effectlevel)
|
||||
let diceList = diceKey.split(" ")
|
||||
for (let myDice of diceList) {
|
||||
let newDice = {
|
||||
@ -500,19 +500,6 @@ export class PegasusUtility {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static templateData(it) {
|
||||
return PegasusUtility.data(it)?.data ?? {}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static data(it) {
|
||||
if (it instanceof Actor || it instanceof Item || it instanceof Combatant) {
|
||||
return it.data;
|
||||
}
|
||||
return it;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static getDiceValue(level = 0) {
|
||||
let diceString = this.diceList[level]
|
||||
@ -716,7 +703,7 @@ export class PegasusUtility {
|
||||
// De-actived used effects from perks
|
||||
let toRem = []
|
||||
for (let effect of rollData.effectsList) {
|
||||
if (effect.effect.data.perkId && effect.effect.data.isUsed) {
|
||||
if (effect.effect.system.perkId && effect.effect.system.isUsed) {
|
||||
toRem.push(effect.effect._id)
|
||||
}
|
||||
}
|
||||
@ -731,7 +718,7 @@ export class PegasusUtility {
|
||||
// De-actived used effects from perks
|
||||
let toRem = []
|
||||
for (let effect of rollData.effectsList) {
|
||||
if (effect.effect && effect.effect.data.isUsed && effect.effect.data.oneuse) {
|
||||
if (effect.effect && effect.effect.system.isUsed && effect.effect.system.oneuse) {
|
||||
effect.defenderTokenId = rollData.defenderTokenId
|
||||
if (effect.foreign) {
|
||||
if (game.user.isGM) {
|
||||
@ -896,7 +883,7 @@ export class PegasusUtility {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
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) {
|
||||
|
18
system.json
18
system.json
@ -1,6 +1,4 @@
|
||||
{
|
||||
"author": "Uberwald",
|
||||
"compatibleCoreVersion": "9",
|
||||
"description": "Pegasus RPG system for FoundryVTT",
|
||||
"download": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg/fvtt-pegasus-rpg.zip",
|
||||
"esmodules": [
|
||||
@ -15,13 +13,23 @@
|
||||
"path": "lang/en.json"
|
||||
}
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Uberwald",
|
||||
"flags": {}
|
||||
}
|
||||
],
|
||||
"library": false,
|
||||
"license": "LICENSE.txt",
|
||||
"manifest": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg/system.json",
|
||||
"manifestPlusVersion": "1.0.0",
|
||||
"media": [],
|
||||
"minimumCoreVersion": "0.8.0",
|
||||
"name": "fvtt-pegasus-rpg",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
"verified": "10.284",
|
||||
"maximum": "10"
|
||||
},
|
||||
"id": "fvtt-pegasus-rpg",
|
||||
"packs": [
|
||||
{
|
||||
"type": "Item",
|
||||
@ -273,6 +281,6 @@
|
||||
"templateVersion": 109,
|
||||
"title": "Pegasus RPG",
|
||||
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
||||
"version": "0.6.27",
|
||||
"version": "10.0.0",
|
||||
"background" : "./images/ui/pegasus_welcome_page.webp"
|
||||
}
|
||||
|
@ -43,14 +43,14 @@
|
||||
<h4 class="stat-text-white stat-margin"><a class="roll-stat stat-margin" data-stat-key="mr">MR</a>
|
||||
</h4>
|
||||
</span>
|
||||
<select class="status-small-label color-class-common" type="text" name="data.mr.value"
|
||||
<select class="status-small-label color-class-common" type="text" name="system.mr.value"
|
||||
value="{{data.mr.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
{{#select data.mr.value}}
|
||||
{{{@root.optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common"
|
||||
name="data.mr.mod" value="{{data.mr.mod}}" data-dtype="Number" {{#unless
|
||||
name="system.mr.mod" value="{{data.mr.mod}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}} />
|
||||
</li>
|
||||
</ul>
|
||||
@ -62,7 +62,7 @@
|
||||
|
||||
<!--
|
||||
<label class="status-small-label">Active NRG</label>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
|
||||
-->
|
||||
|
||||
</div>
|
||||
@ -158,10 +158,10 @@
|
||||
<ul class="stat-list alternate-list">
|
||||
<li class="item stat flexrow list-item">
|
||||
<span class="generic-label small-label">Current</span>
|
||||
<input type="text" class="" name="data.combat.stunlevel" value="{{data.combat.stunlevel}}"
|
||||
<input type="text" class="" name="system.combat.stunlevel" value="{{data.combat.stunlevel}}"
|
||||
data-dtype="Number" />
|
||||
<span class="generic-label small-label">Threshold</span>
|
||||
<input type="text" class="" name="data.combat.stunthreshold" value="{{data.combat.stunthreshold}}"
|
||||
<input type="text" class="" name="system.combat.stunthreshold" value="{{data.combat.stunthreshold}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
</ul>
|
||||
@ -205,16 +205,16 @@
|
||||
src="{{perk.img}}" /></a>
|
||||
<span class="item-name-label-long">{{perk.name}}</span>
|
||||
|
||||
<span class="item-field-label-short">{{perk.data.level}}</span>
|
||||
<span class="item-field-label-short">{{perk.system.level}}</span>
|
||||
|
||||
{{#if perk.data.features.range.flag}}
|
||||
<span class="item-field-label-medium">{{perk.data.features.range.value}}</span>
|
||||
{{#if perk.system.features.range.flag}}
|
||||
<span class="item-field-label-medium">{{perk.system.features.range.value}}</span>
|
||||
{{else}}
|
||||
<span class="item-field-label-medium"> - </span>
|
||||
|
||||
{{/if}}
|
||||
{{#if perk.data.features.nbtargets.flag}}
|
||||
<span class="item-field-label-short">{{perk.data.features.nbtargets.value}}</span>
|
||||
{{#if perk.system.features.nbtargets.flag}}
|
||||
<span class="item-field-label-short">{{perk.system.features.nbtargets.value}}</span>
|
||||
{{else}}
|
||||
<span class="item-field-label-short"> - </span>
|
||||
{{/if}}
|
||||
@ -224,8 +224,8 @@
|
||||
{{#if (eq @root.traumaState "severetrauma")}}
|
||||
Disabled
|
||||
{{else}}
|
||||
<select class="perk-status" type="text" value="{{perk.data.status}}" data-dtype="String">
|
||||
{{#select perk.data.status}}
|
||||
<select class="perk-status" type="text" value="{{perk.system.status}}" data-dtype="String">
|
||||
{{#select perk.system.status}}
|
||||
<option value="ready">Ready</option>
|
||||
<option value="activated">Activated</option>
|
||||
<option value="round2">2 Rounds left</option>
|
||||
@ -235,38 +235,38 @@
|
||||
{{/if}}
|
||||
</span>
|
||||
|
||||
{{#if (ne perk.data.status "ready")}}
|
||||
{{#if (eq perk.data.nbuse "next1action")}}
|
||||
{{#if (ne perk.system.status "ready")}}
|
||||
{{#if (eq perk.system.nbuse "next1action")}}
|
||||
<span class="item-field-label-short "><label
|
||||
class="item-field-label-short attribute-value checkbox"><input type="checkbox" class="perk-used"
|
||||
data-use-index="1" name="perk.data.used1" {{checked perk.data.used1}} /></label></span>
|
||||
data-use-index="1" name="perk.system.used1" {{checked perk.system.used1}} /></label></span>
|
||||
<span class="item-field-label-short "> </span>
|
||||
<span class="item-field-label-short "> </span>
|
||||
{{/if}}
|
||||
{{#if (eq perk.data.nbuse "next2action")}}
|
||||
{{#if (eq perk.system.nbuse "next2action")}}
|
||||
<span class="item-field-label-short "><label
|
||||
class="item-field-label-short attribute-value checkbox"></label><input type="checkbox"
|
||||
class="perk-used" data-use-index="1" name="perk.data.used1" {{checked
|
||||
perk.data.used1}} /></label></span>
|
||||
class="perk-used" data-use-index="1" name="perk.system.used1" {{checked
|
||||
perk.system.used1}} /></label></span>
|
||||
<span class="item-field-label-short "><label
|
||||
class="item-field-label-short attribute-value checkbox"></label><input type="checkbox"
|
||||
class="perk-used" data-use-index="2" name="perk.data.used2" {{checked
|
||||
perk.data.used2}} /></label></span>
|
||||
class="perk-used" data-use-index="2" name="perk.system.used2" {{checked
|
||||
perk.system.used2}} /></label></span>
|
||||
<span class="item-field-label-short "> </span>
|
||||
{{/if}}
|
||||
{{#if (eq perk.data.nbuse "next3action")}}
|
||||
{{#if (eq perk.system.nbuse "next3action")}}
|
||||
<span class="item-field-label-short "><label
|
||||
class="item-field-label-short attribute-value checkbox"></label><input type="checkbox"
|
||||
class="perk-used" data-use-index="1" name="perk.data.used1" {{checked
|
||||
perk.data.used1}} /></label></span>
|
||||
class="perk-used" data-use-index="1" name="perk.system.used1" {{checked
|
||||
perk.system.used1}} /></label></span>
|
||||
<span class="item-field-label-short "><label
|
||||
class="item-field-label-short attribute-value checkbox"></label><input type="checkbox"
|
||||
class="perk-used" data-use-index="2" name="perk.data.used2" {{checked
|
||||
perk.data.used2}} /></label></span>
|
||||
class="perk-used" data-use-index="2" name="perk.system.used2" {{checked
|
||||
perk.system.used2}} /></label></span>
|
||||
<span class="item-field-label-short "><label
|
||||
class="item-field-label-short attribute-value checkbox"></label><input type="checkbox"
|
||||
class="perk-used" data-use-index="3" name="perk.data.used3" {{checked
|
||||
perk.data.used3}} /></label></span>
|
||||
class="perk-used" data-use-index="3" name="perk.system.used3" {{checked
|
||||
perk.system.used3}} /></label></span>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<span class="item-field-label-short "><label class="item-field-label-short"> </label></span>
|
||||
@ -307,10 +307,10 @@
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{effect.img}}" /></a>
|
||||
<span class="item-name-label-long2">{{effect.name}}</span>
|
||||
<span class="item-field-label-short">{{effect.data.effectlevel}}</span>
|
||||
<span class="item-field-label-short">{{upperFirst effect.data.type}}</span>
|
||||
<span class="item-field-label-short">{{upperFirst effect.data.genre}}</span>
|
||||
<span class="item-field-label-short">{{upper effect.data.stataffected}}</span>
|
||||
<span class="item-field-label-short">{{effect.system.effectlevel}}</span>
|
||||
<span class="item-field-label-short">{{upperFirst effect.system.type}}</span>
|
||||
<span class="item-field-label-short">{{upperFirst effect.datsystema.genre}}</span>
|
||||
<span class="item-field-label-short">{{upper effect.system.stataffected}}</span>
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
@ -344,10 +344,10 @@
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{spec.img}}" /></a>
|
||||
<span class="item-name-label"><a class="roll-spec">{{spec.name}}</a></span>
|
||||
<span class="item-field-label-short">{{upper spec.data.statistic}}</span>
|
||||
<span class="item-field-label-short">{{spec.data.dice}}</span>
|
||||
{{#if spec.data.ispowergroup}}
|
||||
{{#if spec.data.powersactivated}}
|
||||
<span class="item-field-label-short">{{upper spec.system.statistic}}</span>
|
||||
<span class="item-field-label-short">{{spec.system.dice}}</span>
|
||||
{{#if spec.system.ispowergroup}}
|
||||
{{#if spec.system.powersactivated}}
|
||||
<span class="item-field-label-long"><a class="spec-group-deactivate">Deactivate</a></span>
|
||||
{{else}}
|
||||
<span class="item-field-label-long"><a class="spec-group-activate">Activate</a></span>
|
||||
@ -379,17 +379,17 @@
|
||||
<h4>{{data.nrg.label}}</h4>
|
||||
</span>
|
||||
<span class="small-label padd-right packed-left">Activated</span><input type="text"
|
||||
class="padd-right update-field" data-field-name="data.nrg.activated" value="{{data.nrg.activated}}"
|
||||
class="padd-right update-field" data-field-name="system.nrg.activated" value="{{data.nrg.activated}}"
|
||||
data-dtype="Number" />
|
||||
<span class="small-label padd-right packed-left"> Current</span><input type="text"
|
||||
class="padd-right update-field" data-field-name="data.nrg.value" value="{{data.nrg.value}}"
|
||||
class="padd-right update-field" data-field-name="system.nrg.value" value="{{data.nrg.value}}"
|
||||
data-dtype="Number" />
|
||||
<a class="current-nrg-plus plus-minus-button">+</a>/<a class="current-nrg-minus plus-minus-button"> -</a>
|
||||
<span class="small-label padd-right packed-left"> Mod</span><input type="text"
|
||||
class="padd-right update-field" data-field-name="data.nrg.mod" value="{{data.nrg.mod}}"
|
||||
class="padd-right update-field" data-field-name="system.nrg.mod" value="{{data.nrg.mod}}"
|
||||
data-dtype="Number" />
|
||||
<span class="small-label padd-right packed-left"> Max</span><input type="text"
|
||||
class="padd-right update-field" data-field-name="data.nrg.max" value="{{data.nrg.max}}"
|
||||
class="padd-right update-field" data-field-name="system.nrg.max" value="{{data.nrg.max}}"
|
||||
data-dtype="Number" />
|
||||
<span class="small-label padd-right packed-left"> / {{data.nrg.absolutemax}}</span>
|
||||
</li>
|
||||
@ -398,11 +398,11 @@
|
||||
<h4>Power Purchase Points (PPP)</h4>
|
||||
</span>
|
||||
<span class="small-label padd-right packed-left">Available PPP</span><input type="text"
|
||||
class="padd-right input-numeric-short" name="data.ppp.available" value="{{data.ppp.available}}"
|
||||
class="padd-right input-numeric-short" name="system.ppp.available" value="{{data.ppp.available}}"
|
||||
data-dtype="Number" />
|
||||
|
||||
<span class="small-label padd-right packed-left">Spent PPP</span><input type="text"
|
||||
class="padd-right input-numeric-short" name="data.ppp.spent" value="{{data.ppp.spent}}"
|
||||
class="padd-right input-numeric-short" name="system.ppp.spent" value="{{data.ppp.spent}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
</ul>
|
||||
@ -440,16 +440,16 @@
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{power.img}}" /></a>
|
||||
<span class="item-name-label">
|
||||
{{#if power.data.rollneeded}}
|
||||
{{#if power.system.rollneeded}}
|
||||
<a class="power-roll">{{power.name}}</a>
|
||||
{{else}}
|
||||
{{power.name}}
|
||||
{{/if}}
|
||||
</span>
|
||||
<span class="item-field-label-medium">{{upperFirst power.data.type}}</span>
|
||||
<span class="item-field-label-medium">{{upperFirst power.system.type}}</span>
|
||||
|
||||
<span class="item-field-label-short"><label class="short-label">
|
||||
{{#if power.data.activated}}
|
||||
{{#if power.system.activated}}
|
||||
Activated
|
||||
{{else}}
|
||||
-
|
||||
@ -457,27 +457,27 @@
|
||||
</label>
|
||||
</span>
|
||||
|
||||
<span class="item-field-label-medium">{{upperFirst power.data.action}}</span>
|
||||
<span class="item-field-label-medium">{{upperFirst power.system.action}}</span>
|
||||
|
||||
<span class="item-field-label-medium"><a class="power-dmg-roll">
|
||||
{{#if power.data.dmgroll}}
|
||||
{{upper power.data.dmgstatistic}}
|
||||
{{#if power.system.dmgroll}}
|
||||
{{upper power.system.dmgstatistic}}
|
||||
{{else}}
|
||||
-
|
||||
{{/if}}
|
||||
</a></span>
|
||||
|
||||
<span class="item-field-label-medium">{{power.data.cost}}</span>
|
||||
<span class="item-field-label-medium">{{power.system.cost}}</span>
|
||||
<span class="item-field-label-medium">
|
||||
<input type="text" class="padd-right input-numeric-short power-cost-spent"
|
||||
value="{{power.data.costspent}}" data-dtype="Number" />
|
||||
value="{{power.system.costspent}}" data-dtype="Number" />
|
||||
</span>
|
||||
|
||||
<span class="item-field-label-medium">{{power.data.powerlevel}}</span>
|
||||
<span class="item-field-label-medium">{{power.system.powerlevel}}</span>
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control power-activate" title="Activated">{{#if power.data.activated}}<i
|
||||
<a class="item-control power-activate" title="Activated">{{#if power.system.activated}}<i
|
||||
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>
|
||||
</div>
|
||||
@ -509,10 +509,10 @@
|
||||
src="{{ability.img}}" /></a>
|
||||
<span class="item-name-label">{{ability.name}}</span>
|
||||
|
||||
<span class="item-field-label-long">{{upper ability.data.affectedstat}}</span>
|
||||
<span class="item-field-label-medium">{{ability.data.statmodifier}}</span>
|
||||
<span class="item-field-label-medium">{{upperFirst ability.data.statusaffected}}</span>
|
||||
<span class="item-field-label-medium">{{ability.data.statusmodifier}}</span>
|
||||
<span class="item-field-label-long">{{upper ability.system.affectedstat}}</span>
|
||||
<span class="item-field-label-medium">{{ability.system.statmodifier}}</span>
|
||||
<span class="item-field-label-medium">{{upperFirst ability.system.statusaffected}}</span>
|
||||
<span class="item-field-label-medium">{{ability.system.statusmodifier}}</span>
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
@ -561,16 +561,16 @@
|
||||
<span class="item-name-label">{{money.name}}</span>
|
||||
|
||||
<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>)
|
||||
</label>
|
||||
</span>
|
||||
<span class="item-field-label-medium">
|
||||
<label>{{money.data.weight}}</label>
|
||||
<label>{{money.system.weight}}</label>
|
||||
</span>
|
||||
<span class="item-field-label-medium">
|
||||
{{#if money.data.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{money.data.idrDice}}">{{money.data.idrDice}}</a>
|
||||
{{#if money.system.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{money.system.idrDice}}">{{money.system.idrDice}}</a>
|
||||
{{else}}
|
||||
-
|
||||
{{/if}}
|
||||
@ -623,13 +623,13 @@
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{weapon.img}}" /></a>
|
||||
<span class="item-name-label">{{weapon.name}}</span>
|
||||
<span class="item-field-label-short"><label>{{upper weapon.data.statistic}}</label></span>
|
||||
<span class="item-field-label-short"><label>{{upper weapon.data.damagestatistic}}</label></span>
|
||||
<span class="item-field-label-short"><label>{{weapon.data.damageDice}}</label></span>
|
||||
<span class="item-field-label-medium"><label>{{weapon.data.damagetype}} ({{weapon.data.damagetypelevel}})</label></span>
|
||||
<span class="item-field-label-short"><label>{{upper weapon.system.statistic}}</label></span>
|
||||
<span class="item-field-label-short"><label>{{upper weapon.system.damagestatistic}}</label></span>
|
||||
<span class="item-field-label-short"><label>{{weapon.system.damageDice}}</label></span>
|
||||
<span class="item-field-label-medium"><label>{{weapon.system.damagetype}} ({{weapon.system.damagetypelevel}})</label></span>
|
||||
|
||||
{{#if (gt weapon.data.ammomax 0)}}
|
||||
<span class="item-field-label-long"><label>{{weapon.data.ammocurrent}}/{{weapon.data.ammomax}}
|
||||
{{#if (gt weapon.system.ammomax 0)}}
|
||||
<span class="item-field-label-long"><label>{{weapon.system.ammocurrent}}/{{weapon.system.ammomax}}
|
||||
(<a class="ammo-minus plus-minus-button"> -</a>/<a class="ammo-plus plus-minus-button">+</a>)
|
||||
</label></span>
|
||||
{{else}}
|
||||
@ -638,8 +638,8 @@
|
||||
{{/if}}
|
||||
|
||||
<span class="item-field-label-medium">
|
||||
{{#if (count weapon.data.effects)}}
|
||||
{{#if weapon.data.activated}}
|
||||
{{#if (count weapon.system.effects)}}
|
||||
{{#if weapon.system.activated}}
|
||||
<a class="equip-deactivate">Deactivate</a>
|
||||
{{else}}
|
||||
<a class="equip-activate">Activate</a>
|
||||
@ -648,11 +648,11 @@
|
||||
-
|
||||
{{/if}}
|
||||
</span>
|
||||
<span class="item-field-label-short"><label>{{weapon.data.weight}}</label></span>
|
||||
<span class="item-field-label-short"><label>{{weapon.system.weight}}</label></span>
|
||||
|
||||
<span class="item-field-label-medium">
|
||||
{{#if weapon.data.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{weapon.data.idrDice}}">{{weapon.data.idrDice}}</a>
|
||||
{{#if weapon.system.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{weapon.system.idrDice}}">{{weapon.system.idrDice}}</a>
|
||||
{{else}}
|
||||
-
|
||||
{{/if}}
|
||||
@ -660,7 +660,7 @@
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<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>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -702,13 +702,13 @@
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{armor.img}}" /></a>
|
||||
<span class="item-name-label">{{armor.name}}</span>
|
||||
<span class="item-field-label-short">{{upper armor.data.statistic}}</span>
|
||||
<span class="item-field-label-short">{{armor.data.resistanceDice}}</span>
|
||||
<span class="item-field-label-medium">{{armor.data.locationprotected}}</span>
|
||||
<span class="item-field-label-short">{{upper armor.system.statistic}}</span>
|
||||
<span class="item-field-label-short">{{armor.system.resistanceDice}}</span>
|
||||
<span class="item-field-label-medium">{{armor.system.locationprotected}}</span>
|
||||
|
||||
<span class="item-field-label-medium">
|
||||
{{#if (count armor.data.effects)}}
|
||||
{{#if armor.data.activated}}
|
||||
{{#if (count armor.system.effects)}}
|
||||
{{#if armor.system.activated}}
|
||||
<a class="equip-deactivate">Deactivate</a>
|
||||
{{else}}
|
||||
<a class="equip-activate">Activate</a>
|
||||
@ -718,10 +718,10 @@
|
||||
{{/if}}
|
||||
</span>
|
||||
|
||||
<span class="item-field-label-short">{{armor.data.weight}}</span>
|
||||
<span class="item-field-label-short">{{armor.system.weight}}</span>
|
||||
<span class="item-field-label-medium">
|
||||
{{#if armor.data.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{armor.data.idrDice}}">{{armor.data.idrDice}}</a>
|
||||
{{#if armor.system.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{armor.system.idrDice}}">{{armor.system.idrDice}}</a>
|
||||
{{else}}
|
||||
-
|
||||
{{/if}}
|
||||
@ -729,7 +729,7 @@
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<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>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -764,11 +764,11 @@
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{shield.img}}" /></a>
|
||||
<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>
|
||||
|
||||
<span class="item-field-label-medium">
|
||||
{{#if (count shield.data.effects)}}
|
||||
{{#if shield.data.activated}}
|
||||
{{#if (count shield.system.effects)}}
|
||||
{{#if shield.system.activated}}
|
||||
<a class="equip-deactivate">Deactivate</a>
|
||||
{{else}}
|
||||
<a class="equip-activate">Activate</a>
|
||||
@ -778,17 +778,17 @@
|
||||
{{/if}}
|
||||
</span>
|
||||
|
||||
<span class="item-field-label-short">{{shield.data.weight}}</span>
|
||||
<span class="item-field-label-short">{{shield.system.weight}}</span>
|
||||
<span class="item-field-label-medium">
|
||||
{{#if shield.data.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{shield.data.idrDice}}">{{shield.data.idrDice}}</a>
|
||||
{{#if shield.system.idrDice}}
|
||||
<a class="roll-idr" data-dice-value="{{shield.system.idrDice}}">{{shield.system.idrDice}}</a>
|
||||
{{else}}
|
||||
-
|
||||
{{/if}}
|
||||
</span>
|
||||
<div class="item-filler"> </div>
|
||||
<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>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -822,7 +822,7 @@
|
||||
{{#each containersTree as |equip key|}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html equip=equip level=1}}
|
||||
<ul class="item-list list-item-shadow2 list-item-margin1">
|
||||
{{#each equip.data.contents as |subgear key|}}
|
||||
{{#each equip.system.contents as |subgear key|}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html equip=subgear level=2}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
@ -840,24 +840,24 @@
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="item flexrow">
|
||||
<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" />
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<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 class="item flexrow">
|
||||
<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.size" value="{{data.biodata.size}}" data-dtype="String" />
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<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 class="item flexrow">
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
@ -865,22 +865,22 @@
|
||||
<ul>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label">Weight</label>
|
||||
<input type="text" class="" name="data.biodata.weight" value="{{data.biodata.weight}}"
|
||||
<input type="text" class="" name="system.biodata.weight" value="{{data.biodata.weight}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<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 class="flexrow item">
|
||||
<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" />
|
||||
</li>
|
||||
<li class="flexrow item" data-item-id="{{race._id}}">
|
||||
<label class="generic-label">Race</label>
|
||||
<a class="item-edit"><img class="stat-icon" src="{{race.img}}"></a>
|
||||
<input type="text" class="" name="data.biodata.racename" value="{{race.name}}" disabled
|
||||
<input type="text" class="" name="system.biodata.racename" value="{{race.name}}" disabled
|
||||
data-dtype="String" />
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
@ -889,7 +889,7 @@
|
||||
<li class="flexrow item" data-item-id="{{role._id}}">
|
||||
<label class="generic-label">Role</label>
|
||||
<a class="item-edit"><img class="stat-icon" src="{{role.img}}"></a>
|
||||
<input type="text" class="" name="data.biodata.rolename" value="{{role.name}}" disabled
|
||||
<input type="text" class="" name="system.biodata.rolename" value="{{role.name}}" disabled
|
||||
data-dtype="String" />
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
@ -914,7 +914,7 @@
|
||||
src="{{virtue.img}}" /></a>
|
||||
<span class="item-name-label">{{virtue.name}}</span>
|
||||
<span class="item-field-label-short"><label class="short-label">
|
||||
{{#if virtue.data.activated}}
|
||||
{{#if virtue.system.activated}}
|
||||
Activated
|
||||
{{else}}
|
||||
-
|
||||
@ -923,7 +923,7 @@
|
||||
</span>
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control vice-virtue-activate" title="Activated">{{#if virtue.data.activated}}<i
|
||||
<a class="item-control vice-virtue-activate" title="Activated">{{#if virtue.system.activated}}<i
|
||||
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>
|
||||
</div>
|
||||
@ -947,7 +947,7 @@
|
||||
src="{{vice.img}}" /></a>
|
||||
<span class="item-name-label">{{vice.name}}</span>
|
||||
<span class="item-field-label-short"><label class="short-label">
|
||||
{{#if vice.data.activated}}
|
||||
{{#if vice.system.activated}}
|
||||
Activated
|
||||
{{else}}
|
||||
-
|
||||
@ -957,7 +957,7 @@
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control vice-virtue-activate" title="Activated">{{#if vice.data.activated}}<i
|
||||
<a class="item-control vice-virtue-activate" title="Activated">{{#if vice.system.activated}}<i
|
||||
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>
|
||||
</div>
|
||||
@ -974,17 +974,17 @@
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Worst Fear </label>
|
||||
<input type="text" class="" name="data.biodata.worstfear" value="{{data.biodata.worstfear}}"
|
||||
<input type="text" class="" name="system.biodata.worstfear" value="{{data.biodata.worstfear}}"
|
||||
data-dtype="String" />
|
||||
<label class="attribute-value checkbox"><input type="checkbox" class="change-worstfear"
|
||||
name="data.biodata.worstfearactive" {{checked data.biodata.worstfearactive}} /> Active ?</label>
|
||||
name="system.biodata.worstfearactive" {{checked data.biodata.worstfearactive}} /> Active ?</label>
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Desires </label>
|
||||
<input type="text" class="" name="data.biodata.desires" value="{{data.biodata.desires}}"
|
||||
<input type="text" class="" name="system.biodata.desires" value="{{data.biodata.desires}}"
|
||||
data-dtype="String" />
|
||||
<label class="attribute-value checkbox"><input type="checkbox" class="change-desires"
|
||||
name="data.biodata.desiresactive" {{checked data.biodata.desiresactive}} /> Active ?</label>
|
||||
name="system.biodata.desiresactive" {{checked data.biodata.desiresactive}} /> Active ?</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -992,17 +992,17 @@
|
||||
<ul>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Catchphrase </label>
|
||||
<input type="text" class="" name="data.biodata.catchphrase" value="{{data.biodata.catchphrase}}"
|
||||
<input type="text" class="" name="system.biodata.catchphrase" value="{{data.biodata.catchphrase}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Catchphrase Trigger : </label>
|
||||
<input type="text" class="" name="data.biodata.catchphrasetrigger" value="{{data.biodata.catchphrasetrigger}}"
|
||||
<input type="text" class="" name="system.biodata.catchphrasetrigger" value="{{data.biodata.catchphrasetrigger}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Catchphrase used </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.biodata.catchphraseused" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.biodata.catchphraseused" {{checked
|
||||
data.biodata.catchphraseused}} /></label>
|
||||
</li>
|
||||
</ul>
|
||||
@ -1015,28 +1015,28 @@
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Character Value : </label>
|
||||
<input type="text" class="" name="data.biodata.charactervalue" value="{{data.biodata.charactervalue}}"
|
||||
<input type="text" class="" name="system.biodata.charactervalue" value="{{data.biodata.charactervalue}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Character Development Points Total (CDP total) : </label>
|
||||
<input type="text" class="" name="data.biodata.cdp" value="{{data.biodata.cdp}}" data-dtype="Number" />
|
||||
<input type="text" class="" name="system.biodata.cdp" value="{{data.biodata.cdp}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Bonus selection : </label>
|
||||
<input type="text" class="" name="data.biodata.bonusselection" value="{{data.biodata.bonusselection}}" data-dtype="String" />
|
||||
<input type="text" class="" name="system.biodata.bonusselection" value="{{data.biodata.bonusselection}}" data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Morality : </label>
|
||||
<input type="text" class="" name="data.biodata.morality" value="{{data.biodata.morality}}" data-dtype="Number" />
|
||||
<input type="text" class="" name="system.biodata.morality" value="{{data.biodata.morality}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Morality threshold : </label>
|
||||
<input type="text" class="" name="data.biodata.moralitythreshold" value="{{data.biodata.moralitythreshold}}" disabled data-dtype="Number" />
|
||||
<input type="text" class="" name="system.biodata.moralitythreshold" value="{{data.biodata.moralitythreshold}}" disabled data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Hero Level (max) : </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="data.biodata.maxlevelremaining" value="{{data.biodata.maxlevelremaining}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.biodata.maxlevelremaining" value="{{data.biodata.maxlevelremaining}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
{{#select data.biodata.maxlevelremaining}}
|
||||
{{{@root.maxLevelRemainingList}}}
|
||||
{{/select}}
|
||||
@ -1044,7 +1044,7 @@
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Hero Levels Remaining : </label>
|
||||
<select class="status-small-label color-class-common" type="text" name="data.biodata.currentlevelremaining" value="{{data.biodata.currentlevelremaining}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
<select class="status-small-label color-class-common" type="text" name="system.biodata.currentlevelremaining" value="{{data.biodata.currentlevelremaining}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
{{#select data.biodata.currentlevelremaining}}
|
||||
{{{@root.levelRemainingList}}}
|
||||
{{/select}}
|
||||
@ -1052,7 +1052,7 @@
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="short-label">Threat Level : </label>
|
||||
<input type="text" class="" name="data.biodata.threatlevel" value="{{data.biodata.threatlevel}}"
|
||||
<input type="text" class="" name="system.biodata.threatlevel" value="{{data.biodata.threatlevel}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
</ul>
|
||||
@ -1060,13 +1060,13 @@
|
||||
<hr>
|
||||
<h3>Background : </h3>
|
||||
<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}}
|
||||
</div>
|
||||
<hr>
|
||||
<h3>Notes : </h3>
|
||||
<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>
|
||||
<hr>
|
||||
</article>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<div class="tab" data-group="primary">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Related Statistic</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.statistic" value="{{data.statistic}}" data-dtype="String">
|
||||
{{#select data.statistic}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
||||
{{/select}}
|
||||
@ -27,29 +27,29 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">DMG RES Dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.resistance" value="{{data.resistance}}" data-dtype="Number">
|
||||
<select class="competence-base flexrow" type="text" name="system.resistance" value="{{data.resistance}}" data-dtype="Number">
|
||||
{{#select data.resistance}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Location Protected</label>
|
||||
<input type="text" class="" name="data.locationprotected" value="{{data.locationprotected}}" data-dtype="String"/>
|
||||
<input type="text" class="" name="system.locationprotected" value="{{data.locationprotected}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
|
||||
|
||||
<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 class="flexrow"><label class="generic-label">Weight</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<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 class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.combattype" value="{{data.combattype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.combattype" value="{{data.combattype}}" data-dtype="String">
|
||||
{{#select data.combattype}}
|
||||
<option value="civilian">Civilian</option>
|
||||
<option value="poorcombat">Poor Combat System</option>
|
||||
@ -28,7 +28,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">FC</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.fc" value="{{data.fc}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.fc" value="{{data.fc}}" data-dtype="String">
|
||||
{{#select data.fc}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -36,11 +36,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Space</label>
|
||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.type" value="{{data.type}}" data-dtype="String">
|
||||
{{#select data.type}}
|
||||
<option value="mental">Mental</option>
|
||||
<option value="physical">Physical</option>
|
||||
@ -26,7 +26,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Positive/Negative</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.genre" value="{{data.genre}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.genre" value="{{data.genre}}" data-dtype="String">
|
||||
{{#select data.genre}}
|
||||
<option value="positive">Positive</option>
|
||||
<option value="negative">Negative</option>
|
||||
@ -35,40 +35,40 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">One use?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.oneuse" {{checked data.oneuse}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.oneuse" {{checked data.oneuse}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Ignore health penalty?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.ignorehealthpenalty" {{checked data.ignorehealthpenalty}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.ignorehealthpenalty" {{checked data.ignorehealthpenalty}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Display Text when targetted</label>
|
||||
<input type="text" class="padd-right" name="data.isthispossible" value="{{data.isthispossible}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.isthispossible" value="{{data.isthispossible}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Mental disruption ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.mentaldisruption" {{checked data.mentaldisruption}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.mentaldisruption" {{checked data.mentaldisruption}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Physical disruption ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.physicaldisruption" {{checked data.physicaldisruption}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.physicaldisruption" {{checked data.physicaldisruption}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Mental immunity ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.mentalimmunity" {{checked data.mentalimmunity}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.mentalimmunity" {{checked data.mentalimmunity}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Physical immunity ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.physicalimmunity" {{checked data.physicalimmunity}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.physicalimmunity" {{checked data.physicalimmunity}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">No bonus dice ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.nobonusdice" {{checked data.nobonusdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.nobonusdice" {{checked data.nobonusdice}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">No perks allowed ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.noperksallowed" {{checked data.noperksallowed}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.noperksallowed" {{checked data.noperksallowed}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Effect Level is a Stat?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.effectstatlevel" {{checked data.effectstatlevel}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.effectstatlevel" {{checked data.effectstatlevel}}/></label>
|
||||
</li>
|
||||
|
||||
{{#if data.effectstatlevel}}
|
||||
<li class="flexrow"><label class="generic-label">Stat to use for Effect Level</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.effectstat" value="{{data.effectstat}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.effectstat" value="{{data.effectstat}}" data-dtype="String">
|
||||
{{#select data.effectstat}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=true all=false}}
|
||||
{{/select}}
|
||||
@ -76,7 +76,7 @@
|
||||
</li>
|
||||
{{else}}
|
||||
<li class="flexrow"><label class="generic-label">Effect Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.effectlevel" value="{{data.effectlevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.effectlevel" value="{{data.effectlevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
</li>
|
||||
{{#each data.specaffected as |spec idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.specaffected[{{idx}}].name"><a class="view-subitem" data-type="specaffected" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<label name="system.specaffected[{{idx}}].name"><a class="view-subitem" data-type="specaffected" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="specaffected" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -97,7 +97,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Affected Stat</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.stataffected" value="{{data.stataffected}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.stataffected" value="{{data.stataffected}}" data-dtype="String">
|
||||
{{#select data.stataffected}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true all=true combat=true vehicle=true power=true}}
|
||||
{{/select}}
|
||||
@ -108,29 +108,29 @@
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Choose one :</label></li>
|
||||
<li class="flexrow"><label class="generic-label">Stat Dice ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.statdice" {{checked data.statdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.statdice" {{checked data.statdice}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Bonus Dice ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.bonusdice" {{checked data.bonusdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.bonusdice" {{checked data.bonusdice}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Weapon Damage ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.otherdice" {{checked data.otherdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.otherdice" {{checked data.otherdice}}/></label>
|
||||
</li>
|
||||
|
||||
{{else}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Reduce Dice Value ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.reducedicevalue" {{checked data.reducedicevalue}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.reducedicevalue" {{checked data.reducedicevalue}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Hindrance ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.hindrance" {{checked data.hindrance}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.hindrance" {{checked data.hindrance}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Resisted By</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.resistedby" value="{{data.resistedby}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.resistedby" value="{{data.resistedby}}" data-dtype="String">
|
||||
{{#select data.resistedby}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=false all=false}}
|
||||
{{/select}}
|
||||
@ -138,12 +138,12 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Recovery Roll ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.recoveryroll" {{checked data.recoveryroll}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.recoveryroll" {{checked data.recoveryroll}}/></label>
|
||||
</li>
|
||||
|
||||
{{#if data.recoveryroll}}
|
||||
<li class="flexrow"><label class="generic-label">Recovery Stat</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.recoveryrollstat" value="{{data.recoveryrollstat}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.recoveryrollstat" value="{{data.recoveryrollstat}}" data-dtype="String">
|
||||
{{#select data.recoveryrollstat}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=false all=false}}
|
||||
{{/select}}
|
||||
@ -158,7 +158,7 @@
|
||||
</li>
|
||||
{{#each data.recoveryrollspec as |spec idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.recoveryrollspec[{{idx}}].name"><a class="view-subitem" data-type="recoveryrollspec" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<label name="system.recoveryrollspec[{{idx}}].name"><a class="view-subitem" data-type="recoveryrollspec" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="recoveryrollspec" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.type" value="{{data.type}}" data-dtype="String">
|
||||
{{#select data.type}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html}}
|
||||
{{/select}}
|
||||
@ -24,7 +24,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Related Statistic</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.stataffected" value="{{data.stataffected}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.stataffected" value="{{data.stataffected}}" data-dtype="String">
|
||||
{{#select data.stataffected}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true}}
|
||||
{{/select}}
|
||||
@ -32,48 +32,48 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.level" value="{{data.level}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Stat Dice ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.statdice" {{checked data.statdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.statdice" {{checked data.statdice}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Bonus Dice ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.bonusdice" {{checked data.bonusdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.bonusdice" {{checked data.bonusdice}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Other Dice ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.otherdice" {{checked data.otherdice}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.otherdice" {{checked data.otherdice}}/></label>
|
||||
</li>
|
||||
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
|
||||
|
||||
<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 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 class="flexrow"><label class="generic-label">Weight</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Is a container ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.iscontainer" {{checked data.iscontainer}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.iscontainer" {{checked data.iscontainer}}/></label>
|
||||
</li>
|
||||
{{#if data.iscontainer}}
|
||||
<li class="flexrow"><label class="generic-label">Container capacity</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.containercapacity" value="{{data.containercapacity}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.containercapacity" value="{{data.containercapacity}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="flexrow"><label class="generic-label">Threat Level Value</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<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 class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Vehicle category</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.vehiclecategory" value="{{data.vehiclecategory}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.vehiclecategory" value="{{data.vehiclecategory}}" data-dtype="String">
|
||||
{{#select data.vehiclecategory}}
|
||||
<option value="wheeled">Wheeled</option>
|
||||
<option value="walker">Walker</option>
|
||||
@ -30,7 +30,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Quality</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.quality" value="{{data.quality}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.quality" value="{{data.quality}}" data-dtype="String">
|
||||
{{#select data.quality}}
|
||||
<option value="poor">Poor</option>
|
||||
<option value="standard">Standard</option>
|
||||
@ -46,7 +46,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">MR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.mr" value="{{data.mr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.mr" value="{{data.mr}}" data-dtype="String">
|
||||
{{#select data.mr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -54,11 +54,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">MAN : Apply as negative ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.negativeman" {{checked data.negativeman}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.negativeman" {{checked data.negativeman}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">MAN</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.man" value="{{data.man}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.man" value="{{data.man}}" data-dtype="String">
|
||||
{{#select data.man}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -66,7 +66,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Top speed - Front</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.ts_f" value="{{data.ts_f}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.ts_f" value="{{data.ts_f}}" data-dtype="String">
|
||||
{{#select data.ts_f}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html notapplicable=true}}
|
||||
{{/select}}
|
||||
@ -74,7 +74,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Top speed - Left/Tight/Top/Bottom</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.ts_s" value="{{data.ts_s}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.ts_s" value="{{data.ts_s}}" data-dtype="String">
|
||||
{{#select data.ts_s}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html notapplicable=true}}
|
||||
{{/select}}
|
||||
@ -82,18 +82,18 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Top speed - Rear</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.ts_r" value="{{data.ts_r}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.ts_r" value="{{data.ts_r}}" data-dtype="String">
|
||||
{{#select data.ts_r}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Space</label>
|
||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
|
||||
|
@ -14,13 +14,13 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<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 class="flexrow"><label class="generic-label">Weight</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
|
@ -14,11 +14,11 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.level" value="{{data.level}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Perk category</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.category" value="{{data.category}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.category" value="{{data.category}}" data-dtype="String">
|
||||
{{#select data.category}}
|
||||
<option value="general">General</option>
|
||||
<option value="agitator">Agitator</option>,
|
||||
@ -32,7 +32,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Perk Status</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.status" value="{{data.status}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.status" value="{{data.status}}" data-dtype="String">
|
||||
{{#select data.status}}
|
||||
<option value="ready">Ready</option>
|
||||
<option value="activated">Activated</option>
|
||||
@ -42,7 +42,7 @@
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Number of use during activation</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.nbuse" value="{{data.nbuse}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.nbuse" value="{{data.nbuse}}" data-dtype="String">
|
||||
{{#select data.nbuse}}
|
||||
<option value="perkduration">For Duration of Perk</option>
|
||||
<option value="next1action">Next 1 Stated Action</option>
|
||||
@ -53,11 +53,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Upgradable?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.upgradable" {{checked data.upgradable}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.upgradable" {{checked data.upgradable}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Is Weaver Perk?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isweaver" {{checked data.isweaver}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.isweaver" {{checked data.isweaver}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Effects Gained</label>
|
||||
@ -68,7 +68,7 @@
|
||||
</li>
|
||||
{{#each data.effectsgained as |effect idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<label name="system.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -78,46 +78,46 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">When activated display text</label>
|
||||
<input type="text" class="padd-right" name="data.activatedtext" value="{{data.activatedtext}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.activatedtext" value="{{data.activatedtext}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">When deactivated display text</label>
|
||||
<input type="text" class="padd-right" name="data.deactivatedtext" value="{{data.deactivatedtext}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.deactivatedtext" value="{{data.deactivatedtext}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
{{#each data.features as |feature key|}}
|
||||
{{#if feature.isvalid}}
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">{{feature.label}} ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.features.{{key}}.flag" {{checked feature.flag}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.features.{{key}}.flag" {{checked feature.flag}}/></label>
|
||||
</li>
|
||||
{{#if feature.flag}}
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><label class="generic-label">{{feature.label}}</label>
|
||||
{{#if (eq feature.type "statdice")}}
|
||||
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
{{#select feature.value}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "range")}}
|
||||
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
{{#select feature.value}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "number")}}
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right" name="system.features.{{key}}.value" value="{{feature.value}}" data-dtype="Number"/>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "string")}}
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "dropspec")}}
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><div class="drop-spec-perk" data-key={{key}}><label>Drop Specialisation here !</label></div>
|
||||
</li>
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "text")}}
|
||||
|
@ -30,12 +30,12 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Roll Needed ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.rollneeded" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.rollneeded" {{checked
|
||||
data.rollneeded}} /></label>
|
||||
</li>
|
||||
{{#if data.rollneeded}}
|
||||
<li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}"
|
||||
<select class="competence-base flexrow" type="text" name="system.statistic" value="{{data.statistic}}"
|
||||
data-dtype="String">
|
||||
{{#select data.statistic}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
||||
@ -46,25 +46,25 @@
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">Activated ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.activated" {{checked
|
||||
data.activated}} /></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">NRG Cost</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}"
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">NRG Spent</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}"
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.costspent" value="{{data.costspent}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Power Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.powerlevel" value="{{data.powerlevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.powerlevel" value="{{data.powerlevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Range</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}"
|
||||
<select class="competence-base flexrow" type="text" name="system.range" value="{{data.range}}"
|
||||
data-dtype="String">
|
||||
{{#select data.range}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
@ -72,7 +72,7 @@
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Action</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.action" value="{{data.action}}"
|
||||
<select class="competence-base flexrow" type="text" name="system.action" value="{{data.action}}"
|
||||
data-dtype="String">
|
||||
{{#select data.action}}
|
||||
<option value="soft">Soft</option>
|
||||
@ -83,7 +83,7 @@
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}"
|
||||
<select class="competence-base flexrow" type="text" name="system.type" value="{{data.type}}"
|
||||
data-dtype="String">
|
||||
{{#select data.type}}
|
||||
<option value="instant">Instant</option>
|
||||
@ -94,18 +94,18 @@
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Power Source</label>
|
||||
<input type="text" class="padd-right" name="data.powersource" value="{{data.powersource}}"
|
||||
<input type="text" class="padd-right" name="system.powersource" value="{{data.powersource}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">DMG Roll Needed ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.dmgroll" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.dmgroll" {{checked
|
||||
data.dmgroll}} /></label>
|
||||
</li>
|
||||
{{#if data.dmgroll}}
|
||||
<li class="flexrow"><label class="generic-label">Related DMG Statistic </label>
|
||||
<select class="competence-base flexrow" type="text" name="data.dmgstatistic" value="{{data.dmgstatistic}}"
|
||||
<select class="competence-base flexrow" type="text" name="system.dmgstatistic" value="{{data.dmgstatistic}}"
|
||||
data-dtype="String">
|
||||
{{#select data.dmgstatistic}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
||||
@ -115,17 +115,17 @@
|
||||
{{/if}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">When purchased display text</label>
|
||||
<input type="text" class="padd-right" name="data.purchasedtext" value="{{data.purchasedtext}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.purchasedtext" value="{{data.purchasedtext}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">When activated display text</label>
|
||||
<input type="text" class="padd-right" name="data.activatedtext" value="{{data.activatedtext}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.activatedtext" value="{{data.activatedtext}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">When deactivated display text</label>
|
||||
<input type="text" class="padd-right" name="data.deactivatedtext" value="{{data.deactivatedtext}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.deactivatedtext" value="{{data.deactivatedtext}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Power Level Cost</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.powerlevelcost" value="{{data.powerlevelcost}}"
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.powerlevelcost" value="{{data.powerlevelcost}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
|
||||
@ -138,7 +138,7 @@
|
||||
</li>
|
||||
{{#each data.effectsgained as |effect idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained"
|
||||
<label name="system.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained"
|
||||
data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}"
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Power core type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.coretype" value="{{data.coretype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.coretype" value="{{data.coretype}}" data-dtype="String">
|
||||
{{#select data.coretype}}
|
||||
<option value="small">Small</option>
|
||||
<option value="standard">Standard</option>
|
||||
@ -27,7 +27,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">PC</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.pc" value="{{data.pc}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.pc" value="{{data.pc}}" data-dtype="String">
|
||||
{{#select data.pc}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -35,14 +35,14 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">NRG</label>
|
||||
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Space</label>
|
||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Quality</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.quality" value="{{data.quality}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.quality" value="{{data.quality}}" data-dtype="String">
|
||||
{{#select data.quality}}
|
||||
<option value="poor">Poor</option>
|
||||
<option value="standard">Standard</option>
|
||||
@ -26,19 +26,19 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">A/D</label>
|
||||
<input type="text" class="" name="data.ad" value="{{data.ad}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.ad" value="{{data.ad}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Top Speed (TS)</label>
|
||||
<input type="text" class="" name="data.topspeed" value="{{data.topspeed}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.topspeed" value="{{data.topspeed}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Space</label>
|
||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -14,19 +14,19 @@
|
||||
|
||||
<label class="generic-label">Description</label>
|
||||
<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="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<label class="generic-label">Environment</label>
|
||||
<div class="medium-editor item-text-long-line">
|
||||
{{editor content=data.environment target="data.environment" button=true owner=owner editable=editable}}
|
||||
{{editor data.environment target="data.environment" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<label class="generic-label">Society/Culture</label>
|
||||
<div class="medium-editor item-text-long-line">
|
||||
{{editor content=data.society_culture target="data.society_culture" button=true owner=owner editable=editable}}
|
||||
{{editor data.society_culture target="data.society_culture" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<label class="generic-label">Outlook</label>
|
||||
<div class="medium-editor item-text-long-line">
|
||||
{{editor content=data.outlook target="data.outlook" button=true owner=owner editable=editable}}
|
||||
{{editor data.outlook target="data.outlook" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
</li>
|
||||
{{#each data.abilities as |ability idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.abilities[{{idx}}].name"><a class="view-subitem" data-type="abilities"
|
||||
<label name="system.abilities[{{idx}}].name"><a class="view-subitem" data-type="abilities"
|
||||
data-index="{{idx}}">{{ability.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="abilities" data-index="{{idx}}"
|
||||
@ -53,16 +53,16 @@
|
||||
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Selectable Stats ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.selectablestats" {{checked
|
||||
data.selectablestats}} /></label>
|
||||
</li>
|
||||
{{#if data.selectablestats}}
|
||||
<li class="flexrow"><label class="generic-label">Select 1 stat only once?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.statsonlyonce" {{checked
|
||||
data.statsonlyonce}} /></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Number of selectable stats</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}"
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.numberstats" value="{{data.numberstats}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
{{/if}}
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Number of Optionnal Abilities</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.nboptionnal" value="{{data.nboptionnal}}"
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.nboptionnal" value="{{data.nboptionnal}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
</li>
|
||||
{{#each data.optionnalabilities as |ability idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities"
|
||||
<label name="system.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities"
|
||||
data-index="{{idx}}">{{ability.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}"
|
||||
@ -95,16 +95,16 @@
|
||||
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Perks Gained ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksgained" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.perksgained" {{checked
|
||||
data.perksgained}} /></label>
|
||||
</li>
|
||||
{{#if data.perksgained}}
|
||||
<li class="flexrow"><label class="generic-label">Choose in all available perks?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksall" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.perksall" {{checked
|
||||
data.perksall}} /></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Number of perks to gain</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.perksnumber" value="{{data.perksnumber}}"
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.perksnumber" value="{{data.perksnumber}}"
|
||||
data-dtype="Number" />
|
||||
</li>
|
||||
{{#if data.perksall}}
|
||||
@ -115,7 +115,7 @@
|
||||
</li>
|
||||
{{#each data.perks as |perk idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.perks[{{idx}}].name"><a class="view-subitem" data-type="perks"
|
||||
<label name="system.perks[{{idx}}].name"><a class="view-subitem" data-type="perks"
|
||||
data-index="{{idx}}">{{perk.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="perks" data-index="{{idx}}"
|
||||
|
@ -17,14 +17,14 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Stat increase 1</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statincrease1" value="{{data.statincrease1}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.statincrease1" value="{{data.statincrease1}}" data-dtype="String">
|
||||
{{#select data.statincrease1}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Stat increase 2</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statincrease2" value="{{data.statincrease2}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.statincrease2" value="{{data.statincrease2}}" data-dtype="String">
|
||||
{{#select data.statincrease2}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
||||
{{/select}}
|
||||
@ -38,13 +38,13 @@
|
||||
<label class="generic-label">Starting Specialisations : </label>
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<input type="text" class="padd-right" name="data.messagespecplus1" value="{{data.messagespecplus1}}" data-dtype="String"/>
|
||||
<input type="text" class="padd-right" name="system.messagespecplus1" value="{{data.messagespecplus1}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><div class="drop-spec1"><label>Drop Specialisations here !</label></div>
|
||||
</li>
|
||||
{{#each data.specialisationsplus1 as |spec idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.specialisationsplus1[{{idx}}].name"><a class="view-subitem" data-type="specialisationsplus1" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<label name="system.specialisationsplus1[{{idx}}].name"><a class="view-subitem" data-type="specialisationsplus1" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="specialisationsplus1" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -59,7 +59,7 @@
|
||||
</li>
|
||||
{{#each data.specialability as |ability idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.specialability[{{idx}}].name"><a class="view-subitem" data-type="specialability" data-index="{{idx}}">{{ability.name}}</a></label>
|
||||
<label name="system.specialability[{{idx}}].name"><a class="view-subitem" data-type="specialability" data-index="{{idx}}">{{ability.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="specialability" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -84,7 +84,7 @@
|
||||
</li>
|
||||
{{#each data.specincrease as |spec idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.specincrease[{{idx}}].name"><a class="view-subitem" data-type="specincrease" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<label name="system.specincrease[{{idx}}].name"><a class="view-subitem" data-type="specincrease" data-index="{{idx}}">{{spec.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="specincrease" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -99,7 +99,7 @@
|
||||
</li>
|
||||
{{#each data.perks as |perk idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.perk[{{idx}}].name"><a class="view-subitem" data-type="perks" data-index="{{idx}}">{{perk.name}}</a></label>
|
||||
<label name="system.perk[{{idx}}].name"><a class="view-subitem" data-type="perks" data-index="{{idx}}">{{perk.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="perks" data-index="{{idx}}" title="Delete Perk"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Defense Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.deftype" value="{{data.deftype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.deftype" value="{{data.deftype}}" data-dtype="String">
|
||||
{{#select data.deftype}}
|
||||
<option value="dodge">Dodge</option>
|
||||
<option value="block">Block</option>
|
||||
@ -23,7 +23,7 @@
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Bonus Dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.level" value="{{data.level}}" data-dtype="Number">
|
||||
<select class="competence-base flexrow" type="text" name="system.level" value="{{data.level}}" data-dtype="Number">
|
||||
{{#select data.level}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-level.html}}
|
||||
{{/select}}
|
||||
@ -33,16 +33,16 @@
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
|
||||
|
||||
<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 class="flexrow"><label class="generic-label">Weight</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<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 class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Related Statistic</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.statistic" value="{{data.statistic}}" data-dtype="String">
|
||||
{{#select data.statistic}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
||||
{{/select}}
|
||||
@ -24,18 +24,18 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Level</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.level" value="{{data.level}}" data-dtype="Number">
|
||||
<select class="competence-base flexrow" type="text" name="system.level" value="{{data.level}}" data-dtype="Number">
|
||||
{{#select data.level}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Is Power Group ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.ispowergroup" {{checked data.ispowergroup}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.ispowergroup" {{checked data.ispowergroup}}/></label>
|
||||
</li>
|
||||
{{#if data.ispowergroup}}
|
||||
<li class="flexrow"><label class="generic-label">Available Power sources</label>
|
||||
<input type="text" class="" name="data.powersource" value="{{data.powersource}}" data-dtype="String"/>
|
||||
<input type="text" class="" name="system.powersource" value="{{data.powersource}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Available Powers</label>
|
||||
</li>
|
||||
@ -44,7 +44,7 @@
|
||||
</li>
|
||||
{{#each data.powers as |power idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.powers[{{idx}}].name"><a class="view-subitem" data-type="powers" data-index="{{idx}}">{{power.name}}</a></label>
|
||||
<label name="system.powers[{{idx}}].name"><a class="view-subitem" data-type="powers" data-index="{{idx}}">{{power.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="powers" data-index="{{idx}}" title="Delete Power"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -54,7 +54,7 @@
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="flexrow"><label class="generic-label">Use for Threat Level ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.isthreatlevel" {{checked data.isthreatlevel}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.isthreatlevel" {{checked data.isthreatlevel}}/></label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Hull type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.hulltype" value="{{data.hulltype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.hulltype" value="{{data.hulltype}}" data-dtype="String">
|
||||
{{#select data.hulltype}}
|
||||
<option value="tiny">Tiny</option>
|
||||
<option value="small">Small</option>
|
||||
@ -35,11 +35,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Size</label>
|
||||
<input type="text" class="" name="data.size" value="{{data.size}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.size" value="{{data.size}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">HR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.hr" value="{{data.hr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.hr" value="{{data.hr}}" data-dtype="String">
|
||||
{{#select data.hr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -47,7 +47,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">MAN</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.man" value="{{data.man}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.man" value="{{data.man}}" data-dtype="String">
|
||||
{{#select data.man}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -55,11 +55,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">VMS</label>
|
||||
<input type="text" class="" name="data.vms" value="{{data.vms}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.vms" value="{{data.vms}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Category</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.category" value="{{data.category}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.category" value="{{data.category}}" data-dtype="String">
|
||||
{{#select data.category}}
|
||||
<option value="mobility">Mobility</option>
|
||||
<option value="com">Com</option>
|
||||
@ -34,7 +34,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Location</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.location" value="{{data.location}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.location" value="{{data.location}}" data-dtype="String">
|
||||
{{#select data.location}}
|
||||
<option value="front">Front</option>
|
||||
<option value="left">Left</option>
|
||||
@ -47,17 +47,17 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Activated ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.activated" {{checked data.activated}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">NRG</label>
|
||||
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Arc coverage</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.arccoverage" value="{{data.arccoverage}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.arccoverage" value="{{data.arccoverage}}" data-dtype="String">
|
||||
{{#select data.arccoverage}}
|
||||
<option value="none">None</option>
|
||||
<option value="all">All</option>
|
||||
@ -72,21 +72,21 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Armour Dice Value</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.armourdicevalue" value="{{data.armourdicevalue}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.armourdicevalue" value="{{data.armourdicevalue}}" data-dtype="String">
|
||||
{{#select data.armourdicevalue}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Shield Dice Value</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.shielddicevalue" value="{{data.shielddicevalue}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.shielddicevalue" value="{{data.shielddicevalue}}" data-dtype="String">
|
||||
{{#select data.shielddicevalue}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Security Dice Value</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.securitydicevalue" value="{{data.securitydicevalue}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.securitydicevalue" value="{{data.securitydicevalue}}" data-dtype="String">
|
||||
{{#select data.securitydicevalue}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -94,7 +94,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Range</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.range" value="{{data.range}}" data-dtype="String">
|
||||
{{#select data.range}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
@ -102,18 +102,18 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Space</label>
|
||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Location</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.location" value="{{data.location}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.location" value="{{data.location}}" data-dtype="String">
|
||||
{{#select data.location}}
|
||||
<option value="front">Front</option>
|
||||
<option value="left">Left</option>
|
||||
@ -28,28 +28,28 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Weapon size</label>
|
||||
<input type="text" class="" name="data.size" value="{{data.size}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.size" value="{{data.size}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Activated ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.activated" {{checked data.activated}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">NRG</label>
|
||||
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Damage Dice Value</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.damagedicevalue" value="{{data.damagedicevalue}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.damagedicevalue" value="{{data.damagedicevalue}}" data-dtype="String">
|
||||
{{#select data.damagedicevalue}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Damage Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.damagetype" value="{{data.damagetype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.damagetype" value="{{data.damagetype}}" data-dtype="String">
|
||||
{{#select data.damagetype}} None, Cr, Pi, Sl, EMP, Kin, Therm, Pi&Therm, Pi&EMP, Pi&Kin, Cr&Therm, Cr&EMP, Cr&Kin
|
||||
<option value="none">None</option>
|
||||
<option value="cr">Cr</option>
|
||||
@ -68,7 +68,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Optimal Range</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.range" value="{{data.range}}" data-dtype="String">
|
||||
{{#select data.range}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
@ -76,7 +76,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">AoE</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.aoe" value="{{data.aoe}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.aoe" value="{{data.aoe}}" data-dtype="String">
|
||||
{{#select data.aoe}}
|
||||
<option value="none">None</option>
|
||||
<option value="tz">TZ</option>
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Turret</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.turret" value="{{data.turret}}" data-dtype="Number">
|
||||
<select class="competence-base flexrow" type="text" name="system.turret" value="{{data.turret}}" data-dtype="Number">
|
||||
{{#select data.turret}} F Front, F Left, F Right, F Rear, F Up, F Down, T 180 Front, T 180 Left, T 180 Rear, T 180 Right, T 360
|
||||
<option value="ffront">F Front</option>
|
||||
<option value="fleft">F Left</option>
|
||||
@ -109,11 +109,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Linked weapon ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.linkedweapon" {{checked data.linkedweapon}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.linkedweapon" {{checked data.linkedweapon}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -121,11 +121,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Space</label>
|
||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
<input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -22,7 +22,7 @@
|
||||
</li>
|
||||
{{#each data.unavailablevirtue as |vice idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.unavailablevirtue[{{idx}}].name"><a class="view-subitem" data-type="unavailablevirtue" data-index="{{idx}}">{{vice.name}}</a></label>
|
||||
<label name="system.unavailablevirtue[{{idx}}].name"><a class="view-subitem" data-type="unavailablevirtue" data-index="{{idx}}">{{vice.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="unavailablevirtue" data-index="{{idx}}" title="Delete Virtue"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">Activated ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.activated" {{checked
|
||||
data.activated}} /></label>
|
||||
</li>
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
</li>
|
||||
{{#each data.effectsgained as |effect idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<label name="system.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -55,7 +55,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Threat Level Value</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -22,7 +22,7 @@
|
||||
</li>
|
||||
{{#each data.unavailablevice as |vice idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.unavailablevice[{{idx}}].name"><a class="view-subitem" data-type="unavailablevice" data-index="{{idx}}">{{vice.name}}</a></label>
|
||||
<label name="system.unavailablevice[{{idx}}].name"><a class="view-subitem" data-type="unavailablevice" data-index="{{idx}}">{{vice.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="unavailablevice" data-index="{{idx}}" title="Delete Vice"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">Activated ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.activated" {{checked
|
||||
data.activated}} /></label>
|
||||
</li>
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
</li>
|
||||
{{#each data.effectsgained as |effect idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<label name="system.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
@ -55,7 +55,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Threat Level Value</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Related Attack Statistic</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.statistic" value="{{data.statistic}}" data-dtype="String">
|
||||
{{#select data.statistic}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=true}}
|
||||
{{/select}}
|
||||
@ -23,7 +23,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Related DMG Statistic</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.damagestatistic" value="{{data.damagestatistic}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.damagestatistic" value="{{data.damagestatistic}}" data-dtype="String">
|
||||
{{#select data.damagestatistic}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=true}}
|
||||
{{/select}}
|
||||
@ -31,7 +31,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Damage Dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.damage" value="{{data.damage}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.damage" value="{{data.damage}}" data-dtype="String">
|
||||
{{#select data.damage}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
@ -39,11 +39,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Item size</label>
|
||||
<input type="text" class="" name="data.itemsize" value="{{data.itemsize}}" data-dtype="String"/>
|
||||
<input type="text" class="" name="system.itemsize" value="{{data.itemsize}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Optimal Range</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.range" value="{{data.range}}" data-dtype="String">
|
||||
{{#select data.range}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
@ -51,11 +51,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Max Range</label>
|
||||
<input type="text" class="" name="data.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
|
||||
<input type="text" class="" name="system.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">AoE</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.aoe" value="{{data.aoe}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.aoe" value="{{data.aoe}}" data-dtype="String">
|
||||
{{#select data.aoe}}
|
||||
<option value="none">None</option>
|
||||
<option value="tz">TZ</option>
|
||||
@ -69,7 +69,7 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Damage Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.damagetype" value="{{data.damagetype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.damagetype" value="{{data.damagetype}}" data-dtype="String">
|
||||
{{#select data.damagetype}}
|
||||
<option value="none">None</option>
|
||||
<option value="slashing">Slashing</option>
|
||||
@ -81,11 +81,11 @@
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Damage Type Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.damagetypelevel" value="{{data.damagetypelevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.damagetypelevel" value="{{data.damagetypelevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Vehicle Damage Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.vehicledamagetype" value="{{data.vehicledamagetype}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.vehicledamagetype" value="{{data.vehicledamagetype}}" data-dtype="String">
|
||||
{{#select data.vehicledamagetype}}
|
||||
<option value="none">None</option>
|
||||
<option value="emp">EMP</option>
|
||||
@ -99,48 +99,48 @@
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Vehicle Damage Type Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.vehicledamagetypelevel" value="{{data.vehicledamagetypelevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.vehicledamagetypelevel" value="{{data.vehicledamagetypelevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Ammo - Current</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.ammocurrent" value="{{data.ammocurrent}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.ammocurrent" value="{{data.ammocurrent}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Ammo - Max</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.ammomax" value="{{data.ammomax}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.ammomax" value="{{data.ammomax}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<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 class="flexrow"><label class="generic-label">Can be thrown ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.canbethrown" {{checked data.canbethrown}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.canbethrown" {{checked data.canbethrown}}/></label>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Enhanced ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.enhanced" {{checked data.enhanced}}/></label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.enhanced" {{checked data.enhanced}}/></label>
|
||||
</li>
|
||||
{{#if data.enhanced}}
|
||||
<li class="flexrow"><label class="generic-label">Enhanced Attack Statistic</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.enhancedstat" value="{{data.enhancedstat}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.enhancedstat" value="{{data.enhancedstat}}" data-dtype="String">
|
||||
{{#select data.enhancedstat}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=false}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Enhance Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.enhancedlevel" value="{{data.enhancedlevel}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.enhancedlevel" value="{{data.enhancedlevel}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Weight</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{data.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<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 class="flexrow"><label class="generic-label">IDR</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
|
||||
<select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
|
||||
{{#select data.idr}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
|
@ -31,7 +31,7 @@
|
||||
<div class="">
|
||||
|
||||
<span class="generic-label"><h3>Type</h3>
|
||||
<select class="competence-base flexrow" type="text" name="data.npctype" value="{{data.npctype}}" data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
<select class="competence-base flexrow" type="text" name="system.npctype" value="{{data.npctype}}" data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
{{#select data.npctype}}
|
||||
<option value="henchman">Henchman</option>
|
||||
<option value="drone">Troop</option>
|
||||
@ -65,7 +65,7 @@
|
||||
{{#each data.spec as |spec key|}}
|
||||
<li class="item flexrow list-item stack-left" data-attr-key="{{key}}">
|
||||
<span class="stat-label padd-right npc-stat-label" name="{{key}}">{{spec.label}}</span>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.spec.{{key}}.value" value="{{spec.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.spec.{{key}}.value" value="{{spec.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}/>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
@ -84,12 +84,12 @@
|
||||
<ul>
|
||||
<li class="item flexrow list-item stack-left">
|
||||
<span class="stat-label padd-right"><strong>{{fight.label}}</strong></span>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.fight.{{key}}.value" value="{{fight.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.fight.{{key}}.value" value="{{fight.value}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{#each fight.derivated as |derivated keydev|}}
|
||||
<li class="item flexrow list-item">
|
||||
<span class="stat-label flexrow ">{{derivated.label}}</span>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.fight.{{key}}.derivated.{{keydev}}.value" value="{{derivated.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.fight.{{key}}.derivated.{{keydev}}.value" value="{{derivated.value}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
@ -5,12 +5,12 @@
|
||||
<span class="stat-label stat-margin" name="{{key}}">
|
||||
<h4 class="stat-text-white stat-margin"><a class="roll-stat stat-margin" data-stat-key="{{key}}">{{stat.abbrev}}</a></h4>
|
||||
</span>
|
||||
<select class="status-small-label color-class-common" type="text" name="data.statistics.{{key}}.value" value="{{stat.value}}"
|
||||
<select class="status-small-label color-class-common" type="text" name="system.statistics.{{key}}.value" value="{{stat.value}}"
|
||||
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
{{#select stat.value}}
|
||||
{{{@root.optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="data.statistics.{{key}}.mod" value="{{stat.mod}}"
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="system.statistics.{{key}}.mod" value="{{stat.mod}}"
|
||||
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}} />
|
||||
</li>
|
@ -17,18 +17,18 @@
|
||||
{{/if}}
|
||||
</label>
|
||||
</span>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.secondary.{{key}}.value" value="{{stat2.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.secondary.{{key}}.bonus" value="{{stat2.bonus}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.secondary.{{key}}.max" value="{{stat2.max}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.secondary.{{key}}.value" value="{{stat2.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.secondary.{{key}}.bonus" value="{{stat2.bonus}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.secondary.{{key}}.max" value="{{stat2.max}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/each}}
|
||||
<li class="item flexrow " data-key="nrg">
|
||||
<span class="stat-label flexrow status-col-name" name="nrg">
|
||||
<label class="status-small-label"><strong>{{data.nrg.label}}</strong></label>
|
||||
</span>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.nrg.value" value="{{data.nrg.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.nrg.mod" value="{{data.nrg.mod}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.nrg.max" value="{{data.nrg.max}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.nrg.value" value="{{data.nrg.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.nrg.mod" value="{{data.nrg.mod}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.nrg.max" value="{{data.nrg.max}}" data-dtype="Number"/>
|
||||
<span class="small-label status-small-label"> / {{data.nrg.absolutemax}}</span>
|
||||
</li>
|
||||
<li class="item flexrow " data-key="nrg">
|
||||
@ -36,7 +36,7 @@
|
||||
<label class="status-small-label"><strong>Activated NRG</strong><br>
|
||||
</span>
|
||||
<span class="stat-label flexrow status-col-name" name="activated-nrg">
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
|
||||
</span>
|
||||
<span class="padd-right status-small-label no-grow">
|
||||
<a class="current-nrg-plus plus-minus-button">+</a>
|
||||
@ -53,12 +53,12 @@
|
||||
<span class="stat-label flexrow status-col-name" name="momentum">
|
||||
<label class="status-small-label"><strong>Momentum</strong></label>
|
||||
</span>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.momentum.value" value="{{data.momentum.value}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.momentum.value" value="{{data.momentum.value}}" data-dtype="Number"/>
|
||||
<span class="padd-right status-small-label no-grow">
|
||||
<a class="momentum-plus plus-minus-button">+</a>
|
||||
<a class="momentum-minus plus-minus-button"> -</a>
|
||||
</span>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="data.momentum.max" value="{{data.momentum.max}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right status-small-label no-grow" name="system.momentum.max" value="{{data.momentum.max}}" data-dtype="Number"/>
|
||||
<span class="small-label status-small-label"> </span>
|
||||
</li>
|
||||
<!--<li class="item flexrow list-item" data-key="lock-unlock">
|
||||
@ -72,5 +72,5 @@
|
||||
</ul>
|
||||
|
||||
<!-- <span class="small-label padd-right packed-left">Act</span>
|
||||
<input type="text" class="padd-right" name="data.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
|
||||
<input type="text" class="padd-right" name="system.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
|
||||
-->
|
@ -6,7 +6,7 @@
|
||||
</li>
|
||||
{{#each data.effects as |effect idx|}}
|
||||
<li class="flexrow">
|
||||
<label name="data.effects[{{idx}}].name"><a class="view-subitem" data-type="effects" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<label name="system.effects[{{idx}}].name"><a class="view-subitem" data-type="effects" data-index="{{idx}}">{{effect.name}}</a></label>
|
||||
<div class="item-controls padd-left">
|
||||
<a class="item-control delete-subitem padd-left" data-type="effects" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<label class="generic-label">Description</label>
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user