diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js
index d46e81c..391b5f6 100644
--- a/modules/pegasus-actor.js
+++ b/modules/pegasus-actor.js
@@ -136,11 +136,34 @@ export class PegasusActor extends Actor {
}
/* -------------------------------------------- */
getMT() {
- return PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.statistics.mnd.bonuseffect)
+ let modifier = 0
+ for(let effect of this.items) {
+ if (effect.type =="effect" && effect.system.affectstatus && effect.system.affectedstatus =="mt") {
+ if ( effect.system.genre == "positive") {
+ modifier += effect.system.effectlevel
+ }
+ if ( effect.system.genre == "negative") {
+ modifier -= effect.system.effectlevel
+ }
+ }
+ }
+ return PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.statistics.mnd.bonuseffect) + modifier
}
+
/* -------------------------------------------- */
getKBV() {
- return this.system.statistics.phy.value + this.system.statistics.phy.mod + this.system.statistics.phy.bonuseffect
+ let modifier = 0
+ for(let effect of this.items) {
+ if (effect.type =="effect" && effect.system.affectstatus && effect.system.affectedstatus == "kbv") {
+ if ( effect.system.genre == "positive") {
+ modifier += effect.system.effectlevel
+ }
+ if ( effect.system.genre == "negative") {
+ modifier -= effect.system.effectlevel
+ }
+ }
+ }
+ return this.system.statistics.phy.value + this.system.statistics.phy.mod + this.system.statistics.phy.bonuseffect + modifier
}
/* -------------------------------------------- */
getEncumbranceCapacity() {
diff --git a/system.json b/system.json
index dffa998..b9dcdda 100644
--- a/system.json
+++ b/system.json
@@ -253,7 +253,7 @@
],
"title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
- "version": "10.2.2",
- "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.2.2.zip",
+ "version": "10.2.3",
+ "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.2.3.zip",
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
}
\ No newline at end of file
diff --git a/templates/item-effect-sheet.html b/templates/item-effect-sheet.html
index b236042..c0deaa0 100644
--- a/templates/item-effect-sheet.html
+++ b/templates/item-effect-sheet.html
@@ -101,6 +101,8 @@
+
+
{{/select}}