Sync effetcts + initiative

This commit is contained in:
sladecraven 2022-01-28 10:05:54 +01:00
parent a203163b12
commit 68d7344e90
17 changed files with 755 additions and 624 deletions

View File

@ -261,124 +261,12 @@ export class PegasusActor extends Actor {
}
}
/* -------------------------------------------- */
getInitiativeScore() {
getInitiativeScore( combatId, combatantId) {
if (this.type == 'character') {
// TODO
this.rollMR(true, combatId, combatantId)
}
return 0.0;
}
/* -------------------------------------------- */
getArmorModifier() {
let armors = this.getArmors();
let modifier = 0;
for (let armor of armors) {
if (armor.data.data.equipped) {
if (armor.data.data.type == 'light') modifier += 5;
if (armor.data.data.type == 'medium') modifier += 10;
if (armor.data.data.type == 'heavy') modifier += 15;
}
}
return modifier;
}
/* -------------------------------------------- */
async applyDamageLoss(damage) {
let chatData = {
user: game.user.id,
alias: this.name,
rollMode: game.settings.get("core", "rollMode"),
whisper: [game.user.id].concat(ChatMessage.getWhisperRecipients('GM')),
};
//console.log("Apply damage chat", chatData );
if (damage > 0) {
let health = duplicate(this.data.data.secondary.health);
health.value -= damage;
if (health.value < 0) health.value = 0;
this.update({ "data.secondary.health.value": health.value });
chatData.content = `${this.name} looses ${damage} health. New health value is : ${health.value}`;
} else {
chatData.content = `No health loss for ${this.name} !`;
}
await ChatMessage.create(chatData);
}
/* -------------------------------------------- */
processNoDefense(attackRollData) {
let defenseRollData = {
mode: "nodefense",
finalScore: 0,
defenderName: this.name,
attackerName: attackRollData.alias,
armorModifier: this.getArmorModifier(),
actorId: this.id,
alias: this.name,
result: 0,
}
this.syncRoll(defenseRollData);
this.processDefenseResult(defenseRollData, attackRollData);
}
/* -------------------------------------------- */
async processApplyDamage(defenseRollData, attackRollData) { // Processed by the defender actor
if (attackRollData && attackRollData) {
let result = attackRollData.finalScore;
defenseRollData.damageDices = WotGUtility.getDamageDice(result);
defenseRollData.damageRoll = await this.rollDamage(defenseRollData);
chatData.damages = true;
chatData.damageDices = defenseRollData.damageDices;
WotGUtility.createChatWithRollMode(this.name, {
content: await renderTemplate(`systems/fvtt-weapons-of-the-gods/templates/chat-opposed-damages.html`, chatData)
});
}
}
/* -------------------------------------------- */
async processDefenseResult(defenseRollData, attackRollData) { // Processed by the defenser
if (defenseRollData && attackRollData) {
let result = attackRollData.finalScore - defenseRollData.finalScore;
defenseRollData.defenderName = this.name,
defenseRollData.attackerName = attackRollData.alias
defenseRollData.result = result
defenseRollData.damages = false
defenseRollData.damageDices = 0;
if (result > 0) {
defenseRollData.damageDices = WotGUtility.getDamageDice(result);
defenseRollData.damageRoll = await this.rollDamage(defenseRollData, attackRollData);
defenseRollData.damages = true;
defenseRollData.finalDamage = defenseRollData.damageRoll.total;
WotGUtility.updateRollData(defenseRollData);
console.log("DAMAGE ROLL OBJECT", defenseRollData);
WotGUtility.createChatWithRollMode(this.name, {
content: await renderTemplate(`systems/fvtt-weapons-of-the-gods/templates/chat-opposed-damage.html`, defenseRollData)
});
} else {
WotGUtility.updateRollData(defenseRollData);
WotGUtility.createChatWithRollMode(this.name, {
content: await renderTemplate(`systems/fvtt-weapons-of-the-gods/templates/chat-opposed-fail.html`, defenseRollData)
});
}
}
}
/* -------------------------------------------- */
async rollDamage(defenseRollData, attackRollData) {
let weaponDamage = 0;
if (attackRollData.weapon?.data?.damage) {
weaponDamage = Number(attackRollData.weapon.data.damage);
}
let formula = defenseRollData.damageDices + "d10+" + defenseRollData.armorModifier + "+" + weaponDamage;
console.log("ROLL : ", formula);
let myRoll = new Roll(formula).roll({ async: false });
await WotGUtility.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"));
return myRoll;
console.log("Init required !!!!")
return -1;
}
/* -------------------------------------------- */
@ -406,20 +294,6 @@ export class PegasusActor extends Actor {
await this.update({ 'data.subactors': newArray });
}
/* -------------------------------------------- */
setDefenseMode(rollData) {
console.log("DEFENSE MODE IS SET FOR", this.name);
this.data.defenseRollData = rollData;
this.data.defenseDefenderId = rollData.defenderId;
this.data.defenseAttackerId = rollData.attackerId;
}
/* -------------------------------------------- */
clearDefenseMode() {
this.data.defenseDefenderId = undefined;
this.data.defenseAttackerId = undefined;
this.data.defenseRollData = undefined;
}
/* -------------------------------------------- */
syncRoll(rollData) {
let linkedRollId = PegasusUtility.getDefenseState(this.id);
@ -460,126 +334,6 @@ export class PegasusActor extends Actor {
}
}
/* -------------------------------------------- */
getCommonRollData() {
let rollData = {
rollId: randomID(16),
alias: this.name,
actorImg: this.img,
actorId: this.id,
img: this.img,
rollMode: game.settings.get("core", "rollMode"),
activePerks: duplicate(this.getActivePerks()),
optionsDiceList: PegasusUtility.getOptionsDiceList(),
bonusDicesLevel: 0,
hindranceDicesLevel: 0,
otherDicesLevel: 0,
}
return rollData
}
/* -------------------------------------------- */
async startRoll(rollData) {
this.syncRoll(rollData);
let rollDialog = await PegasusRollDialog.create(this, rollData);
console.log(rollDialog);
rollDialog.render(true);
}
/* -------------------------------------------- */
getShieldDice() {
let shields = this.data.items.filter(item => item.type == "shield" && item.data.data.equipped)
let def = 0
for (let sh of shields) {
def += sh.data.data.level
}
return def
}
/* -------------------------------------------- */
rollPool(statKey, useShield = false) {
let stat = this.getStat(statKey);
if (stat) {
let rollData = this.getCommonRollData()
rollData.mode = "stat"
rollData.specList = this.getRelevantSpec(statKey)
rollData.selectedSpec = "0"
rollData.stat = stat;
if (useShield) {
rollData.otherDicesLevel = this.getShieldDice()
}
this.startRoll(rollData);
} else {
ui.notifications.warn("Statistic not found !");
}
}
/* -------------------------------------------- */
rollUnarmedAttack() {
let stat = this.getStat('com');
if (stat) {
let rollData = this.getCommonRollData()
rollData.mode = "stat"
rollData.title = `Unarmed Attack`;
rollData.stat = stat;
rollData.damages = this.getStat('str');
this.startRoll(rollData);
} else {
ui.notifications.warn("Statistic not found !");
}
}
/* -------------------------------------------- */
rollStat(statKey) {
let stat = this.getStat(statKey);
if (stat) {
let rollData = this.getCommonRollData()
rollData.specList = this.getRelevantSpec(statKey)
rollData.mode = "stat"
rollData.title = `Stat ${stat.label}`;
rollData.stat = stat;
this.startRoll(rollData);
} else {
ui.notifications.warn("Statistic not found !");
}
}
/* -------------------------------------------- */
async rollSpec(specId) {
let spec = this.getOneSpec(specId)
if (spec) {
let rollData = this.getCommonRollData()
rollData.mode = "spec"
rollData.title = `Spec. : ${spec.name} `,
rollData.stat = this.getStat(spec.data.statistic)
rollData.spec = spec
this.startRoll(rollData);
} else {
ui.notifications.warn("Specialisation not found !");
}
}
/* -------------------------------------------- */
async rollMR() {
let mr = duplicate(this.data.data.mr);
if (mr) {
mr.dice = PegasusUtility.getDiceFromLevel(mr.value);
let rollData = this.getCommonRollData()
rollData.mode = "MR"
rollData.stat = mr
rollData.activePerks = duplicate(this.getActivePerks()),
rollData.specList = this.getRelevantSpec('mr'),
this.startRoll(rollData);
} else {
ui.notifications.warn("MR not found !");
}
}
/* -------------------------------------------- */
async deleteAllItemsByType(itemType) {
let items = this.data.items.filter(item => item.type == itemType);
@ -768,74 +522,182 @@ export class PegasusActor extends Actor {
}
/* -------------------------------------------- */
async rollPower(powId) {
let power = this.data.items.find(item => item.type == 'power' && item.id == powId);
if (power) {
let rollData = {
mode: "power",
alias: this.name,
actorImg: this.img,
actorId: this.id,
img: power.img,
rollMode: game.settings.get("core", "rollMode"),
title: `Power ${power.name} `,
power: duplicate(power),
activePerks: duplicate(this.getActivePerks()),
optionsDiceList: PegasusUtility.getOptionsDiceList(),
bonusDicesLevel: 0,
hindranceDicesLevel: 0,
otherDicesLevel: 0,
getShieldValue() {
let shields = this.data.items.filter(item => item.type == "shield" && item.data.data.equipped)
let def = 0
for (let sh of shields) {
def += sh.data.data.level
}
return def
}
this.updateWithTarget(rollData);
this.syncRoll(rollData);
let rollDialog = await PegasusRollDialog.create(this, rollData);
console.log(rollDialog);
rollDialog.render(true);
} else {
ui.notifications.warn("Technique not found !");
/* -------------------------------------------- */
addHindrancesList( effectsList ) {
if (this.data.data.combat.stunlevel > 0) {
effectsList.push( { label: "Stun Hindrance", type: "hindrance", applied: false, value: this.data.data.combat.stunlevel } )
}
let effects = this.data.items.filter( item => item.type == 'effect' )
for( let effect of effects) {
effect = duplicate(effect)
if (effect.data.hindrance) {
effectsList.push( { label: effect.name, type: "effect", applied: false, effect: effect, value: effect.data.effectlevel } )
}
}
}
/* -------------------------------------------- */
updateWithTarget(rollData) {
let objectDefender
let target = PegasusUtility.getTarget();
if (!target) {
ui.notifications.warn("You are using a Weapon without a Target.");
/* ROLL SECTION
/* -------------------------------------------- */
/* -------------------------------------------- */
addEffects( rollData) {
let effects = this.data.items.filter( item => item.type == 'effect' )
for( let effect of effects) {
effect = duplicate(effect)
if ( !effect.data.hindrance
&& effect.data.stataffected != "notapplicable"
&& effect.data.stataffected != "special"
&& effect.data.stataffected != "all") {
rollData.effectsList.push( { label: effect.name, type: "effect", applied: false, effect: effect, value: effect.data.effectlevel } )
}
}
}
/* -------------------------------------------- */
addArmorsShields( rollData) {
let armors = this.getArmors()
let armorLevel = 0
for (let armor of armors) {
armorLevel += armor.data.resistance
}
rollData.armorsList.push( {label: 'Total armor level', type: "other", applied: false, value: armorLevel } )
rollData.armorsList.push( {label: 'Shield level', type: "other", applied: false, value: this.getShieldValue() } )
}
/* -------------------------------------------- */
getCommonRollData(statKey = undefined) {
let rollData = PegasusUtility.getBasicRollData()
rollData.alias = this.name
rollData.actorImg = this.img
rollData.actorId = this.id
rollData.img = this.img
rollData.activePerks = duplicate(this.getActivePerks())
if ( statKey) {
rollData.statKey = statKey
rollData.stat = this.getStat(statKey)
rollData.statDicesLevel = rollData.stat.value
rollData.statMod = rollData.stat.mod
rollData.specList = this.getRelevantSpec(statKey)
rollData.selectedSpec = "0"
}
this.addEffects( rollData)
this.addArmorsShields(rollData)
return rollData
}
/* -------------------------------------------- */
async startRoll(rollData) {
this.syncRoll(rollData);
console.log("ROLL DATA", rollData)
let rollDialog = await PegasusRollDialog.create(this, rollData);
console.log(rollDialog);
rollDialog.render(true);
}
/* -------------------------------------------- */
rollPool(statKey, useShield = false) {
let stat = this.getStat(statKey);
if (stat) {
let rollData = this.getCommonRollData(statKey)
rollData.mode = "stat"
this.startRoll(rollData)
} else {
let defenderActor = game.actors.get(target.data.actorId);
objectDefender = PegasusUtility.data(defenderActor);
objectDefender = mergeObject(objectDefender, target.data.actorData);
rollData.defender = objectDefender;
rollData.attackerId = this.id;
rollData.defenderId = objectDefender._id;
//console.log("ROLLDATA DEFENDER !!!", rollData);
ui.notifications.warn("Statistic not found !");
}
}
/* -------------------------------------------- */
rollUnarmedAttack() {
let stat = this.getStat('com');
if (stat) {
let rollData = this.getCommonRollData(statKey)
rollData.mode = "stat"
rollData.title = `Unarmed Attack`;
rollData.damages = this.getStat('str');
this.startRoll(rollData);
} else {
ui.notifications.warn("Statistic not found !");
}
}
/*-------------------------------------------- */
rollStat(statKey) {
let stat = this.getStat(statKey);
if (stat) {
let rollData = this.getCommonRollData(statKey)
rollData.mode = "stat"
rollData.title = `Stat ${stat.label}`;
this.startRoll(rollData)
} else {
ui.notifications.warn("Statistic not found !");
}
}
/* -------------------------------------------- */
async rollSpec(specId) {
let spec = this.getOneSpec(specId)
if (spec) {
let rollData = this.getCommonRollData(spec.data.statistic)
rollData.mode = "spec"
rollData.title = `Spec. : ${spec.name} `
rollData.specList = [ spec ]
this.startRoll(rollData)
} else {
ui.notifications.warn("Specialisation not found !");
}
}
/* -------------------------------------------- */
async rollMR( isInit = false, combatId = 0, combatantId = 0) {
let mr = duplicate(this.data.data.mr)
if (mr) {
mr.dice = PegasusUtility.getDiceFromLevel(mr.value);
let rollData = this.getCommonRollData("mr")
rollData.mode = "MR"
rollData.isInit = isInit
rollData.combatId = combatId
rollData.combatantId = combatantId
this.startRoll(rollData);
} else {
ui.notifications.warn("MR not found !");
}
}
/* -------------------------------------------- */
async rollArmor(armorId) {
let armor = this.data.items.get(armorId)
if (armor) {
let rollData = this.getCommonRollData()
let rollData = this.getCommonRollData(armor.data.statistic)
armor = duplicate(armor);
this.checkAndPrepareArmor(armor);
rollData.mode = "armor"
rollData.img = armor.img
rollData.armor = armor
rollData.title = `Armor : ${armor.name}`
rollData.stat = this.getStat(armor.data.statistic)
rollData.specList = this.getRelevantSpec(armor.data.statistic)
rollData.activePerks = duplicate(this.getActivePerks())
rollData.isResistance = true;
rollData.otherDicesLevel = armor.data.resistance
//this.updateWithTarget(rollData);
this.startRoll(rollData);
} else {
ui.notifications.warn("Armor not found !", weaponId);
@ -847,26 +709,19 @@ export class PegasusActor extends Actor {
let weapon = this.data.items.get(weaponId)
if (weapon) {
let rollData = this.getCommonRollData()
weapon = duplicate(weapon);
this.checkAndPrepareWeapon(weapon);
weapon = duplicate(weapon)
this.checkAndPrepareWeapon(weapon)
let rollData = this.getCommonRollData(weapon.data.statistic)
rollData.mode = "weapon"
rollData.img = weapon.img
rollData.weapon = weapon
rollData.title = `Weapon : ${weapon.name}`
rollData.specList = this.getRelevantSpec(weapon.data.statistic)
rollData.activePerks = duplicate(this.getActivePerks())
if (damage) {
rollData.stat = this.getStat(weapon.data.damagestatistic)
rollData.isDamage = true;
rollData.otherDicesLevel = weapon.data.damage
} else {
rollData.stat = this.getStat(weapon.data.statistic)
}
//this.updateWithTarget(rollData);
this.startRoll(rollData);
} else {
ui.notifications.warn("Weapon not found !", weaponId);
@ -878,20 +733,15 @@ export class PegasusActor extends Actor {
let power = this.data.items.get(powerId)
if (power) {
let rollData = this.getCommonRollData()
power = duplicate(power);
power = duplicate(power)
let rollData = this.getCommonRollData(power.data.statistic)
rollData.mode = "power"
rollData.img = power.img
rollData.power = power
rollData.title = `Power : ${power.name}`
rollData.stat = this.getStat(power.data.statistic)
rollData.specList = this.getRelevantSpec(power.data.statistic)
rollData.activePerks = duplicate(this.getActivePerks())
this.startRoll(rollData);
} else {
ui.notifications.warn("Power not found !", powerId);
}
}
}

View File

@ -6,14 +6,25 @@ export class PegasusCombat extends Combat {
/* -------------------------------------------- */
async rollInitiative(ids, formula = undefined, messageOptions = {} ) {
ids = typeof ids === "string" ? [ids] : ids;
const currentId = this.combatant._id;
for (let cId = 0; cId < ids.length; cId++) {
const c = this.combatants.get(ids[cId]);
let initBonus = c.actor ? c.actor.getInitiativeScore() : 0;
let id = c._id || c.id;
await this.updateEmbeddedDocuments("Combatant", { _id: id, initiative: initBonus });
let initBonus = c.actor ? c.actor.getInitiativeScore( this.id, id ) : -1;
await this.updateEmbeddedDocuments("Combatant", [ { _id: id, initiative: initBonus } ]);
}
return this;
}
/* -------------------------------------------- */
_onUpdate(changed, options, userId) {
}
/* -------------------------------------------- */
static decInitBy10( combatantId, value) {
const combatant = game.combat.combatants.get(combatantId)
let initValue = combatant.initiative + value
game.combat.setInitiative(combatantId, initValue)
}
}

View File

@ -109,19 +109,11 @@ export class PegasusCommands {
/* -------------------------------------------- */
async poolRoll( msg) {
let rollData = {
rollId:randomID(16),
alias: "Dice Pool Roll",
rollMode: game.settings.get("core", "rollMode"),
optionsDiceList: PegasusUtility.getOptionsDiceList(),
statDicesLevel: 0,
specDicesLevel: 0,
bonusDicesLevel: 0,
hindranceDicesLevel: 0,
otherDicesLevel: 0,
}
let rollData = PegasusUtility.getBasicRollData()
rollData.alias = "Dice Pool Roll",
rollData.mode = "generic"
rollData.title = `Dice Pool Roll`;
let rollDialog = await PegasusRollDialog.create( this, rollData);
rollDialog.render( true );
}

View File

@ -75,7 +75,17 @@ function welcomeMessage() {
ChatMessage.create({
user: game.user.id,
whisper: [game.user.id],
content: `<div id="welcome-message-pegasus"><span class="rdd-roll-part">Welcome !</div>
content: `<div id="welcome-message-pegasus"><span class="rdd-roll-part">
<strong>Welcome to the Pegasus Engine CORE RPG.</strong>
<br>Created by GMD Online
<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 on our website.</p>
<p>It is thanks to all my Official GMD Members and Patreon Members that have made this project possible and allowed for this interface to be provided 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>
You too can become a supporter for future projects.
<br>Sign up Here:
https://www.gmdonline.co.uk/gmdmemberspage/
<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></div>
` });
}

View File

@ -5,23 +5,9 @@ export class PegasusRollDialog extends Dialog {
/* -------------------------------------------- */
static async create(actor, rollData ) {
let html
let options = { classes: ["WotGdialog"], width: 420, height: 320, 'z-index': 99999 };
if ( rollData.mode == "generic" ) {
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-generic.html', rollData);
options.height = 320;
} else if ( rollData.mode == "stat" || rollData.mode == "MR") {
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-stat.html', rollData);
options.height = 320;
} else if (rollData.mode == "spec") {
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-spec.html', rollData);
options.height = 360;
} else if (rollData.mode == "weapon" || rollData.mode == "armor" || rollData.mode == "power") {
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-weapon.html', rollData);
options.height = 320;
} else {
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-skill.html', rollData);
}
let options = { classes: ["WotGdialog"], width: 620, height: 380, 'z-index': 99999 };
let html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-generic.html', rollData);
return new PegasusRollDialog(actor, rollData, html, options );
}
@ -55,6 +41,81 @@ export class PegasusRollDialog extends Dialog {
PegasusUtility.rollPegasus( this.rollData )
}
/* -------------------------------------------- */
manageEffects( effectIdx, toggled) {
let effect = this.rollData.effectsList[effectIdx]
if (effect) {
effect.applied = toggled
let level, genre, idVal
if (effect.type == 'hindrance' ) {
level = effect.value
genre = 'positive'
idVal = "#hindranceDicesLevel"
}
if (effect.type == 'effect' ) {
let effectData = effect.effect
level = effectData.data.effectlevel
genre = effectData.data.genre
if (effectData.data.bonusdice) {
idVal = "#bonusDicesLevel"
}
if (effectData.data.reducedicevalue) {
idVal = "#statDicesLevel"
}
if (effectData.data.otherdice) {
idVal = "#otherDicesLevel"
}
if (effectData.data.hindrance) {
idVal = "#hindranceDicesLevel"
genre = 'positive' // Dynamic fix
}
}
// Now process the dice level update
let newLevel = Number($(idVal).val())
console.log("Ongoing", newLevel, toggled, idVal )
if (toggled) {
if ( genre == 'positive') {
newLevel += level
}else {
newLevel -= level
}
}else {
if ( genre == 'positive') {
newLevel -= level
}else {
newLevel += level
}
}
newLevel = (newLevel<0) ? 0 : newLevel
$(idVal).val(newLevel)
}
//console.log("Effect", effect, toggled)
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()
}
/* -------------------------------------------- */
manageArmors( armorIdx, toggled) {
let armor = this.rollData.armorsList[armorIdx]
if (armor) {
armor.applied = toggled
if (armor.type == 'other' ) {
if (toggled) {
this.rollData.otherDicesLevel += armor.value
} else {
this.rollData.otherDicesLevel -= armor.value
this.rollData.otherDicesLevel = (this.rollData.otherDicesLevel<0) ? 0 : this.rollData.otherDicesLevel
}
$("#otherDicesLevel").val(this.rollData.otherDicesLevel)
}
}
console.log("Armor", armorIdx, toggled)
}
/* -------------------------------------------- */
activateListeners(html) {
super.activateListeners(html);
@ -65,22 +126,39 @@ export class PegasusRollDialog extends Dialog {
$(function () { onLoad(); });
html.find('#specList').change((event) => {
this.rollData.selectedSpec = event.currentTarget.value;
this.rollData.selectedSpec = event.currentTarget.value
let spec = this.rollData.specList.find(item => item._id == this.rollData.selectedSpec)
if ( spec) {
this.rollData.specDiceLevel = spec.data.level
$('#specDicesLevel').val(this.rollData.specDiceLevel)
}
});
html.find('#statDicesLevel').change((event) => {
this.rollData.statDicesLevel = Number(event.currentTarget.value);
this.rollData.statDicesLevel = Number(event.currentTarget.value)
});
html.find('#specDicesLevel').change((event) => {
this.rollData.specDicesLevel = Number(event.currentTarget.value);
this.rollData.specDicesLevel = Number(event.currentTarget.value)
});
html.find('#bonusDicesLevel').change((event) => {
this.rollData.bonusDicesLevel = Number(event.currentTarget.value);
this.rollData.bonusDicesLevel = Number(event.currentTarget.value)
});
html.find('#hindranceDicesLevel').change((event) => {
this.rollData.hindranceDicesLevel = Number(event.currentTarget.value);
this.rollData.hindranceDicesLevel = Number(event.currentTarget.value)
});
html.find('#otherDicesLevel').change((event) => {
this.rollData.otherDicesLevel = Number(event.currentTarget.value);
this.rollData.otherDicesLevel = Number(event.currentTarget.value)
});
html.find('.effect-clicked').change((event) => {
let toggled = event.currentTarget.checked
let effectIdx = $(event.currentTarget).data("effect-idx")
this.manageEffects( effectIdx, toggled)
});
html.find('.armor-clicked').change((event) => {
let toggled = event.currentTarget.checked
let armorIdx = $(event.currentTarget).data("armor-idx")
this.manageArmors( armorIdx, toggled)
});
}
}

View File

@ -1,4 +1,5 @@
/* -------------------------------------------- */
import { PegasusCombat } from "./pegasus-combat.js";
import { PegasusCommands } from "./pegasus-commands.js";
import { PegasusActorCreate } from "./pegasus-create-char.js";
@ -13,6 +14,9 @@ export class PegasusUtility {
/* -------------------------------------------- */
static async init() {
Hooks.on('renderChatLog', (log, html, data) => PegasusUtility.chatListeners(html));
Hooks.on("getCombatTrackerEntryContext", (html, options) => {
PegasusUtility.pushInitiativeOptions(html, options);
});
this.rollDataStore = {}
this.defenderStore = {}
this.diceList = [];
@ -31,6 +35,12 @@ export class PegasusUtility {
}
/* -------------------------------------------- */
static pushInitiativeOptions(html, options) {
console.log('Option pushed....')
options.push( { name: "Apply -10", condition: true, icon: '<i class="fas fa-plus"></i>', callback: target => { PegasusCombat.decInitBy10(target.data('combatant-id'), -10); } } )
}
/* -------------------------------------------- */
static getSpecs() {
return this.specs;
@ -86,7 +96,6 @@ export class PegasusUtility {
this.optionsStatusList = '<option value="notapplicable">Not applicable</option><option value="health">Health</option><option value="nrg">NRG</option><option value="delirium">Delirium</option>';
console.log("Defautl dice List", diceList, diceFoundryList);
}
/* -------------------------------------------- */
@ -141,6 +150,7 @@ export class PegasusUtility {
const templatePaths = [
'systems/fvtt-pegasus-rpg/templates/editor-notes-gm.html',
'systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html',
'systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-level.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-range.html',
@ -210,7 +220,7 @@ export class PegasusUtility {
/* -------------------------------------------- */
static getFoundryDiceFromLevel(level = 0) {
level = Number(level)
console.log(this.diceFoundryList);
//console.log(this.diceFoundryList);
return this.diceFoundryList[level];
}
@ -272,7 +282,8 @@ export class PegasusUtility {
/* -------------------------------------------- */
static storeDefenseState(rollData) {
game.socket.emit("system.fvtt-weapons-of-the-gods", {
name: "msg_update_defense_state", data: { defenderId: rollData.defenderId, rollId: rollData.rollId } } );
name: "msg_update_defense_state", data: { defenderId: rollData.defenderId, rollId: rollData.rollId }
});
this.updateDefenseState(rollData.defenderId, rollData.rollId);
}
/* -------------------------------------------- */
@ -286,7 +297,8 @@ export class PegasusUtility {
/* -------------------------------------------- */
static saveRollData(rollData) {
game.socket.emit("system.pegasus-rpg", {
name: "msg_update_roll", data: rollData } ); // Notify all other clients of the roll
name: "msg_update_roll", data: rollData
}); // Notify all other clients of the roll
this.updateRollData(rollData);
}
@ -432,6 +444,12 @@ export class PegasusUtility {
if (rollData.defender) {
this.storeDefenseState(rollData);
}
// Init stuf
if (rollData.isInit) {
let combat = game.combats.get( rollData.combatId)
combat.updateEmbeddedDocuments("Combatant", [ { _id: rollData.combatantId, initiative: rollData.finalScore } ]);
}
// And save the roll
this.saveRollData(rollData);
}
@ -557,6 +575,39 @@ export class PegasusUtility {
ChatMessage.create(chatOptions);
}
/* -------------------------------------------- */
static getBasicRollData() {
let rollData = {
rollId: randomID(16),
rollMode: game.settings.get("core", "rollMode"),
bonusDicesLevel: 0,
hindranceDicesLevel: 0,
otherDicesLevel: 0,
statDicesLevel: 0,
specDicesLevel: 0,
effectsList: [],
armorsList: [],
optionsDiceList: PegasusUtility.getOptionsDiceList()
}
PegasusUtility.updateWithTarget(rollData)
return rollData
}
/* -------------------------------------------- */
static updateWithTarget(rollData) {
let objectDefender
let target = PegasusUtility.getTarget();
if (target) {
let defenderActor = game.actors.get(target.data.actorId)
objectDefender = PegasusUtility.data(defenderActor)
objectDefender = mergeObject(objectDefender, target.data.actorData)
rollData.defender = objectDefender
rollData.attackerId = this.id
rollData.defenderId = objectDefender._id
defenderActor.addHindrancesList(rollData.effectsList)
}
}
/* -------------------------------------------- */
static createChatWithRollMode(name, chatOptions) {
this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions);

6
packs/currency.db Normal file
View File

@ -0,0 +1,6 @@
{"_id":"8M6RoT7gYUXDFP9L","name":"Dollars $","type":"money","img":"systems/fvtt-pegasus-rpg/images/icons/icon_money.webp","data":{"value":0,"quantity":1,"weight":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.oGkVk0cSNIo2ks99"}}}
{"_id":"FUZC2gxmU8o8FdCx","name":"Pounds £","type":"money","img":"systems/fvtt-pegasus-rpg/images/icons/icon_money.webp","data":{"value":0,"quantity":1,"weight":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.oGkVk0cSNIo2ks99"}}}
{"_id":"OC32xfxMIOQmnj6S","name":"Copper Pieces","type":"money","img":"systems/fvtt-pegasus-rpg/images/icons/icon_money.webp","data":{"value":0,"quantity":1,"weight":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.oGkVk0cSNIo2ks99"}}}
{"_id":"ROgdUZJmgLOg3hSI","name":"Silver Pieces","type":"money","img":"systems/fvtt-pegasus-rpg/images/icons/icon_money.webp","data":{"value":0,"quantity":1,"weight":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.oGkVk0cSNIo2ks99"}}}
{"_id":"oGkVk0cSNIo2ks99","name":"Gold Pieces","type":"money","img":"systems/fvtt-pegasus-rpg/images/icons/icon_money.webp","data":{"value":0,"quantity":1,"weight":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.oGkVk0cSNIo2ks99"}}}
{"_id":"wXMW7B28BM00ZJrj","name":"Credits","type":"money","img":"systems/fvtt-pegasus-rpg/images/icons/icon_money.webp","data":{"value":0,"quantity":1,"weight":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Item.oGkVk0cSNIo2ks99"}}}

View File

@ -1,18 +1,50 @@
{"_id":"1ncwbVD5I5KqsVNE","name":"Confusion","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":true,"recoveryrollstat":"foc","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":"25nV47vTuv89WFaG","name":"Acid","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"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":"2NLtpctx4ZVYTuqy","name":"Distraction","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
{"_id":"3Xxb1jrd8C9bRH0P","name":"Exhaustion","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"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":"5ZQr1t6ilt4LIOYS","name":"Disease","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"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":"ACgqb3T5NOrNIHGK","name":"Blindness","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":5,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"notapplicable","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":"EnHmhs0CKMNCN2QK","name":"Fear","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"mnd","recoveryroll":true,"recoveryrollstat":"mnd","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":"F5zA3QmaMjdogM2g","name":"Deafened","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":5,"reducedicevalue":false,"stataffected":"per","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":"H8A4cVuxURJFHevQ","name":"Prone","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"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":"ICQMiXnMpwcfTznZ","name":"Inspired","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","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":"KE1IfWHAJso5yO1L","name":"Staggered","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","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":"LhxkKXaCyFMlyrWE","name":"Shock","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"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":"Mk7XJ35jiA8isovl","name":"Bleeding","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":true,"recoveryrollstat":"notapplicable","recoveryrollspec":[{"_id":"7GGc9JTWgqeQX2u6","name":"First Aid [MND]","type":"specialisation","img":"systems/fvtt-pegasus-rpg/images/icons/icon_spec.webp","data":{"statistic":"mnd","level":1,"ispowergroup":false,"powersource":"","powers":[],"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":{}}],"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":"RzH5QvSanCmD8zT8","name":"Burning","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":true,"recoveryrollstat":"agi","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":"VPaLpl0dZTrQOfR3","name":"Grappled","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"notapplicable","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":"f8NQlR7GtXjtYMHb","name":"Slowed","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"mr","specaffected":[],"statdice":false,"bonusdice":false,"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":"uQZnpVL7l6xIIRg9","name":"Taunted","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"mnd","recoveryroll":true,"recoveryrollstat":"mnd","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":"notapplicable","specaffected":[],"statdice":false,"bonusdice":false,"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":"1ncwbVD5I5KqsVNE","name":"Confusion","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":true,"recoveryrollstat":"foc","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":"25nV47vTuv89WFaG","name":"Acid","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"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":"2NLtpctx4ZVYTuqy","name":"Distraction","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"all","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"notapplicable","recoveryroll":false,"recoveryrollstat":"","recoveryrollspec":[],"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{}}
{"_id":"3Xxb1jrd8C9bRH0P","name":"Exhaustion","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"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":"42jaDISJtNW7Neb0","name":"Disease STR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"str","specaffected":[],"statdice":false,"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":"5ZQr1t6ilt4LIOYS","name":"Disease ALL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"all","specaffected":[],"statdice":false,"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":"6FtiSK0eXsyqSJsO","name":"Hindrance Dice MND","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"mnd","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":"7qoDNK0oEeAR2EKh","name":"Bonus 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":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":"8Wk7tLk1HbGcKHng","name":"Bonus 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":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":"8dGYMGVY7elF2Vmo","name":"Bonus 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":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":"ACgqb3T5NOrNIHGK","name":"Blindness","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":5,"reducedicevalue":false,"stataffected":"all","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":"DuuFSrwBaJ5dIQhZ","name":"Hindrance Dice PER","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"per","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":"EnHmhs0CKMNCN2QK","name":"Fear","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"all","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":true,"resistedby":"mnd","recoveryroll":true,"recoveryrollstat":"mnd","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":"EosbwC0P1qJQhtGX","name":"Disease PHY","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"phy","specaffected":[],"statdice":false,"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":"F5zA3QmaMjdogM2g","name":"Deafened","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":5,"reducedicevalue":false,"stataffected":"special","specaffected":[{"_id":"giyLDiUIuVmtegy3","name":"Listen [PER]","type":"specialisation","img":"systems/fvtt-pegasus-rpg/images/icons/icon_spec.webp","data":{"statistic":"per","level":1,"ispowergroup":false,"powersource":"","powers":[],"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":{"core":{"sourceId":"Compendium.fvtt-pegasus-rpg.specialisations.bRcGg9LOg5RyRuf0"}}}],"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":"FC6Akm1UnnekfQdi","name":"Hindrance Dice FOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"foc","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":"H8A4cVuxURJFHevQ","name":"Prone","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"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":"HAse0ZvMjzBBbJfK","name":"Hindrance Dice DEF","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"def","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":"Hmf3hRqgBk8ggRri","name":"Disease PER","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"per","specaffected":[],"statdice":false,"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":"ICQMiXnMpwcfTznZ","name":"Inspired","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":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":"IrpZcvrUIMxGMw8y","name":"Bonus 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":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":"Iyd4eOFLMSwolBW6","name":"Disease FOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"foc","specaffected":[],"statdice":false,"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":"JCF1iYkI7jn65u6F","name":"Hindrance Dice COM","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"com","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":"KE1IfWHAJso5yO1L","name":"Staggered","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","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":"LhxkKXaCyFMlyrWE","name":"Shock","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"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":"LznTbFw2RBZ2AeBm","name":"Disease STL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"stl","specaffected":[],"statdice":false,"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":"Mk7XJ35jiA8isovl","name":"Bleeding","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"positive","effectlevel":1,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":true,"recoveryrollstat":"notapplicable","recoveryrollspec":[{"_id":"7GGc9JTWgqeQX2u6","name":"First Aid [MND]","type":"specialisation","img":"systems/fvtt-pegasus-rpg/images/icons/icon_spec.webp","data":{"statistic":"mnd","level":1,"ispowergroup":false,"powersource":"","powers":[],"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":{}}],"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":"ODkTL7nC0JSoB0Jg","name":"Disease SOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"soc","specaffected":[],"statdice":false,"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":"R1Zrm75eBzEZkrKx","name":"Bonus 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":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":"RvVB0hkVXMGaOgjE","name":"Hindrance Dice AGI","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"agi","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":"RzH5QvSanCmD8zT8","name":"Burning","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"notapplicable","recoveryroll":true,"recoveryrollstat":"agi","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":"U4V52kGOXvGmySYT","name":"Bonus 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":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":"VPaLpl0dZTrQOfR3","name":"Grappled","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":"notapplicable","recoveryroll":false,"recoveryrollstat":"notapplicable","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":"WMxnCQCo4Pwa87WN","name":"Bonus 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":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":"WRkDNeK2LYFnk4St","name":"Bonus 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":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":"YjkqzCOpm2ItZowA","name":"Hindrance Dice SOC","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"soc","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":"ZCysG6p7j6ChkB4I","name":"Disease AGI","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"agi","specaffected":[],"statdice":false,"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":"ZEyan7n07ewf42i9","name":"Hindrance Dice ALL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"all","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":"aHXGayFUrYJ2TvlZ","name":"Bonus 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":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":"bZzD4fGjvqybsDSq","name":"Disease DEF","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"def","specaffected":[],"statdice":false,"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":"dmmQUbWdYVLlDoN9","name":"Disease MND","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"mnd","specaffected":[],"statdice":false,"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":"f8NQlR7GtXjtYMHb","name":"Slowed","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"mr","specaffected":[],"statdice":false,"bonusdice":false,"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":"kQIaBaag7USrdDxP","name":"Hindrance Dice STL","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"stl","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":"ki4WjkgabwYKtoA8","name":"Hindrance Dice STR","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":1,"reducedicevalue":false,"stataffected":"str","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":"mX52jEGP6ycrNwgn","name":"Bonus 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":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":"uQZnpVL7l6xIIRg9","name":"Taunted","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"mental","genre":"negative","effectlevel":0,"reducedicevalue":false,"stataffected":"special","specaffected":[],"statdice":false,"bonusdice":false,"otherdice":false,"hindrance":false,"resistedby":"mnd","recoveryroll":true,"recoveryrollstat":"mnd","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":"ws6UmwTaVVTT4kh3","name":"Disease COM","type":"effect","img":"systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp","data":{"type":"physical","genre":"negative","effectlevel":1,"reducedicevalue":true,"stataffected":"com","specaffected":[],"statdice":false,"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":"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":"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":{}}

2
packs/macro-commands.db Normal file
View File

@ -0,0 +1,2 @@
{"name":"Character Creator","type":"chat","author":"iNL4aGohJ8v6YrUk","img":"icons/svg/dice-target.svg","scope":"global","command":"/char","folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Macro.gP0oh8bAbYMvx9hI"}},"_id":"FpBCH1fXTGocuaSC"}
{"name":"Dice Pool","type":"chat","author":"iNL4aGohJ8v6YrUk","img":"icons/svg/dice-target.svg","scope":"global","command":"/pool","folder":null,"sort":0,"permission":{"default":0,"iNL4aGohJ8v6YrUk":3},"flags":{"core":{"sourceId":"Macro.lHt7paRKAFMrM9Z0"}},"_id":"oRQzgYLHiNaEXPMM"}

View File

@ -670,6 +670,7 @@ ul, li {
margin-right: 4px;
margin-left: 4px;
}
.input-sante-header,
.stress-style {
flex-grow: 0;
@ -1148,7 +1149,6 @@ ul, li {
background-color: red;
}
.river-button:active,
.plus-minus-button:active,
.chat-card-button:active {
position:relative;

View File

@ -152,6 +152,26 @@
"tags": [
"weapon", "ranged"
]
},
{
"entity": "Item",
"label": "Currency",
"name": "currency",
"path": "./packs/currency.db",
"system": "fvtt-pegasus-rpg",
"tags": [
"currency", "money"
]
},
{
"entity": "Item",
"label": "Macros",
"name": "macro-commands",
"path": "./packs/macro-commands.db",
"system": "fvtt-pegasus-rpg",
"tags": [
"macro", "command"
]
}
],
"primaryTokenAttribute": "secondary.health",
@ -163,6 +183,6 @@
"templateVersion": 63,
"title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
"version": "0.1.16",
"version": "0.2.0",
"background" : "./images/ui/pegasus_welcome_page.webp"
}

View File

@ -1,40 +0,0 @@
{{#if specList}}
<div class="flexrow">
<span class="roll-dialog-label" >Specialisation : </span>
<select class="competence-base" id="specList" type="text" name="selectedSpec" value="{{selectedSpec}}" data-dtype="String">
{{#select selectedSpecIndex}}
<option value="0">None</option>
{{#each specList as |spec idx|}}
<option value="{{spec._id}}">{{spec.name}}</option>
{{/each}}
{{/select}}
</select>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label" >Bonus Dice : </span>
<select class="roll-dialog-label" id="bonusDicesLevel" type="text" name="bonusDicesLevel" value="{{bonusDicesLevel}}" data-dtype="Number">
{{#select bonusDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Target Hindrance Dice :</span>
<select class="roll-dialog-label" id="hindranceDicesLevel" type="text" name="hindranceDicesLevel" value="{{hindranceDicesLevel}}" data-dtype="Number">
{{#select hindranceDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Other Dice :</span>
<select class="roll-dialog-label" id="otherDicesLevel" type="text" name="otherDicesLevel" value="{{otherDicesLevel}}" data-dtype="Number">
{{#select otherDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
</div>

View File

@ -0,0 +1,41 @@
<ul>
{{#each effectsList as |effect idx|}}
{{#if (eq @root.statKey effect.effect.data.stataffected)}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
{{#if effect.effect}}
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
{{#if effect.effect.data.hindrance}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
<label class="generic-label">Target Hindrance : {{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
</li>
{{/if}}
{{#if (eq type "hindrance")}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
<label class="generic-label">Target Hindrance : {{effect.label}} ({{effect.value}})</label>
</li>
{{/if}}
{{/each}}
</ul>
<ul>
{{#each armorsList as |armor idx|}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="armor-clicked" id="armor-{{idx}}" data-armor-idx="{{idx}}" {{checked armor.applied}}/></label>
<label class="generic-label padd-right">{{armor.label}} ({{armor.value}})</label>
</li>
{{/each}}
</ul>

View File

@ -6,27 +6,81 @@
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="floxrow">
<div class="grid grid-2col">
<div class="flexcol">
<div class="flexrow">
<span class="roll-dialog-label" >Stat Dice : </span>
<select class="competence-base" id="statDicesLevel" type="text" name="statDicesLevel" value="{{statDicesLevel}}" data-dtype="Number">
<select class="roll-dialog-label" id="statDicesLevel" type="text" name="statDicesLevel" value="{{statDicesLevel}}" data-dtype="Number"
{{#if statKey}}disabled{{/if}}>
{{#select statDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
<span class="small-label">&nbsp;+&nbsp;{{statMod}}</span>
</div>
{{#if specList}}
<div class="flexrow">
<span class="roll-dialog-label" >Specialisation : </span>
<select class="competence-base" id="specList" type="text" name="selectedSpec" value="{{selectedSpec}}" data-dtype="String">
{{#select selectedSpecIndex}}
<option value="0">None</option>
{{#each specList as |spec idx|}}
<option value="{{spec._id}}">{{spec.name}}</option>
{{/each}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label" >Spec Dice : </span>
<select class="competence-base" id="specDicesLevel" type="text" name="specDicesLevel" value="{{specDicesLevel}}" data-dtype="Number">
<select class="roll-dialog-label" id="specDicesLevel" type="text" name="specDicesLevel" value="{{specDicesLevel}}" data-dtype="Number"
{{#if specList}}disabled{{/if}}>
{{#select specDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html}}
<div class="flexrow">
<span class="roll-dialog-label" >Bonus Dice : </span>
<select class="roll-dialog-label" id="bonusDicesLevel" type="text" name="bonusDicesLevel" value="{{bonusDicesLevel}}" data-dtype="Number">
{{#select bonusDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Hindrance Dice :</span>
<select class="roll-dialog-label" id="hindranceDicesLevel" type="text" name="hindranceDicesLevel" value="{{hindranceDicesLevel}}" data-dtype="Number">
{{#select hindranceDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >Other Dice :</span>
<select class="roll-dialog-label" id="otherDicesLevel" type="text" name="otherDicesLevel" value="{{otherDicesLevel}}" data-dtype="Number">
{{#select otherDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>

View File

@ -4,11 +4,14 @@
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="grid grid-2col">
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label" >{{stat.label}} : {{stat.dice}} (+{{stat.mod}})</span>
<span class="roll-dialog-label" >{{stat.label}} : <span id="stat-dice">{{stat.dice}}</span> (+{{stat.mod}})</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >{{spec.name}} : {{spec.data.dice}}</span>
</div>
@ -17,4 +20,10 @@
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>
</form>

View File

@ -4,14 +4,21 @@
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="grid grid-2col">
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label" >{{stat.label}} : {{stat.dice}} (+{{stat.mod}})</span>
<span class="roll-dialog-label">{{stat.label}} : <span id="stat-dice">{{stat.dice}}</span> (+{{stat.mod}})</span>
</div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html}}
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>
</form>

View File

@ -4,14 +4,22 @@
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="grid grid-2col">
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label" >{{stat.label}} : {{stat.dice}} (+{{stat.mod}})</span>
<span class="roll-dialog-label">{{stat.label}} : <span id="stat-dice">{{stat.dice}}</span> (+{{stat.mod}})</span>
</div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html}}
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>
</form>