Add DNA splicers and Pokemon fusing
This commit is contained in:
1 parent
0ad1a9d25a
commit
e07339e3eb
22 files changed
+879
-485
No files matched your search
@@ -45,7 +45,7 @@ export function initGameSpeed() {
|
||||
sound: Phaser.Sound.BaseSound,
|
||||
duration: number,
|
||||
destroy?: boolean
|
||||
) => originalFadeOut(scene, sound, thisArg.gameSpeed === 1 ? duration : Math.ceil(duration /= thisArg.gameSpeed), destroy)) as FadeOut;
|
||||
) => originalFadeOut(scene, sound, transformValue(duration), destroy)) as FadeOut;
|
||||
|
||||
const originalFadeIn = SoundFade.fadeIn;
|
||||
SoundFade.fadeIn = ((
|
||||
@@ -54,5 +54,5 @@ export function initGameSpeed() {
|
||||
duration: number,
|
||||
endVolume?: number,
|
||||
startVolume?: number
|
||||
) => originalFadeIn(scene, sound, thisArg.gameSpeed === 1 ? duration : Math.ceil(duration /= thisArg.gameSpeed), endVolume, startVolume)) as FadeIn;
|
||||
) => originalFadeIn(scene, sound, transformValue(duration), endVolume, startVolume)) as FadeIn;
|
||||
}
|
||||
@@ -27,6 +27,12 @@ export default class PokemonData {
|
||||
public winCount: integer;
|
||||
public pokerus: boolean;
|
||||
|
||||
public fusionSpecies: Species;
|
||||
public fusionFormIndex: integer;
|
||||
public fusionAbilityIndex: integer;
|
||||
public fusionShiny: boolean;
|
||||
public fusionGender: Gender;
|
||||
|
||||
public summonData: PokemonSummonData;
|
||||
|
||||
constructor(source: Pokemon | any) {
|
||||
@@ -48,6 +54,12 @@ export default class PokemonData {
|
||||
this.winCount = source.winCount;
|
||||
this.pokerus = !!source.pokerus;
|
||||
|
||||
this.fusionSpecies = sourcePokemon ? sourcePokemon.fusionSpecies?.speciesId : source.fusionSpecies;
|
||||
this.fusionFormIndex = source.fusionFormIndex;
|
||||
this.fusionAbilityIndex = source.fusionAbilityIndex;
|
||||
this.fusionShiny = source.fusionShiny;
|
||||
this.fusionGender = source.fusionGender;
|
||||
|
||||
if (sourcePokemon) {
|
||||
this.moveset = sourcePokemon.moveset;
|
||||
this.status = sourcePokemon.status;
|
||||
|
||||
Reference in new issue
Block a user