2022-02-17 00:17:59 +01:00
|
|
|
// SPDX-FileCopyrightText: 2022 Johannes Loher
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
import { DS4Item } from "../item";
|
|
|
|
|
|
|
|
export class DS4Talent extends DS4Item {
|
2022-11-17 00:12:29 +01:00
|
|
|
/** @override */
|
|
|
|
prepareDerivedData() {
|
2022-02-17 00:17:59 +01:00
|
|
|
super.prepareDerivedData();
|
|
|
|
const data = this.data.data;
|
|
|
|
data.rank.total = data.rank.base + data.rank.mod;
|
|
|
|
}
|
|
|
|
|
2022-11-17 00:12:29 +01:00
|
|
|
/** @override */
|
|
|
|
get activeEffectFactor() {
|
2022-02-17 00:17:59 +01:00
|
|
|
return this.data.data.rank.total;
|
|
|
|
}
|
|
|
|
}
|