Rebalance item weights and add Rogue tier

This commit is contained in:
Flashfyre committed 2024-02-28 23:13:05 -05:00
1 parent ce64eb6c70
commit ffd785d534
22 files changed
+1518 -1360

No files matched your search

+10 -10
View File
@@ -1,9 +1,9 @@
import { ModifierTier } from "../modifier/modifier-tier";
import { Type } from "./type";
import * as Utils from "../utils";
import BattleScene from "../battle-scene";
import { Species } from "./enums/species";
import { getPokemonSpecies, speciesStarters } from "./pokemon-species";
import { EggTier } from "./enums/egg-type";
export const EGG_SEED = 1073741824;
@@ -15,7 +15,7 @@ export enum GachaType {
export class Egg {
public id: integer;
public tier: ModifierTier;
public tier: EggTier;
public gachaType: GachaType;
public hatchWaves: integer;
public timestamp: integer;
@@ -29,7 +29,7 @@ export class Egg {
}
isManaphyEgg(): boolean {
return this.tier === ModifierTier.COMMON && !(this.id % 255);
return this.tier === EggTier.COMMON && !(this.id % 255);
}
getKey(): string {
@@ -39,13 +39,13 @@ export class Egg {
}
}
export function getEggTierDefaultHatchWaves(tier: ModifierTier): integer {
export function getEggTierDefaultHatchWaves(tier: EggTier): integer {
switch (tier) {
case ModifierTier.COMMON:
case EggTier.COMMON:
return 10;
case ModifierTier.GREAT:
case EggTier.GREAT:
return 25;
case ModifierTier.ULTRA:
case EggTier.ULTRA:
return 50;
}
return 100;
@@ -55,11 +55,11 @@ export function getEggDescriptor(egg: Egg): string {
if (egg.isManaphyEgg())
return 'Manaphy';
switch (egg.tier) {
case ModifierTier.GREAT:
case EggTier.GREAT:
return 'Rare';
case ModifierTier.ULTRA:
case EggTier.ULTRA:
return 'Epic';
case ModifierTier.MASTER:
case EggTier.MASTER:
return 'Legendary';
default:
return 'Common';
+6
View File
@@ -0,0 +1,6 @@
export enum EggTier {
COMMON,
GREAT,
ULTRA,
MASTER
}
+10
View File
@@ -4,6 +4,7 @@ export enum PokeballType {
POKEBALL,
GREAT_BALL,
ULTRA_BALL,
ROGUE_BALL,
MASTER_BALL,
LUXURY_BALL
};
@@ -16,6 +17,8 @@ export function getPokeballAtlasKey(type: PokeballType): string {
return 'gb';
case PokeballType.ULTRA_BALL:
return 'ub';
case PokeballType.ROGUE_BALL:
return 'rb';
case PokeballType.MASTER_BALL:
return 'mb';
case PokeballType.LUXURY_BALL:
@@ -35,6 +38,9 @@ export function getPokeballName(type: PokeballType): string {
case PokeballType.ULTRA_BALL:
ret = 'Ultra Ball';
break;
case PokeballType.ROGUE_BALL:
ret = 'Rogue Ball';
break;
case PokeballType.MASTER_BALL:
ret = 'Master Ball';
break;
@@ -53,6 +59,8 @@ export function getPokeballCatchMultiplier(type: PokeballType): number {
return 1.5;
case PokeballType.ULTRA_BALL:
return 2;
case PokeballType.ROGUE_BALL:
return 3;
case PokeballType.MASTER_BALL:
return -1;
case PokeballType.LUXURY_BALL:
@@ -68,6 +76,8 @@ export function getPokeballTintColor(type: PokeballType): number {
return 0x94b4de;
case PokeballType.ULTRA_BALL:
return 0xe6cd31;
case PokeballType.ROGUE_BALL:
return 0xd52929;
case PokeballType.MASTER_BALL:
return 0xa441bd;
case PokeballType.LUXURY_BALL: