Update final boss fight and restructure some files

This commit is contained in:
Flashfyre committed 2024-01-13 12:24:24 -05:00
1 parent 25972b68ea
commit 052564f902
52 files changed
+2018 -1669

No files matched your search

+12 -3
View File
@@ -1,9 +1,9 @@
import { TimeOfDay } from "../arena";
import { TimeOfDay } from "./enums/time-of-day";
import { PokemonFormChangeItemModifier } from "../modifier/modifier";
import Pokemon from "../pokemon";
import { Moves } from "./move";
import { Moves } from "./enums/moves";
import { SpeciesFormKey } from "./pokemon-species";
import { Species } from "./species";
import { Species } from "./enums/species";
import { StatusEffect } from "./status-effect";
export enum FormChangeItem {
@@ -138,6 +138,12 @@ export abstract class SpeciesFormChangeTrigger {
}
}
export class SpeciesFormChangeManualTrigger extends SpeciesFormChangeTrigger {
canChange(pokemon: Pokemon): boolean {
return true;
}
}
export class SpeciesFormChangeCompoundTrigger {
public triggers: SpeciesFormChangeTrigger[];
@@ -442,6 +448,9 @@ export const pokemonFormChanges: PokemonFormChanges = {
[Species.DIANCIE]: [
new SpeciesFormChange(Species.DIANCIE, '', SpeciesFormKey.MEGA, new SpeciesFormChangeItemTrigger(FormChangeItem.DIANCITE))
],
[Species.ETERNATUS]: [
new SpeciesFormChange(Species.ETERNATUS, '', 'eternamax', new SpeciesFormChangeManualTrigger())
],
[Species.ENAMORUS]: [
new SpeciesFormChange(Species.ENAMORUS, SpeciesFormKey.INCARNATE, SpeciesFormKey.THERIAN, new SpeciesFormChangeItemTrigger(FormChangeItem.REVEAL_GLASS))
]