Refactor: Make pokemon.dart cleaner
This commit is contained in:
parent
6e48d3ba48
commit
f0fbc73bea
4 changed files with 475 additions and 452 deletions
460
lib/generations/Gen1Data.dart
Normal file
460
lib/generations/Gen1Data.dart
Normal file
|
@ -0,0 +1,460 @@
|
|||
import 'package:pokedex/dexMisc.dart';
|
||||
import 'package:pokedex/pokemon.dart';
|
||||
|
||||
class Gen1Locations {
|
||||
Gen1Locations._();
|
||||
|
||||
static const List<Location> Bulbasaur = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.PalletTown],
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
Location(Game.Yellow, [GameRoute.CeruleanCity], Generation.One),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Two,
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[GameRoute.PalletTown],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
static const List<Location> Ivysaur = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.Evolve],
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue, Game.Yellow],
|
||||
),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Two,
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[GameRoute.Evolve],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
Location(Game.Emerald, [GameRoute.TradeOrMigrate], Generation.Three),
|
||||
];
|
||||
static const List<Location> Venusaur = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.Evolve],
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue, Game.Yellow],
|
||||
),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Two,
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[GameRoute.Evolve],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
static const List<Location> Charmander = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.PalletTown],
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
Location(Game.Yellow, [GameRoute.RT24], Generation.One),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Two,
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[GameRoute.PalletTown],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
static const List<Location> Charmeleon = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.Evolve],
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue, Game.Yellow],
|
||||
),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Two,
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[GameRoute.Evolve],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
static const List<Location> Charizard = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.Evolve],
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue, Game.Yellow],
|
||||
),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Two,
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[GameRoute.Evolve],
|
||||
Generation.Three,
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
class Gen1DexData {
|
||||
Gen1DexData._();
|
||||
|
||||
static const List<DexEntry> Bulbasaur = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"A strange seed was planted on its back at birth. The plant sprouts and grows with this POKéMON.",
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"It can go for days without eating a single morsel. In the bulb on its back, it stores energy.",
|
||||
Generation.One,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"The seed on its back is filled with nutrients. The seed grows steadily larger as its body grows.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"It carries a seed on its back right from birth. As it grows older, the seed also grows larger.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"While it is young, it uses the nutrients that are stored in the seeds on its back in order to grow.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"BULBASAUR can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun’s rays, the seed grows progressively larger.",
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"There is a plant seed on its back right from the day this POKéMON is born. The seed slowly grows larger.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"A strange seed was planted on its back at birth. The plant sprouts and grows with this POKéMON.",
|
||||
Generation.Three,
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Ivysaur = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"When the bulb on its back grows large, it appears to lose the ability to stand on its hind legs.",
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"The bulb on its back grows by drawing energy. It gives off an aroma when it is ready to bloom.",
|
||||
Generation.One,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"Exposure to sunlight adds to its strength. Sunlight also makes the bud on its back grow larger",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"If the bud on its back starts to smell sweet, it is evidence that the large flower will soon bloom.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"The bulb on its back grows as it absorbs nutrients. The bulb gives off a pleasant aroma when it blooms.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"There is a bud on this POKéMON’s back. To support its weight, IVYSAUR’s legs and trunk grow thick and strong. If it starts spending more time lying in the sunlight, it’s a sign that the bud will bloom into a large flower soon.",
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"There is a plant bulb on its back. When it absorbs nutrients, the bulb is said to blossom into a large flower.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"When the bulb on its back grows large, it appears to lose the ability to stand on its hind legs.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"To support its bulb, IVYSAUR’s legs grow sturdy. If it spends more time lying in the sunlight, the bud will soon bloom into a large flower.",
|
||||
Generation.Three,
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Venusaur = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"The plant blooms when it is absorbing solar energy. It stays on the move to seek sunlight.",
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"The flower on its back catches the sun’s rays. The sunlight is then absorbed and used for energy.",
|
||||
Generation.One,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"By spreading the broad petals of its flower and catching the sun’s rays, it fills its body with power.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"It is able to convert sunlight into energy. As a result, it is more powerful in the summertime.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"As it warms itself and absorbs the sunlight, its flower petals release a pleasant fragrance.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"There is a large flower on VENUSAUR’s back. The flower is said to take on vivid colors if it gets plenty of nutrition and sunlight. The flower’s aroma soothes the emotions of people.",
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"A bewitching aroma wafts from its flower. The fragrance becalms those engaged in a battle.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"Its plant blooms when it is absorbing solar energy. It stays on the move to seek sunlight.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"VENUSAUR’s flower is said to take on vivid colors if it gets plenty of nutrition and sunlight. The flower’s aroma soothes the emotions of people.",
|
||||
Generation.Three,
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Charmander = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"Obviously prefers hot places. When it rains, steam is said to spout from the tip of its tail.",
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"The flame at the tip of its tail makes a sound as it burns. You can only hear it in quiet places.",
|
||||
Generation.One,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"The flame on its tail shows the strength of its life force. If it is weak, the flame also burns weakly.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"The flame on its tail indicates CHARMANDER’s life force. If it is healthy, the flame burns brightly.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"If it’s healthy, the flame on the tip of its tail will burn vigorously, even if it gets a bit wet.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"The flame that burns at the tip of its tail is an indication of its emotions. The flame wavers when CHARMANDER is enjoying itself. If the POKéMON becomes enraged, the flame burns fiercely.",
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"From the time it is born, a flame burns at the tip of its tail. Its life would end if the flame were to go out.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"It has a preference for hot things. When it rains, steam is said to spout from the tip of its tail.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"The flame that burns at the tip of its tail is an indication of its emotions. The flame wavers when CHARMANDER is happy, and blazes when it is enraged.",
|
||||
Generation.Three,
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Charmeleon = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"When it swings its burning tail, it elevates the temperature to unbearably high levels.",
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"Tough fights could excite this POKéMON. When excited, it may blow out bluish-white flames.",
|
||||
Generation.One,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"It is very hotheaded by nature, so it constantly seeks opponents. It calms down only when it wins.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"It has a barbaric nature. In battle, it whips its fiery tail around and slashes away with sharp claws.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"If it becomes agitated during battle, it spouts intense flames, incinerating its surroundings.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"CHARMELEON mercilessly destroys its foes using its sharp claws. If it encounters a strong foe, it turns aggressive. In this excited state, the flame at the tip of its tail flares with a bluish white color.",
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"It lashes about with its tail to knock down its foe. It then tears up the fallen opponent with sharp claws.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"When it swings its burning tail, it elevates the air temperature to unbearably high levels.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"Without pity, its sharp claws destroy foes. If it encounters a strong enemy, it becomes agitated, and the flame on its tail flares with a bluish white color.",
|
||||
Generation.Three,
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Charizard = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"Spits fire that is hot enough to melt boulders. Known to cause forest fires unintentionally.",
|
||||
Generation.One,
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"When expelling a blast of super hot fire, the red flame at the tip of its tail burns more intensely.",
|
||||
Generation.One,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"If CHARIZARD becomes furious, the flame at the tip of its tail flares up in a whitish-blue color.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"Breathing intense, hot flames, it can melt almost anything. Its breath inflicts terrible pain on enemies.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"It uses its wings to fly high. The temperature of its fire increases as it gains experience in battle.",
|
||||
Generation.Two,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"CHARIZARD flies around the sky in search of powerful opponents. It breathes fire of such great heat that it melts anything. However, it never turns its fiery breath on any opponent weaker than itself.",
|
||||
Generation.Three,
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"Its wings can carry this POKéMON close to an altitude of 4,600 feet. It blows out fire at very high temperatures.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"It spits fire that is hot enough to melt boulders. It may cause forest fires by blowing flames.",
|
||||
Generation.Three,
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"A CHARIZARD flies about in search of strong opponents. It breathes intense flames that can melt any material. However, it will never torch a weaker foe.",
|
||||
Generation.Three,
|
||||
),
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue