ds4/src/documents/item/talent/talent.js

19 lines
429 B
JavaScript
Raw Normal View History

// SPDX-FileCopyrightText: 2022 Johannes Loher
//
// SPDX-License-Identifier: MIT
import { DS4Item } from "../item";
export class DS4Talent extends DS4Item {
/** @override */
prepareDerivedData() {
super.prepareDerivedData();
2022-11-21 03:00:46 +01:00
this.system.rank.total = this.system.rank.base + this.system.rank.mod;
}
/** @override */
get activeEffectFactor() {
2022-11-21 03:00:46 +01:00
return this.system.rank.total;
}
}