Chore : Refactored and relocated Vite environment type declarations.
- Renamed and moved vite.env.d.ts to vite-env.d.ts within the src directory. - Converted import.meta.env variables to the appropriate types as necessary.pull/420/head
parent
4527c8bc9b
commit
9831588772
|
|
@ -62,7 +62,7 @@ import { Variant, variantData } from './data/variant';
|
||||||
import { Localizable } from './plugins/i18n';
|
import { Localizable } from './plugins/i18n';
|
||||||
import { STARTING_WAVE_OVERRIDE, OPP_SPECIES_OVERRIDE, SEED_OVERRIDE, STARTING_BIOME_OVERRIDE } from './overrides';
|
import { STARTING_WAVE_OVERRIDE, OPP_SPECIES_OVERRIDE, SEED_OVERRIDE, STARTING_BIOME_OVERRIDE } from './overrides';
|
||||||
|
|
||||||
export const bypassLogin = import.meta.env.VITE_BYPASS_LOGIN === "1";
|
export const bypassLogin = Boolean(import.meta.env.VITE_BYPASS_LOGIN);
|
||||||
|
|
||||||
const DEBUG_RNG = false;
|
const DEBUG_RNG = false;
|
||||||
|
|
||||||
|
|
@ -112,7 +112,7 @@ export default class BattleScene extends SceneBase {
|
||||||
public gameSpeed: integer = 1;
|
public gameSpeed: integer = 1;
|
||||||
public damageNumbersMode: integer = 0;
|
public damageNumbersMode: integer = 0;
|
||||||
public showLevelUpStats: boolean = true;
|
public showLevelUpStats: boolean = true;
|
||||||
public enableTutorials: boolean = import.meta.env.VITE_BYPASS_TUTORIAL === "1";
|
public enableTutorials: boolean = Boolean(import.meta.env.VITE_BYPASS_TUTORIAL);
|
||||||
public enableRetries: boolean = false;
|
public enableRetries: boolean = false;
|
||||||
public uiTheme: UiTheme = UiTheme.DEFAULT;
|
public uiTheme: UiTheme = UiTheme.DEFAULT;
|
||||||
public windowType: integer = 0;
|
public windowType: integer = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue