Various Error Fixes (#1580)
* Add @types/node to the package lock to resolve node_module errors Devs will need to run npm install --save-dev @types/node on their end as well * Final Various Fixes
This commit is contained in:
parent
8e157edce9
commit
700ccf3afc
|
@ -129,6 +129,7 @@ export default class BattleScene extends SceneBase {
|
|||
public fusionPaletteSwaps: boolean = true;
|
||||
public enableTouchControls: boolean = false;
|
||||
public enableVibration: boolean = false;
|
||||
public gamepadSupport: boolean = false;
|
||||
public abSwapped: boolean = false;
|
||||
|
||||
public disableMenu: boolean = false;
|
||||
|
@ -300,7 +301,7 @@ export default class BattleScene extends SceneBase {
|
|||
|
||||
this.fieldUI = fieldUI;
|
||||
|
||||
const transition = this.make.rexTransitionImagePack({
|
||||
const transition = (this.make as any).rexTransitionImagePack({
|
||||
x: 0,
|
||||
y: 0,
|
||||
scale: 6,
|
||||
|
|
|
@ -566,7 +566,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
|||
catchRate: integer, baseFriendship: integer, baseExp: integer, growthRate: GrowthRate, malePercent: number,
|
||||
genderDiffs: boolean, canChangeForm?: boolean, ...forms: PokemonForm[]) {
|
||||
super(type1, type2, height, weight, ability1, ability2, abilityHidden, baseTotal, baseHp, baseAtk, baseDef, baseSpatk, baseSpdef, baseSpd,
|
||||
catchRate, baseFriendship, baseExp, genderDiffs);
|
||||
catchRate, baseFriendship, baseExp, genderDiffs, false);
|
||||
this.speciesId = id;
|
||||
this.formIndex = 0;
|
||||
this.generation = generation;
|
||||
|
|
|
@ -691,7 +691,7 @@ export class TrainerConfig {
|
|||
initI18n();
|
||||
}
|
||||
// Check if the female version exists in the i18n file
|
||||
if (i18next.exists(`trainerClasses:${this.name.toLowerCase().replace()}`)) {
|
||||
if (i18next.exists(`trainerClasses:${this.name.toLowerCase()}`)) {
|
||||
// If it does, return
|
||||
return ret + "_female";
|
||||
} else {
|
||||
|
|
|
@ -421,7 +421,7 @@ export default class Trainer extends Phaser.GameObjects.Container {
|
|||
this.scene.arena.findTagsOnSide(t => t instanceof ArenaTrapTag, ArenaTagSide.ENEMY).map(t => score *= (t as ArenaTrapTag).getMatchupScoreMultiplier(p));
|
||||
}
|
||||
return [party.indexOf(p), score];
|
||||
});
|
||||
}) as [integer, integer][];
|
||||
|
||||
return partyMemberScores;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ export default class AbilityBar extends Phaser.GameObjects.Container {
|
|||
private abilityNameText: Phaser.GameObjects.Text;
|
||||
|
||||
private tween: Phaser.Tweens.Tween;
|
||||
private autoHideTimer: number;
|
||||
private autoHideTimer: NodeJS.Timeout;
|
||||
|
||||
public shown: boolean;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ export default class CandyBar extends Phaser.GameObjects.Container {
|
|||
private speciesId: Species;
|
||||
|
||||
private tween: Phaser.Tweens.Tween;
|
||||
private autoHideTimer: number;
|
||||
private autoHideTimer: NodeJS.Timeout;
|
||||
|
||||
public shown: boolean;
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ export function addTextInputObject(scene: Phaser.Scene, x: number, y: number, wi
|
|||
return ret;
|
||||
}
|
||||
|
||||
function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptions?: Phaser.Types.GameObjects.Text.TextStyle): [ Phaser.Types.GameObjects.Text.TextStyle | InputText.IConfig, string, integer ] {
|
||||
function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptions?: Phaser.Types.GameObjects.Text.TextStyle): [ Phaser.Types.GameObjects.Text.TextStyle | InputText.IConfig, string, number, number ] {
|
||||
const lang = i18next.language;
|
||||
let shadowXpos = 4;
|
||||
let shadowYpos = 5;
|
||||
|
|
|
@ -14,7 +14,7 @@ export default class TitleUiHandler extends OptionSelectUiHandler {
|
|||
private splashMessage: string;
|
||||
private splashMessageText: Phaser.GameObjects.Text;
|
||||
|
||||
private titleStatsTimer: number;
|
||||
private titleStatsTimer: NodeJS.Timeout;
|
||||
|
||||
constructor(scene: BattleScene, mode: Mode = Mode.TITLE) {
|
||||
super(scene, mode);
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Mode } from "./ui";
|
|||
import { updateUserInfo } from "#app/account";
|
||||
|
||||
export default class UnavailableModalUiHandler extends ModalUiHandler {
|
||||
private reconnectTimer: number;
|
||||
private reconnectTimer: NodeJS.Timeout;
|
||||
private reconnectDuration: number;
|
||||
private reconnectCallback: () => void;
|
||||
|
||||
|
|
Loading…
Reference in New Issue