Improved how effects on calculated fields are displayed

This commit is contained in:
ThaumRystra
2024-10-29 16:47:55 +02:00
parent b90cc2e467
commit 681d1e5739
5 changed files with 55 additions and 36 deletions

View File

@@ -46,12 +46,11 @@ export default {
return true;
},
displayedValue() {
let value = this.model.value;
// Use the base value instead if the calculation has it, because effects can modify the value
if (this.model.baseValue !== undefined) {
value = this.model.baseValue;
// Use the unaffected value instead if the calculation has it, because effects can modify the value
if (this.model.unaffected !== undefined) {
return this.model.unaffected;
}
return value;
return this.model.value;
},
errorList(){
if (this.model.parseError){