Add egg logic and hatching screen (WiP) and end biome arena BG

This commit is contained in:
Flashfyre committed 2023-12-15 23:07:32 -05:00
1 parent f4ad9546c0
commit 71fdafe8fb
31 files changed
+2204 -15

No files matched your search

+1 -1
View File
@@ -1561,7 +1561,7 @@ export function initAbilities() {
new Ability(Abilities.SAND_STREAM, "Sand Stream", "The Pokémon summons a sandstorm when it enters a battle.", 3)
.attr(PostSummonWeatherChangeAbAttr, WeatherType.SANDSTORM),
new Ability(Abilities.PRESSURE, "Pressure", "By putting pressure on the opposing Pokémon, it raises their PP usage.", 3)
.attr(PostSummonMessageAbAttr, (pokemon: Pokemon) => getPokemonMessage(pokemon, 'is exerting its Pressure!')),
.attr(PostSummonMessageAbAttr, (pokemon: Pokemon) => getPokemonMessage(pokemon, ' is exerting its Pressure!')),
new Ability(Abilities.THICK_FAT, "Thick Fat", "The Pokémon is protected by a layer of thick fat, which halves the damage taken from Fire- and Ice-type moves.", 3)
.attr(ReceivedTypeDamageMultiplierAbAttr, Type.FIRE, 0.5)
.attr(ReceivedTypeDamageMultiplierAbAttr, Type.ICE, 0.5),
+23
View File
@@ -0,0 +1,23 @@
import { ModifierTier } from "../modifier/modifier-type";
export const EGG_SEED = 1073741824;
export enum GachaType {
LEGENDARY,
TYPE,
SHINY
}
export class Egg {
public id: integer;
public tier: ModifierTier;
public gachaType: GachaType;
public timestamp: integer;
constructor(id: integer, gachaType: GachaType, timestamp: integer) {
this.id = id;
this.tier = Math.floor(id / EGG_SEED);
this.gachaType = gachaType;
this.timestamp = timestamp;
}
}
+1 -1
View File
@@ -2534,7 +2534,7 @@ export const speciesStarters = {
[Species.WIMPOD]: 3,
[Species.SANDYGAST]: 3,
[Species.PYUKUMUKU]: 3,
[Species.TYPE_NULL]: 5,
[Species.TYPE_NULL]: 6,
[Species.MINIOR]: 5,
[Species.KOMALA]: 5,
[Species.TURTONATOR]: 5,