mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 00:06:18 +00:00
[Dev] Remove variant-tiers.ts
Enum (#3746)
* remove varianttiers * Thanks GitHub * Update import in `overrides.ts` --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
This commit is contained in:
parent
6030b780f2
commit
0567d4b5e2
@ -1,6 +1,6 @@
|
||||
import BattleScene from "../battle-scene";
|
||||
import PokemonSpecies, { getPokemonSpecies, speciesStarters } from "./pokemon-species";
|
||||
import { VariantTier } from "../enums/variant-tiers";
|
||||
import { VariantTier } from "../enums/variant-tier";
|
||||
import * as Utils from "../utils";
|
||||
import Overrides from "#app/overrides";
|
||||
import { pokemonPrevolutions } from "./pokemon-evolutions";
|
||||
@ -178,7 +178,7 @@ export class Egg {
|
||||
// be done because species with no variants get filtered at rollSpecies but if the
|
||||
// species is set via options or the legendary gacha pokemon gets choosen the check never happens
|
||||
if (this._species && !getPokemonSpecies(this._species).hasVariants()) {
|
||||
this._variantTier = VariantTier.COMMON;
|
||||
this._variantTier = VariantTier.STANDARD;
|
||||
}
|
||||
// Needs this._tier so it needs to be generated afer the tier override if bought from same species
|
||||
this._eggMoveIndex = eggOptions?.eggMoveIndex ?? this.rollEggMoveIndex();
|
||||
@ -494,12 +494,12 @@ export class Egg {
|
||||
// place but I don't want to touch the pokemon class.
|
||||
private rollVariant(): VariantTier {
|
||||
if (!this.isShiny) {
|
||||
return VariantTier.COMMON;
|
||||
return VariantTier.STANDARD;
|
||||
}
|
||||
|
||||
const rand = Utils.randSeedInt(10);
|
||||
if (rand >= 4) {
|
||||
return VariantTier.COMMON; // 6/10
|
||||
return VariantTier.STANDARD; // 6/10
|
||||
} else if (rand >= 1) {
|
||||
return VariantTier.RARE; // 3/10
|
||||
} else {
|
||||
|
@ -1,5 +0,0 @@
|
||||
export enum VariantTier {
|
||||
COMMON,
|
||||
RARE,
|
||||
EPIC
|
||||
}
|
@ -6,7 +6,7 @@ import { PokeballType } from "#enums/pokeball";
|
||||
import { Species } from "#enums/species";
|
||||
import { StatusEffect } from "#enums/status-effect";
|
||||
import { TimeOfDay } from "#enums/time-of-day";
|
||||
import { VariantTier } from "#enums/variant-tiers";
|
||||
import { VariantTier } from "#enums/variant-tier";
|
||||
import { WeatherType } from "#enums/weather-type";
|
||||
import { type PokeballCounts } from "./battle-scene";
|
||||
import { Gender } from "./data/gender";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { EggTier } from "#enums/egg-type";
|
||||
import { Species } from "#enums/species";
|
||||
import { VariantTier } from "#enums/variant-tiers";
|
||||
import { VariantTier } from "#enums/variant-tier";
|
||||
import { EGG_SEED, Egg } from "../data/egg";
|
||||
import { EggSourceType } from "#app/enums/egg-source-types";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Egg, getLegendaryGachaSpeciesForTimestamp } from "#app/data/egg";
|
||||
import { EggSourceType } from "#app/enums/egg-source-types";
|
||||
import { EggTier } from "#app/enums/egg-type";
|
||||
import { VariantTier } from "#app/enums/variant-tiers";
|
||||
import { VariantTier } from "#app/enums/variant-tier";
|
||||
import EggData from "#app/system/egg-data";
|
||||
import * as Utils from "#app/utils";
|
||||
import { Species } from "#enums/species";
|
||||
@ -136,9 +136,9 @@ describe("Egg Generation Tests", () => {
|
||||
|
||||
expect(result).toBe(expectedResult);
|
||||
});
|
||||
it("should return a shiny common variant", () => {
|
||||
it("should return a shiny standard variant", () => {
|
||||
const scene = game.scene;
|
||||
const expectedVariantTier = VariantTier.COMMON;
|
||||
const expectedVariantTier = VariantTier.STANDARD;
|
||||
|
||||
const result = new Egg({ scene, isShiny: true, variantTier: expectedVariantTier, species: Species.BULBASAUR }).generatePlayerPokemon(scene).variant;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user