Skip to content

Commit

Permalink
fix: update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin9257 committed Sep 25, 2024
1 parent 394b3f2 commit 8f57c05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/module/entities/TwodsixActiveEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class TwodsixActiveEffect extends ActiveEffect {
* @param {object} options Additional options which modify the creation request
* @param {string} userId The id of the User requesting the document update
* @see {Document#_onCreate}
* @protected
* @override
*/
async _onCreate(data: object, options: object, userId: string): void {
await super._onCreate(data, options, userId);
Expand All @@ -49,9 +49,9 @@ export class TwodsixActiveEffect extends ActiveEffect {
* @param {object} options Additional options which modify the update request
* @param {string} userId The id of the User requesting the document update
* @see {Document#_onUpdate}
* @protected
* @override
*/
async _onUpdate(changed, options, userId) {
async _onUpdate(changed: object, options: object, userId: string) {
await super._onUpdate(changed, options, userId);
if(game.userId === userId && this.parent?.type === 'traveller') {
await checkEncumbranceStatus(this);
Expand All @@ -64,7 +64,7 @@ export class TwodsixActiveEffect extends ActiveEffect {
* @param {object} options Additional options which modify the deletion request
* @param {string} userId The id of the User requesting the document update
* @see {Document#_onDelete}
* @protected
* @override
*/
async _onDelete(options: object, userId: string): void {
await super._onDelete(options, userId);
Expand All @@ -74,6 +74,7 @@ export class TwodsixActiveEffect extends ActiveEffect {

}
}

/**
* Calls applyEncumberedEffect if active effect could change encumbered status
* @param {TwodsixActiveEffect} activeEffect The active effect being changed
Expand Down

0 comments on commit 8f57c05

Please sign in to comment.