Sync effetcts + initiative
This commit is contained in:
parent
a4ead72808
commit
44131734bd
@ -232,6 +232,10 @@ export class PegasusActor extends Actor {
|
|||||||
getEquipments() {
|
getEquipments() {
|
||||||
return this.data.items.filter(item => item.type == 'shield' || item.type == 'armor' || item.type == "weapon" || item.type == "equipment");
|
return this.data.items.filter(item => item.type == 'shield' || item.type == 'armor' || item.type == "weapon" || item.type == "equipment");
|
||||||
}
|
}
|
||||||
|
/* ------------------------------------------- */
|
||||||
|
getEquipmentsOnly() {
|
||||||
|
return duplicate( this.data.items.filter(item => item.type == "equipment") || [] )
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getActiveEffects(matching = it => true) {
|
getActiveEffects(matching = it => true) {
|
||||||
@ -568,6 +572,25 @@ export class PegasusActor extends Actor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
addWeapons(rollData, statKey) {
|
||||||
|
let weapons = this.getWeapons()
|
||||||
|
for (let weapon of weapons) {
|
||||||
|
if (weapon.data.equipped && weapon.data.statistic == statKey) {
|
||||||
|
rollData.weaponsList.push( {label: `Attack ${weapon.name}`, type: "attack", applied: false, weapon: weapon, value: 0 } )
|
||||||
|
}
|
||||||
|
if (weapon.data.equipped && weapon.data.damagestatistic == statKey) {
|
||||||
|
rollData.weaponsList.push( {label: `Damage ${weapon.name}`, type: "damage", applied: false, weapon: weapon, value: weapon.data.damage } )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
addEquipments(rollData, statKey) {
|
||||||
|
let equipments = this.getEquipmentsOnly()
|
||||||
|
for (let equip of equipments) {
|
||||||
|
if (equip.data.equipped && equip.data.stataffected == statKey) {
|
||||||
|
rollData.equipmentsList.push( {label: `Item ${equip.name}`, type: "item", applied: false, equip: equip, value: equip.data.level } )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCommonRollData(statKey = undefined, useShield = false) {
|
getCommonRollData(statKey = undefined, useShield = false) {
|
||||||
@ -589,6 +612,8 @@ export class PegasusActor extends Actor {
|
|||||||
|
|
||||||
this.addEffects( rollData)
|
this.addEffects( rollData)
|
||||||
this.addArmorsShields(rollData, statKey, useShield)
|
this.addArmorsShields(rollData, statKey, useShield)
|
||||||
|
this.addWeapons(rollData, statKey, useShield)
|
||||||
|
this.addEquipments(rollData, statKey)
|
||||||
|
|
||||||
return rollData
|
return rollData
|
||||||
}
|
}
|
||||||
|
@ -81,8 +81,8 @@ function welcomeMessage() {
|
|||||||
<p>The Pegasus Engine is a available for free on our website. It is also available as a PDF and in Print format at an affordable price.</p>
|
<p>The Pegasus Engine is a available for free on our website. It is also available as a PDF and in Print format at an affordable price.</p>
|
||||||
<p>This project has been made possible thanks to all the Official GMD Members and Patreon Members that have supported me and as a result made it possible to supply this interface for free.</p>
|
<p>This project has been made possible thanks to all the Official GMD Members and Patreon Members that have supported me and as a result made it possible to supply this interface for free.</p>
|
||||||
<p>In return I have made available a fully detailed Compendium for FREE for all members, which can be obtained from the Members page on my website.</p>
|
<p>In return I have made available a fully detailed Compendium for FREE for all members, which can be obtained from the Members page on my website.</p>
|
||||||
<p>You too can become a supporter for future projects and enjoy amazing rewards.
|
<P>You too can become a supporter for future projects and enjoy amazing rewards.
|
||||||
<br>Sign up Here: https://www.gmdonline.co.uk/gmdmemberspage/</p>
|
<BR>Sign up Here : https://www.gmdonline.co.uk/gmdmemberspage/</p>
|
||||||
<p>GMD Online, GMD CORE RPG logo are © 2018 CORE Worlds and Game Rules © 2001. Interface © 2021 All rights reserved.</p>
|
<p>GMD Online, GMD CORE RPG logo are © 2018 CORE Worlds and Game Rules © 2001. Interface © 2021 All rights reserved.</p>
|
||||||
<p>Enjoy and become the hero you were born to be!</p>
|
<p>Enjoy and become the hero you were born to be!</p>
|
||||||
` });
|
` });
|
||||||
|
@ -60,7 +60,7 @@ export class PegasusRollDialog extends Dialog {
|
|||||||
if (effectData.data.bonusdice) {
|
if (effectData.data.bonusdice) {
|
||||||
idVal = "#bonusDicesLevel"
|
idVal = "#bonusDicesLevel"
|
||||||
}
|
}
|
||||||
if (effectData.data.reducedicevalue) {
|
if (effectData.data.reducedicevalue || effectData.data.statdice) {
|
||||||
idVal = "#statDicesLevel"
|
idVal = "#statDicesLevel"
|
||||||
}
|
}
|
||||||
if (effectData.data.otherdice) {
|
if (effectData.data.otherdice) {
|
||||||
@ -116,6 +116,56 @@ export class PegasusRollDialog extends Dialog {
|
|||||||
console.log("Armor", armorIdx, toggled)
|
console.log("Armor", armorIdx, toggled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
manageWeapons( weaponIdx, toggled) {
|
||||||
|
let weapon = this.rollData.weaponsList[weaponIdx]
|
||||||
|
if (weapon) {
|
||||||
|
weapon.applied = toggled
|
||||||
|
if (weapon.type == 'damage' ) {
|
||||||
|
if (toggled) {
|
||||||
|
this.rollData.otherDicesLevel += Number(weapon.value)
|
||||||
|
} else {
|
||||||
|
this.rollData.otherDicesLevel -= Number(weapon.value)
|
||||||
|
this.rollData.otherDicesLevel = (this.rollData.otherDicesLevel<0) ? 0 : this.rollData.otherDicesLevel
|
||||||
|
}
|
||||||
|
$("#otherDicesLevel").val(this.rollData.otherDicesLevel)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log("Weapon", weaponIdx, toggled, this.rollData.otherDicesLevel, weapon)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
manageEquip( equipIdx, toggled) {
|
||||||
|
let equip = this.rollData.equipmentsList[equipIdx]
|
||||||
|
if (equip) {
|
||||||
|
equip.applied = toggled
|
||||||
|
let idVal = "#otherDicesLevel" // Default
|
||||||
|
if (equip.equip.data.bonusdice) {
|
||||||
|
idVal = "#bonusDicesLevel"
|
||||||
|
}
|
||||||
|
if (equip.equip.data.statdice) {
|
||||||
|
idVal = "#statDicesLevel"
|
||||||
|
}
|
||||||
|
if (equip.equip.data.otherdice) {
|
||||||
|
idVal = "#otherDicesLevel"
|
||||||
|
}
|
||||||
|
let newLevel = Number($(idVal).val())
|
||||||
|
if (toggled) {
|
||||||
|
newLevel += Number(equip.value)
|
||||||
|
} else {
|
||||||
|
newLevel -= Number(equip.value)
|
||||||
|
}
|
||||||
|
newLevel = (newLevel <0) ? 0 : newLevel
|
||||||
|
$(idVal).val(newLevel)
|
||||||
|
// Then refresh
|
||||||
|
this.rollData.statDicesLevel = $('#statDicesLevel').val()
|
||||||
|
this.rollData.specDicesLevel = $('#specDicesLevel').val()
|
||||||
|
this.rollData.bonusDicesLevel = $('#bonusDicesLevel').val()
|
||||||
|
this.rollData.hindranceDicesLevel = $('#hindranceDicesLevel').val()
|
||||||
|
this.rollData.otherDicesLevel = $('#otherDicesLevel').val()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
@ -160,6 +210,16 @@ export class PegasusRollDialog extends Dialog {
|
|||||||
let armorIdx = $(event.currentTarget).data("armor-idx")
|
let armorIdx = $(event.currentTarget).data("armor-idx")
|
||||||
this.manageArmors( armorIdx, toggled)
|
this.manageArmors( armorIdx, toggled)
|
||||||
});
|
});
|
||||||
|
html.find('.weapon-clicked').change((event) => {
|
||||||
|
let toggled = event.currentTarget.checked
|
||||||
|
let weaponIdx = $(event.currentTarget).data("weapon-idx")
|
||||||
|
this.manageWeapons( weaponIdx, toggled)
|
||||||
|
});
|
||||||
|
html.find('.equip-clicked').change((event) => {
|
||||||
|
let toggled = event.currentTarget.checked
|
||||||
|
let equipIdx = $(event.currentTarget).data("equip-idx")
|
||||||
|
this.manageEquip( equipIdx, toggled)
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,9 @@ export class PegasusUtility {
|
|||||||
if (typeof text !== 'string') return text
|
if (typeof text !== 'string') return text
|
||||||
return text.charAt(0).toUpperCase() + text.slice(1)
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
||||||
});
|
});
|
||||||
|
Handlebars.registerHelper('notEmpty', function (list) {
|
||||||
|
return list.length > 0;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -587,6 +590,8 @@ export class PegasusUtility {
|
|||||||
specDicesLevel: 0,
|
specDicesLevel: 0,
|
||||||
effectsList: [],
|
effectsList: [],
|
||||||
armorsList: [],
|
armorsList: [],
|
||||||
|
weaponsList: [],
|
||||||
|
equipmentsList: [],
|
||||||
optionsDiceList: PegasusUtility.getOptionsDiceList()
|
optionsDiceList: PegasusUtility.getOptionsDiceList()
|
||||||
}
|
}
|
||||||
PegasusUtility.updateWithTarget(rollData)
|
PegasusUtility.updateWithTarget(rollData)
|
||||||
|
@ -48,3 +48,28 @@
|
|||||||
{"_id":"wtl84r5MezEwyDBd","name":"Bonus Dice STR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"str","specaffected":[],"statdice":false,"bonusdice":true,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
{"_id":"wtl84r5MezEwyDBd","name":"Bonus Dice STR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"str","specaffected":[],"statdice":false,"bonusdice":true,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
||||||
{"_id":"yrJYjyHColPtif8t","name":"Poisoned","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"all","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"phy","recoveryroll":true,"recoveryrollstat":"phy","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
{"_id":"yrJYjyHColPtif8t","name":"Poisoned","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"all","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"phy","recoveryroll":true,"recoveryrollstat":"phy","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
||||||
{"_id":"zbPfPn6c0XqlsGtp","name":"Hindrance Dice PHY","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"phy","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
{"_id":"zbPfPn6c0XqlsGtp","name":"Hindrance Dice PHY","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"phy","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
||||||
|
{"_id":"EVOlHfNom2oXiMVk","name":"Bonus Dice MR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"mr","specaffected":[],"statdice":false,"bonusdice":true,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":"<p><span style=\"color: #191813; font-size: 12.8px; letter-spacing: 1px; text-align: justify;\">See Pegasus Engine CORE RPG</span></p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
||||||
|
{"_id":"s1gG2e5o8n3ksta2","name":"Other Dice AGI","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"agi","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"V8rLXdttufhDSphq","name":"Other Dice ALL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"all","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
||||||
|
{"_id":"k0tkMV5ukd4tvK9Z","name":"Other Dice COM","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"com","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"dlg0m258LqFY2QWw","name":"Other Dice DEF","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"def","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"OnUAoq7LIhWV19pc","name":"Other Dice FOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"foc","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"zJu3oHXmliYG9LE0","name":"Other Dice MND","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"mnd","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"4p2gvEUvyvfM5vDC","name":"Other Dice MR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"mr","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"JoY6sGrZ5b4B72O1","name":"Other Dice PER","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"per","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"7Qdb9RrtP3NaAIIu","name":"Other Dice PHY","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"phy","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"9R1LnO0BBmI39IM0","name":"Other Dice SOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"soc","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"cm1FsEXKEr1onFTV","name":"Other Dice STL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"stl","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"apRzagTKiX98fa6p","name":"Other Dice STR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"str","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":true,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"SOdJ90uKClUvLfKS","name":"Stat Dice AGI","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"agi","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"LGGPjj1GuHDxTBoV","name":"Stat Dice ALL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"all","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
|
||||||
|
{"_id":"UiKhbZ8rq16hg9IO","name":"Stat Dice COM","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"com","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"szUdOnqtQognnTUM","name":"Stat Dice DEF","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"def","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"GXWaj3FI3gKWmQYp","name":"Stat Dice FOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"foc","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"EqPbQaMw1LoFL9nr","name":"Stat Dice MND","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"mnd","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"ejVHT07ZzMkMv1ZI","name":"Stat Dice MR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"mr","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"iSz0XqiAK8CtoLBI","name":"Stat Dice PER","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"per","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"VV7Fp5cGkoDIZtE3","name":"Stat Dice PHY","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"phy","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"q9ZPZA1rqOv2jqlA","name":"Stat Dice SOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"soc","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"bQb5yo6QUS3m2FKh","name":"Stat Dice STL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"stl","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
{"_id":"Q0JTdXDF4sgc1hiA","name":"Stat Dice STR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"str","specaffected":[],"statdice":true,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.V8rLXdttufhDSphq"}}}
|
||||||
|
@ -183,6 +183,6 @@
|
|||||||
"templateVersion": 63,
|
"templateVersion": 63,
|
||||||
"title": "Pegasus RPG",
|
"title": "Pegasus RPG",
|
||||||
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
||||||
"version": "0.2.3",
|
"version": "0.2.4",
|
||||||
"background" : "./images/ui/pegasus_welcome_page.webp"
|
"background" : "./images/ui/pegasus_welcome_page.webp"
|
||||||
}
|
}
|
||||||
|
@ -430,6 +430,11 @@
|
|||||||
"idr": "",
|
"idr": "",
|
||||||
"quantity": 0,
|
"quantity": 0,
|
||||||
"equipped": false,
|
"equipped": false,
|
||||||
|
"stataffected": "",
|
||||||
|
"level": 0,
|
||||||
|
"statdice": false,
|
||||||
|
"bonusdice": false,
|
||||||
|
"otherdice": false,
|
||||||
"description":""
|
"description":""
|
||||||
},
|
},
|
||||||
"money" : {
|
"money" : {
|
||||||
|
@ -276,25 +276,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="generic-label">
|
|
||||||
<h3>Weapons</h3>
|
|
||||||
</span>
|
|
||||||
<ul class="stat-list alternate-list">
|
|
||||||
{{#each weapons as |weapon key|}}
|
|
||||||
<li class="item stat flexrow list-item" data-item-id="{{weapon._id}}">
|
|
||||||
<img class="sheet-competence-img" src="{{weapon.img}}" />
|
|
||||||
<span class="generic-label"><a class="weapon-roll">{{weapon.name}}</a></span>
|
|
||||||
<span class="generic-label"><a class="weapon-damage-roll">Damage {{weapon.data.damageDice}}</a></span>
|
|
||||||
<div class="item-controls">
|
|
||||||
<a class="item-control item-equip" title="Equip">{{#if weapon.data.equipped}}<i
|
|
||||||
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
|
||||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -18,6 +18,32 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</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 data.stataffected}}
|
||||||
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</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"/>
|
||||||
|
</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>
|
||||||
|
</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>
|
||||||
|
</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>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
|
||||||
|
{{#if (notEmpty effectsList)}}
|
||||||
|
<label>Effects&Hindrances</label>
|
||||||
<ul>
|
<ul>
|
||||||
{{#each effectsList as |effect idx|}}
|
{{#each effectsList as |effect idx|}}
|
||||||
|
|
||||||
@ -39,8 +42,11 @@
|
|||||||
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<ul>
|
{{#if (notEmpty armorsList)}}
|
||||||
|
<label>Armors&Shields</label>
|
||||||
|
<ul>
|
||||||
|
|
||||||
{{#each armorsList as |armor idx|}}
|
{{#each armorsList as |armor idx|}}
|
||||||
<li class="flex-group-left">
|
<li class="flex-group-left">
|
||||||
@ -49,4 +55,33 @@
|
|||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if (notEmpty weaponsList)}}
|
||||||
|
<label>Weapons</label>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
{{#each weaponsList as |weapon idx|}}
|
||||||
|
<li class="flex-group-left">
|
||||||
|
<label class="attribute-value checkbox"><input type="checkbox" class="weapon-clicked" id="weapon-{{idx}}" data-weapon-idx="{{idx}}" {{checked weapon.applied}}/></label>
|
||||||
|
<label class="generic-label padd-right">{{weapon.label}}</label>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if (notEmpty equipmentsList)}}
|
||||||
|
<label>Items</label>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
{{#each equipmentsList as |equip idx|}}
|
||||||
|
<li class="flex-group-left">
|
||||||
|
<label class="attribute-value checkbox"><input type="checkbox" class="equip-clicked" id="equip-{{idx}}" data-equip-idx="{{idx}}" {{checked equip.applied}}/></label>
|
||||||
|
<label class="generic-label padd-right">{{equip.label}} ({{equip.value}})</label>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
|
Loading…
Reference in New Issue
Block a user