Add starter values with limit and add generated fusion names
This commit is contained in:
1 parent
b2d7895c7b
commit
ab344cd82a
9 files changed
+531
-72
No files matched your search
+373
-2
@@ -1,11 +1,10 @@
|
||||
import { Abilities, Ability } from './ability';
|
||||
import { Abilities } from './ability';
|
||||
import BattleScene, { AnySound } from '../battle-scene';
|
||||
import { GrowthRate } from './exp';
|
||||
import { SpeciesWildEvolutionDelay, pokemonEvolutions, pokemonPrevolutions } from './pokemon-evolutions';
|
||||
import { Species } from './species';
|
||||
import { Type } from './type';
|
||||
import * as Utils from '../utils';
|
||||
import { TrainerType, trainerConfigs } from './trainer-type';
|
||||
import { LevelMoves, pokemonFormLevelMoves as pokemonSpeciesFormLevelMoves, pokemonSpeciesLevelMoves } from './pokemon-level-moves';
|
||||
|
||||
export function getPokemonSpecies(species: Species): PokemonSpecies {
|
||||
@@ -14,6 +13,41 @@ export function getPokemonSpecies(species: Species): PokemonSpecies {
|
||||
return allSpecies[species - 1];
|
||||
}
|
||||
|
||||
export function getFusedSpeciesName(speciesAName: string, speciesBName: string): string {
|
||||
const fragAPattern = /([a-z]{2}.*?[aeiou(?:y$)\-\']+)(.*?)$/i;
|
||||
const fragBPattern = /([a-z]{2}.*?[aeiou(?:y$)\-\'])(.*?)$/i;
|
||||
|
||||
const splitNameA = speciesAName.split(/ /g);
|
||||
const splitNameB = speciesBName.split(/ /g);
|
||||
|
||||
let fragAMatch = fragAPattern.exec(speciesAName);
|
||||
let fragBMatch = fragBPattern.exec(speciesBName);
|
||||
|
||||
let fragA: string;
|
||||
let fragB: string;
|
||||
|
||||
fragA = splitNameA.length === 1
|
||||
? fragAMatch ? fragAMatch[1] : speciesAName
|
||||
: splitNameA[splitNameA.length - 1];
|
||||
|
||||
if (splitNameB.length === 1) {
|
||||
if (fragBMatch) {
|
||||
const lastCharA = fragA.slice(fragA.length - 1);
|
||||
const prevCharB = fragBMatch[1].slice(fragBMatch.length - 1);
|
||||
fragB = (/[\-']/.test(prevCharB) || /[aeiou]/i.test(lastCharA) ? prevCharB : '') + fragBMatch[2] || prevCharB;
|
||||
if (lastCharA === fragB[0] && /[aiu]/.test(lastCharA))
|
||||
fragB = fragB.slice(1);
|
||||
} else
|
||||
fragB = speciesBName;
|
||||
} else
|
||||
fragB = splitNameB[splitNameB.length - 1];
|
||||
|
||||
if (splitNameA.length > 1)
|
||||
fragA = `${splitNameA.slice(0, splitNameA.length - 1).join(' ')} ${fragA}`;
|
||||
|
||||
return `${fragA}${fragB}`;
|
||||
}
|
||||
|
||||
export type PokemonSpeciesFilter = (species: PokemonSpecies) => boolean;
|
||||
|
||||
export abstract class PokemonSpeciesForm {
|
||||
@@ -1193,6 +1227,343 @@ export function initSpecies() {
|
||||
);
|
||||
}
|
||||
|
||||
export const speciesStarters = {
|
||||
[Species.BULBASAUR]: 3,
|
||||
[Species.CHARMANDER]: 3,
|
||||
[Species.SQUIRTLE]: 3,
|
||||
[Species.CATERPIE]: 1,
|
||||
[Species.WEEDLE]: 1,
|
||||
[Species.PIDGEY]: 2,
|
||||
[Species.RATTATA]: 1,
|
||||
[Species.SPEAROW]: 2,
|
||||
[Species.EKANS]: 2,
|
||||
[Species.PIKACHU]: 4,
|
||||
[Species.SANDSHREW]: 2,
|
||||
[Species.NIDORAN_F]: 3,
|
||||
[Species.NIDORAN_M]: 3,
|
||||
[Species.VULPIX]: 3,
|
||||
[Species.ZUBAT]: 2,
|
||||
[Species.ODDISH]: 2,
|
||||
[Species.PARAS]: 1,
|
||||
[Species.VENONAT]: 2,
|
||||
[Species.DIGLETT]: 3,
|
||||
[Species.MEOWTH]: 4,
|
||||
[Species.PSYDUCK]: 2,
|
||||
[Species.MANKEY]: 4,
|
||||
[Species.GROWLITHE]: 4,
|
||||
[Species.POLIWAG]: 3,
|
||||
[Species.ABRA]: 3,
|
||||
[Species.MACHOP]: 3,
|
||||
[Species.BELLSPROUT]: 3,
|
||||
[Species.TENTACOOL]: 3,
|
||||
[Species.GEODUDE]: 3,
|
||||
[Species.PONYTA]: 3,
|
||||
[Species.SLOWPOKE]: 3,
|
||||
[Species.MAGNEMITE]: 3,
|
||||
[Species.FARFETCHD]: 4,
|
||||
[Species.DODUO]: 4,
|
||||
[Species.SEEL]: 3,
|
||||
[Species.GRIMER]: 3,
|
||||
[Species.SHELLDER]: 4,
|
||||
[Species.GASTLY]: 3,
|
||||
[Species.ONIX]: 4,
|
||||
[Species.DROWZEE]: 3,
|
||||
[Species.KRABBY]: 2,
|
||||
[Species.VOLTORB]: 2,
|
||||
[Species.EXEGGCUTE]: 4,
|
||||
[Species.CUBONE]: 3,
|
||||
[Species.LICKITUNG]: 5,
|
||||
[Species.KOFFING]: 3,
|
||||
[Species.RHYHORN]: 3,
|
||||
[Species.TANGELA]: 3,
|
||||
[Species.KANGASKHAN]: 5,
|
||||
[Species.HORSEA]: 4,
|
||||
[Species.GOLDEEN]: 3,
|
||||
[Species.STARYU]: 4,
|
||||
[Species.SCYTHER]: 5,
|
||||
[Species.PINSIR]: 4,
|
||||
[Species.TAUROS]: 5,
|
||||
[Species.MAGIKARP]: 3,
|
||||
[Species.LAPRAS]: 5,
|
||||
[Species.DITTO]: 2,
|
||||
[Species.EEVEE]: 4,
|
||||
[Species.PORYGON]: 4,
|
||||
[Species.OMANYTE]: 3,
|
||||
[Species.KABUTO]: 3,
|
||||
[Species.AERODACTYL]: 5,
|
||||
[Species.ARTICUNO]: 6,
|
||||
[Species.ZAPDOS]: 6,
|
||||
[Species.MOLTRES]: 6,
|
||||
[Species.DRATINI]: 4,
|
||||
[Species.MEWTWO]: 8,
|
||||
[Species.MEW]: 7,
|
||||
|
||||
[Species.CHIKORITA]: 3,
|
||||
[Species.CYNDAQUIL]: 3,
|
||||
[Species.TOTODILE]: 3,
|
||||
[Species.SENTRET]: 1,
|
||||
[Species.HOOTHOOT]: 1,
|
||||
[Species.LEDYBA]: 1,
|
||||
[Species.SPINARAK]: 1,
|
||||
[Species.CHINCHOU]: 3,
|
||||
[Species.PICHU]: 3,
|
||||
[Species.CLEFFA]: 3,
|
||||
[Species.IGGLYBUFF]: 3,
|
||||
[Species.TOGEPI]: 3,
|
||||
[Species.NATU]: 2,
|
||||
[Species.MAREEP]: 3,
|
||||
[Species.HOPPIP]: 1,
|
||||
[Species.AIPOM]: 3,
|
||||
[Species.SUNKERN]: 1,
|
||||
[Species.YANMA]: 3,
|
||||
[Species.WOOPER]: 2,
|
||||
[Species.MURKROW]: 4,
|
||||
[Species.MISDREAVUS]: 3,
|
||||
[Species.UNOWN]: 1,
|
||||
[Species.GIRAFARIG]: 4,
|
||||
[Species.PINECO]: 2,
|
||||
[Species.DUNSPARCE]: 4,
|
||||
[Species.GLIGAR]: 4,
|
||||
[Species.SNUBBULL]: 3,
|
||||
[Species.QWILFISH]: 3,
|
||||
[Species.SHUCKLE]: 4,
|
||||
[Species.HERACROSS]: 5,
|
||||
[Species.SNEASEL]: 4,
|
||||
[Species.TEDDIURSA]: 4,
|
||||
[Species.SLUGMA]: 2,
|
||||
[Species.SWINUB]: 3,
|
||||
[Species.CORSOLA]: 3,
|
||||
[Species.REMORAID]: 3,
|
||||
[Species.DELIBIRD]: 3,
|
||||
[Species.SKARMORY]: 5,
|
||||
[Species.HOUNDOUR]: 4,
|
||||
[Species.PHANPY]: 3,
|
||||
[Species.STANTLER]: 4,
|
||||
[Species.SMEARGLE]: 3,
|
||||
[Species.TYROGUE]: 4,
|
||||
[Species.SMOOCHUM]: 3,
|
||||
[Species.ELEKID]: 4,
|
||||
[Species.MAGBY]: 4,
|
||||
[Species.MILTANK]: 5,
|
||||
[Species.RAIKOU]: 6,
|
||||
[Species.ENTEI]: 6,
|
||||
[Species.SUICUNE]: 6,
|
||||
[Species.LARVITAR]: 4,
|
||||
[Species.LUGIA]: 8,
|
||||
[Species.HO_OH]: 8,
|
||||
[Species.CELEBI]: 7,
|
||||
|
||||
[Species.TREECKO]: 3,
|
||||
[Species.TORCHIC]: 3,
|
||||
[Species.MUDKIP]: 3,
|
||||
[Species.POOCHYENA]: 2,
|
||||
[Species.ZIGZAGOON]: 2,
|
||||
[Species.WURMPLE]: 1,
|
||||
[Species.LOTAD]: 3,
|
||||
[Species.SEEDOT]: 3,
|
||||
[Species.TAILLOW]: 3,
|
||||
[Species.WINGULL]: 3,
|
||||
[Species.RALTS]: 3,
|
||||
[Species.SURSKIT]: 2,
|
||||
[Species.SHROOMISH]: 3,
|
||||
[Species.SLAKOTH]: 4,
|
||||
[Species.NINCADA]: 4,
|
||||
[Species.WHISMUR]: 2,
|
||||
[Species.MAKUHITA]: 3,
|
||||
[Species.AZURILL]: 3,
|
||||
[Species.NOSEPASS]: 3,
|
||||
[Species.SKITTY]: 3,
|
||||
[Species.SABLEYE]: 3,
|
||||
[Species.MAWILE]: 5,
|
||||
[Species.ARON]: 3,
|
||||
[Species.MEDITITE]: 4,
|
||||
[Species.ELECTRIKE]: 3,
|
||||
[Species.PLUSLE]: 2,
|
||||
[Species.MINUN]: 2,
|
||||
[Species.VOLBEAT]: 2,
|
||||
[Species.ILLUMISE]: 2,
|
||||
[Species.GULPIN]: 3,
|
||||
[Species.CARVANHA]: 3,
|
||||
[Species.WAILMER]: 3,
|
||||
[Species.NUMEL]: 3,
|
||||
[Species.TORKOAL]: 4,
|
||||
[Species.SPOINK]: 3,
|
||||
[Species.SPINDA]: 2,
|
||||
[Species.TRAPINCH]: 4,
|
||||
[Species.CACNEA]: 3,
|
||||
[Species.SWABLU]: 3,
|
||||
[Species.ZANGOOSE]: 5,
|
||||
[Species.SEVIPER]: 4,
|
||||
[Species.LUNATONE]: 4,
|
||||
[Species.SOLROCK]: 4,
|
||||
[Species.BARBOACH]: 3,
|
||||
[Species.CORPHISH]: 3,
|
||||
[Species.BALTOY]: 3,
|
||||
[Species.LILEEP]: 3,
|
||||
[Species.ANORITH]: 3,
|
||||
[Species.FEEBAS]: 4,
|
||||
[Species.CASTFORM]: 2,
|
||||
[Species.KECLEON]: 4,
|
||||
[Species.SHUPPET]: 3,
|
||||
[Species.DUSKULL]: 3,
|
||||
[Species.TROPIUS]: 5,
|
||||
[Species.ABSOL]: 5,
|
||||
[Species.WYNAUT]: 3,
|
||||
[Species.SNORUNT]: 3,
|
||||
[Species.SPHEAL]: 3,
|
||||
[Species.CLAMPERL]: 3,
|
||||
[Species.RELICANTH]: 4,
|
||||
[Species.LUVDISC]: 2,
|
||||
[Species.BAGON]: 4,
|
||||
[Species.BELDUM]: 4,
|
||||
[Species.REGIROCK]: 6,
|
||||
[Species.REGICE]: 6,
|
||||
[Species.REGISTEEL]: 6,
|
||||
[Species.LATIAS]: 7,
|
||||
[Species.LATIOS]: 7,
|
||||
[Species.KYOGRE]: 8,
|
||||
[Species.GROUDON]: 8,
|
||||
[Species.RAYQUAZA]: 8,
|
||||
[Species.JIRACHI]: 7,
|
||||
[Species.DEOXYS]: 8,
|
||||
|
||||
[Species.TURTWIG]: 3,
|
||||
[Species.CHIMCHAR]: 3,
|
||||
[Species.PIPLUP]: 3,
|
||||
[Species.STARLY]: 3,
|
||||
[Species.BIDOOF]: 2,
|
||||
[Species.KRICKETOT]: 1,
|
||||
[Species.SHINX]: 3,
|
||||
[Species.BUDEW]: 3,
|
||||
[Species.CRANIDOS]: 3,
|
||||
[Species.SHIELDON]: 3,
|
||||
[Species.BURMY]: 1,
|
||||
[Species.COMBEE]: 2,
|
||||
[Species.PACHIRISU]: 3,
|
||||
[Species.BUIZEL]: 3,
|
||||
[Species.CHERUBI]: 3,
|
||||
[Species.SHELLOS]: 3,
|
||||
[Species.DRIFLOON]: 3,
|
||||
[Species.BUNEARY]: 3,
|
||||
[Species.GLAMEOW]: 3,
|
||||
[Species.CHINGLING]: 3,
|
||||
[Species.STUNKY]: 3,
|
||||
[Species.BRONZOR]: 3,
|
||||
[Species.BONSLY]: 3,
|
||||
[Species.MIME_JR]: 3,
|
||||
[Species.HAPPINY]: 4,
|
||||
[Species.CHATOT]: 4,
|
||||
[Species.SPIRITOMB]: 5,
|
||||
[Species.GIBLE]: 4,
|
||||
[Species.MUNCHLAX]: 4,
|
||||
[Species.RIOLU]: 5,
|
||||
[Species.HIPPOPOTAS]: 3,
|
||||
[Species.SKORUPI]: 3,
|
||||
[Species.CROAGUNK]: 3,
|
||||
[Species.CARNIVINE]: 4,
|
||||
[Species.FINNEON]: 3,
|
||||
[Species.MANTYKE]: 3,
|
||||
[Species.SNOVER]: 3,
|
||||
[Species.ROTOM]: 5,
|
||||
[Species.UXIE]: 7,
|
||||
[Species.MESPRIT]: 7,
|
||||
[Species.AZELF]: 7,
|
||||
[Species.DIALGA]: 8,
|
||||
[Species.PALKIA]: 8,
|
||||
[Species.HEATRAN]: 7,
|
||||
[Species.REGIGIGAS]: 8,
|
||||
[Species.GIRATINA]: 8,
|
||||
[Species.CRESSELIA]: 7,
|
||||
[Species.PHIONE]: 5,
|
||||
[Species.MANAPHY]: 7,
|
||||
[Species.DARKRAI]: 7,
|
||||
[Species.SHAYMIN]: 7,
|
||||
[Species.ARCEUS]: 9,
|
||||
[Species.VICTINI]: 8,
|
||||
|
||||
[Species.SNIVY]: 3,
|
||||
[Species.TEPIG]: 3,
|
||||
[Species.OSHAWOTT]: 3,
|
||||
[Species.PATRAT]: 2,
|
||||
[Species.LILLIPUP]: 3,
|
||||
[Species.PURRLOIN]: 3,
|
||||
[Species.PANSAGE]: 3,
|
||||
[Species.PANSEAR]: 3,
|
||||
[Species.PANPOUR]: 3,
|
||||
[Species.MUNNA]: 3,
|
||||
[Species.PIDOVE]: 2,
|
||||
[Species.BLITZLE]: 3,
|
||||
[Species.ROGGENROLA]: 3,
|
||||
[Species.WOOBAT]: 3,
|
||||
[Species.DRILBUR]: 4,
|
||||
[Species.AUDINO]: 4,
|
||||
[Species.TIMBURR]: 3,
|
||||
[Species.TYMPOLE]: 3,
|
||||
[Species.THROH]: 5,
|
||||
[Species.SAWK]: 5,
|
||||
[Species.SEWADDLE]: 3,
|
||||
[Species.VENIPEDE]: 3,
|
||||
[Species.COTTONEE]: 3,
|
||||
[Species.PETILIL]: 3,
|
||||
[Species.BASCULIN]: 4,
|
||||
[Species.SANDILE]: 3,
|
||||
[Species.DARUMAKA]: 4,
|
||||
[Species.MARACTUS]: 4,
|
||||
[Species.DWEBBLE]: 3,
|
||||
[Species.SCRAGGY]: 3,
|
||||
[Species.SIGILYPH]: 5,
|
||||
[Species.YAMASK]: 3,
|
||||
[Species.TIRTOUGA]: 4,
|
||||
[Species.ARCHEN]: 4,
|
||||
[Species.TRUBBISH]: 3,
|
||||
[Species.ZORUA]: 3,
|
||||
[Species.MINCCINO]: 3,
|
||||
[Species.GOTHITA]: 3,
|
||||
[Species.SOLOSIS]: 3,
|
||||
[Species.DUCKLETT]: 3,
|
||||
[Species.VANILLITE]: 3,
|
||||
[Species.DEERLING]: 3,
|
||||
[Species.EMOLGA]: 4,
|
||||
[Species.KARRABLAST]: 3,
|
||||
[Species.FOONGUS]: 3,
|
||||
[Species.FRILLISH]: 3,
|
||||
[Species.ALOMOMOLA]: 4,
|
||||
[Species.JOLTIK]: 3,
|
||||
[Species.FERROSEED]: 3,
|
||||
[Species.KLINK]: 3,
|
||||
[Species.TYNAMO]: 3,
|
||||
[Species.ELGYEM]: 3,
|
||||
[Species.LITWICK]: 3,
|
||||
[Species.AXEW]: 4,
|
||||
[Species.CUBCHOO]: 3,
|
||||
[Species.CRYOGONAL]: 5,
|
||||
[Species.SHELMET]: 3,
|
||||
[Species.STUNFISK]: 4,
|
||||
[Species.MIENFOO]: 3,
|
||||
[Species.DRUDDIGON]: 5,
|
||||
[Species.GOLETT]: 3,
|
||||
[Species.PAWNIARD]: 4,
|
||||
[Species.BOUFFALANT]: 5,
|
||||
[Species.RUFFLET]: 3,
|
||||
[Species.VULLABY]: 3,
|
||||
[Species.HEATMOR]: 5,
|
||||
[Species.DURANT]: 5,
|
||||
[Species.DEINO]: 4,
|
||||
[Species.LARVESTA]: 4,
|
||||
[Species.COBALION]: 6,
|
||||
[Species.TERRAKION]: 6,
|
||||
[Species.VIRIZION]: 6,
|
||||
[Species.TORNADUS]: 7,
|
||||
[Species.THUNDURUS]: 7,
|
||||
[Species.RESHIRAM]: 8,
|
||||
[Species.ZEKROM]: 8,
|
||||
[Species.LANDORUS]: 7,
|
||||
[Species.KYUREM]: 8,
|
||||
[Species.KELDEO]: 7,
|
||||
[Species.MELOETTA]: 7,
|
||||
[Species.GENESECT]: 8
|
||||
};
|
||||
|
||||
// TODO: Remove
|
||||
{
|
||||
//setTimeout(() => {
|
||||
|
||||
Reference in new issue
Block a user