refactor: use noImplicitOverride option

This commit is contained in:
Johannes Loher 2022-05-29 17:47:27 +02:00
parent c9a3818571
commit 12bc76ba54
18 changed files with 45 additions and 85 deletions

View file

@ -25,8 +25,7 @@ declare global {
* The Actor class for DS4
*/
export class DS4Actor extends Actor {
/** @override */
prepareData(): void {
override prepareData(): void {
this.data.reset();
this.prepareBaseData();
this.prepareEmbeddedDocuments();
@ -36,8 +35,7 @@ export class DS4Actor extends Actor {
this.prepareFinalDerivedData();
}
/** @override */
prepareBaseData(): void {
override prepareBaseData(): void {
const data = this.data;
data.data.rolling = {
@ -57,11 +55,10 @@ export class DS4Actor extends Actor {
}
/**
* @override
* We override this with an empty implementation because we have our own custom way of applying
* {@link ActiveEffect}s and {@link Actor#prepareEmbeddedDocuments} calls this.
*/
applyActiveEffects(): void {
override applyActiveEffects(): void {
return;
}
@ -117,9 +114,8 @@ export class DS4Actor extends Actor {
/**
* Apply transformations to the Actor data after effects have been applied to the base data.
* @override
*/
prepareDerivedData(): void {
override prepareDerivedData(): void {
this.prepareCombatValues();
this.prepareChecks();
}
@ -281,9 +277,8 @@ export class DS4Actor extends Actor {
/**
* Handle how changes to a Token attribute bar are applied to the Actor.
* This only differs from the base implementation by also allowing negative values.
* @override
*/
async modifyTokenAttribute(
override async modifyTokenAttribute(
attribute: string,
value: number,
isDelta = false,