Compare commits
2 Commits
fvtt-pegas
...
fvtt-pegas
Author | SHA1 | Date | |
---|---|---|---|
502887a820 | |||
b5755db5ca |
@ -354,13 +354,13 @@ export class PegasusActorSheet extends ActorSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/** @override */
|
/** @override */
|
||||||
setPosition(options = {}) {
|
/*setPosition(options = {}) {
|
||||||
const position = super.setPosition(options);
|
const position = super.setPosition(options);
|
||||||
const sheetBody = this.element.find(".sheet-body");
|
const sheetBody = this.element.find(".sheet-body");
|
||||||
const bodyHeight = position.height - 192;
|
const bodyHeight = position.height - 192;
|
||||||
sheetBody.css("height", bodyHeight);
|
sheetBody.css("height", bodyHeight);
|
||||||
return position;
|
return position;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _onDropItem(event, dragData) {
|
async _onDropItem(event, dragData) {
|
||||||
|
@ -146,6 +146,9 @@ export class PegasusActor extends Actor {
|
|||||||
modifier -= effect.system.effectlevel
|
modifier -= effect.system.effectlevel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (effect.type == "ability" && effect.system.statusaffected && effect.system.statusaffected == "mt") {
|
||||||
|
modifier += effect.system.statusmodifier
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.statistics.mnd.bonuseffect) + modifier
|
return PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.statistics.mnd.bonuseffect) + modifier
|
||||||
}
|
}
|
||||||
@ -162,6 +165,9 @@ export class PegasusActor extends Actor {
|
|||||||
modifier -= effect.system.effectlevel
|
modifier -= effect.system.effectlevel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (effect.type == "ability" && effect.system.statusaffected && effect.system.statusaffected == "kbv") {
|
||||||
|
modifier += effect.system.statusmodifier
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this.system.statistics.phy.value + this.system.statistics.phy.mod + this.system.statistics.phy.bonuseffect + modifier
|
return this.system.statistics.phy.value + this.system.statistics.phy.mod + this.system.statistics.phy.bonuseffect + modifier
|
||||||
}
|
}
|
||||||
@ -1595,7 +1601,6 @@ export class PegasusActor extends Actor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Ablities", this.name, abilities)
|
|
||||||
let nrg = duplicate(this.system.nrg)
|
let nrg = duplicate(this.system.nrg)
|
||||||
let bonus = 0
|
let bonus = 0
|
||||||
for (let effect of effects) {
|
for (let effect of effects) {
|
||||||
@ -1726,6 +1731,16 @@ export class PegasusActor extends Actor {
|
|||||||
delirium.bonus += Number(ability.system.statusmodifier)
|
delirium.bonus += Number(ability.system.statusmodifier)
|
||||||
updates[`system.secondary.delirium`] = delirium
|
updates[`system.secondary.delirium`] = delirium
|
||||||
}
|
}
|
||||||
|
if (ability.system.statusaffected == 'socialhealth') {
|
||||||
|
let socialhealth = duplicate(this.system.secondary.socialhealth)
|
||||||
|
socialhealth.bonus += Number(ability.system.statusmodifier)
|
||||||
|
updates[`system.secondary.socialhealth`] = delirium
|
||||||
|
}
|
||||||
|
if (ability.system.statusaffected == 'stealthhealth') {
|
||||||
|
let stealthhealth = duplicate(this.system.secondary.stealthhealth)
|
||||||
|
stealthhealth.bonus += Number(ability.system.statusmodifier)
|
||||||
|
updates[`system.secondary.stealthhealth`] = delirium
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (directUpdate) {
|
if (directUpdate) {
|
||||||
await this.update(updates)
|
await this.update(updates)
|
||||||
|
@ -60,7 +60,6 @@ export class PegasusItemSheet extends ItemSheet {
|
|||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
optionsDiceList: PegasusUtility.getOptionsDiceList(),
|
optionsDiceList: PegasusUtility.getOptionsDiceList(),
|
||||||
optionsStatusList: PegasusUtility.getOptionsStatusList(),
|
|
||||||
data: itemData.system,
|
data: itemData.system,
|
||||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
|
@ -369,14 +369,9 @@ export class PegasusUtility {
|
|||||||
this.optionsDiceList = optionsDiceList;
|
this.optionsDiceList = optionsDiceList;
|
||||||
this.optionsLevel = optionsLevel;
|
this.optionsLevel = optionsLevel;
|
||||||
|
|
||||||
this.optionsStatusList = '<option value="notapplicable">Not applicable</option><option value="health">Health</option><option value="nrg">NRG</option><option value="delirium">Delirium</option>';
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getOptionsStatusList() {
|
|
||||||
return this.optionsStatusList;
|
|
||||||
}
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static getOptionsDiceList() {
|
static getOptionsDiceList() {
|
||||||
return this.optionsDiceList;
|
return this.optionsDiceList;
|
||||||
|
@ -253,7 +253,7 @@
|
|||||||
],
|
],
|
||||||
"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": "10.2.4",
|
"version": "10.2.5",
|
||||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.2.4.zip",
|
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.2.5.zip",
|
||||||
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
|
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
|
||||||
}
|
}
|
@ -29,7 +29,14 @@
|
|||||||
<li class="flexrow"><label class="generic-label">Affected status</label>
|
<li class="flexrow"><label class="generic-label">Affected status</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.statusaffected" value="{{data.statusaffected}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.statusaffected" value="{{data.statusaffected}}" data-dtype="String">
|
||||||
{{#select data.statusaffected}}
|
{{#select data.statusaffected}}
|
||||||
{{{optionsStatusList}}}
|
<option value="notapplicable">Not Applicable</option>
|
||||||
|
<option value="health">Health</option>
|
||||||
|
<option value="delirium">Delirium</option>
|
||||||
|
<option value="socialhealth">Social Health</option>
|
||||||
|
<option value="stealthhealth">Stealth Health</option>
|
||||||
|
<option value="nrg">NRG</option>
|
||||||
|
<option value="mt">MT</option>
|
||||||
|
<option value="kbv">KBV</option>
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
Reference in New Issue
Block a user