From aebca1c424400f686c28892942f9635cdf1eb677 Mon Sep 17 00:00:00 2001 From: Laeticia PIERRE Date: Wed, 8 May 2024 22:43:51 +0200 Subject: [PATCH] Add underscore prefix on unused args --- src/battle.ts | 2 +- src/inputs-controller.ts | 4 ++-- src/system/game-data.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/battle.ts b/src/battle.ts index 01611ba6d67..0ee52501289 100644 --- a/src/battle.ts +++ b/src/battle.ts @@ -130,7 +130,7 @@ export default class Battle { return this.double ? 2 : 1; } - incrementTurn(scene: BattleScene): void { + incrementTurn(_scene: BattleScene): void { this.turn++; this.turnCommands = Object.fromEntries(Utils.getEnumValues(BattlerIndex).map(bt => [ bt, null ])); this.battleSeedState = null; diff --git a/src/inputs-controller.ts b/src/inputs-controller.ts index 5f561535855..323b0db89a0 100644 --- a/src/inputs-controller.ts +++ b/src/inputs-controller.ts @@ -142,7 +142,7 @@ export class InputsController { return gamepadMapping; } - gamepadButtonDown(pad: Phaser.Input.Gamepad.Gamepad, button: Phaser.Input.Gamepad.Button, value: number): void { + gamepadButtonDown(_pad: Phaser.Input.Gamepad.Gamepad, button: Phaser.Input.Gamepad.Button, _value: number): void { if (!this.scene.gamepadSupport) return; const actionMapping = this.getActionGamepadMapping(); const buttonDown = actionMapping.hasOwnProperty(button.index) && actionMapping[button.index]; @@ -155,7 +155,7 @@ export class InputsController { } } - gamepadButtonUp(pad: Phaser.Input.Gamepad.Gamepad, button: Phaser.Input.Gamepad.Button, value: number): void { + gamepadButtonUp(_pad: Phaser.Input.Gamepad.Gamepad, button: Phaser.Input.Gamepad.Button, _value: number): void { if (!this.scene.gamepadSupport) return; const actionMapping = this.getActionGamepadMapping(); const buttonUp = actionMapping.hasOwnProperty(button.index) && actionMapping[button.index]; diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 8db9baf5f42..374e5b49e96 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -1189,7 +1189,7 @@ export class GameData { return ret; } - getSpeciesDexAttrProps(species: PokemonSpecies, dexAttr: bigint): DexAttrProps { + getSpeciesDexAttrProps(_species: PokemonSpecies, dexAttr: bigint): DexAttrProps { const shiny = !(dexAttr & DexAttr.NON_SHINY); const female = !(dexAttr & DexAttr.MALE); const variant = dexAttr & DexAttr.DEFAULT_VARIANT ? 0 : dexAttr & DexAttr.VARIANT_2 ? 1 : dexAttr & DexAttr.VARIANT_3 ? 2 : 0;