Add more entries, add dex entry display to datagen tool
This commit is contained in:
parent
b7a9eb6400
commit
c22423fa35
6 changed files with 598 additions and 25 deletions
|
@ -1,5 +1,5 @@
|
|||
class Constants {
|
||||
static const VERSION = "1.0.060225+0147";
|
||||
static const VERSION = "1.0.060225+1416";
|
||||
|
||||
//static bool get isMobile => Platform.isAndroid || Platform.isIOS;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,8 @@ enum GameRoute {
|
|||
RT16,
|
||||
RT17,
|
||||
RT18,
|
||||
RT19,
|
||||
RT20,
|
||||
RT21,
|
||||
RT22,
|
||||
RT23,
|
||||
|
@ -123,6 +125,19 @@ enum GameRoute {
|
|||
SkyPillar(commonName: "Sky Pillar"),
|
||||
DiglettCave(commonName: "Diglett's Cave"),
|
||||
BattleTower(commonName: "Battle Tower"),
|
||||
CinnabarIsland(commonName: "Cinnabar Island"),
|
||||
FiveIsland(commonName: "Five Island"),
|
||||
FourIsland(commonName: "Four Island"),
|
||||
FuchsiaCity(commonName: "Fuchsia City"),
|
||||
GreenPath(commonName: "Green Path"),
|
||||
MemorialPillar(commonName: "Memorial Pillar"),
|
||||
OneIsland(commonName: "One Island"),
|
||||
OutcastIsland(commonName: "Outcast Island"),
|
||||
ResortGorgeous(commonName: "Resort Gorgeous"),
|
||||
TanobyRuins(commonName: "Tanoby Ruins"),
|
||||
TrainerTower(commonName: "Trainer Tower"),
|
||||
ViridianCity(commonName: "Viridian City"),
|
||||
WaterLabyrinth(commonName: "Water Labyrinth"),
|
||||
|
||||
// The following mark the pokemon as not usually obtainable
|
||||
TradeOrMigrate(commonName: "Trade or Migrate from another game"),
|
||||
|
|
|
@ -2010,6 +2010,208 @@ class Gen1Locations {
|
|||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
static const List<Location> Psyduck = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[
|
||||
GameRoute.RT24,
|
||||
GameRoute.RT25,
|
||||
GameRoute.SeafoamIslands,
|
||||
GameRoute.SafariZone,
|
||||
],
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
Location(Game.Yellow, [GameRoute.RT6]),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.RT6, GameRoute.IlexForest],
|
||||
additionalGames: [Game.Silver],
|
||||
),
|
||||
Location(Game.Crystal, [
|
||||
GameRoute.RT6,
|
||||
GameRoute.RT35,
|
||||
GameRoute.IlexForest,
|
||||
GameRoute.NationalPark,
|
||||
]),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.SafariZone],
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(Game.FireRed, [
|
||||
GameRoute.RT4,
|
||||
GameRoute.RT6,
|
||||
GameRoute.RT10,
|
||||
GameRoute.RT11,
|
||||
GameRoute.RT12,
|
||||
GameRoute.RT13,
|
||||
GameRoute.RT19,
|
||||
GameRoute.RT20,
|
||||
GameRoute.RT21,
|
||||
GameRoute.RT22,
|
||||
GameRoute.RT23,
|
||||
GameRoute.RT24,
|
||||
GameRoute.RT25,
|
||||
GameRoute.BerryForest,
|
||||
GameRoute.BondBridge,
|
||||
GameRoute.CanyonEntrance,
|
||||
GameRoute.CapeBrink,
|
||||
GameRoute.CeladonCity,
|
||||
GameRoute.CeruleanCave,
|
||||
GameRoute.CeruleanCity,
|
||||
GameRoute.CinnabarIsland,
|
||||
GameRoute.FiveIsland,
|
||||
GameRoute.FiveIsleMeadow,
|
||||
GameRoute.FourIsland,
|
||||
GameRoute.FuchsiaCity,
|
||||
GameRoute.GreenPath,
|
||||
GameRoute.IcefallCave,
|
||||
GameRoute.KindleRoad,
|
||||
GameRoute.MemorialPillar,
|
||||
GameRoute.OneIsland,
|
||||
GameRoute.OutcastIsland,
|
||||
GameRoute.PalletTown,
|
||||
GameRoute.ResortGorgeous,
|
||||
GameRoute.RuinValley,
|
||||
GameRoute.SeafoamIslands,
|
||||
GameRoute.TanobyRuins,
|
||||
GameRoute.TrainerTower,
|
||||
GameRoute.TreasureBeach,
|
||||
GameRoute.VermilionCity,
|
||||
GameRoute.ViridianCity,
|
||||
GameRoute.WaterLabyrinth,
|
||||
GameRoute.WaterPath,
|
||||
GameRoute.SafariZone,
|
||||
]),
|
||||
Location(Game.LeafGreen, [GameRoute.TradeOrMigrate]),
|
||||
];
|
||||
static const List<Location> Golduck = [
|
||||
Location(
|
||||
Game.Red,
|
||||
[GameRoute.SeafoamIslands],
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
Location(Game.Yellow, [GameRoute.RT6]),
|
||||
Location(
|
||||
Game.Gold,
|
||||
[GameRoute.RT6, GameRoute.RT35, GameRoute.IlexForest, GameRoute.MtSilver],
|
||||
additionalGames: [Game.Silver, Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.SafariZone],
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(Game.FireRed, [
|
||||
GameRoute.BerryForest,
|
||||
GameRoute.CapeBrink,
|
||||
GameRoute.CeruleanCave,
|
||||
GameRoute.SeafoamIslands,
|
||||
]),
|
||||
Location(Game.LeafGreen, [GameRoute.TradeOrMigrate]),
|
||||
];
|
||||
static const List<Location> Mankey = [
|
||||
Location(Game.Red, [
|
||||
GameRoute.RT5,
|
||||
GameRoute.RT6,
|
||||
GameRoute.RT7,
|
||||
GameRoute.RT8,
|
||||
]),
|
||||
Location(Game.Blue, [GameRoute.TradeOrMigrate]),
|
||||
Location(Game.Yellow, [
|
||||
GameRoute.RT3,
|
||||
GameRoute.RT4,
|
||||
GameRoute.RT22,
|
||||
GameRoute.RT23,
|
||||
]),
|
||||
Location(Game.Gold, [GameRoute.RT9, GameRoute.RT42]),
|
||||
Location(
|
||||
Game.Silver,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
additionalGames: [Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(
|
||||
Game.FireRed,
|
||||
[
|
||||
GameRoute.RT3,
|
||||
GameRoute.RT4,
|
||||
GameRoute.RT22,
|
||||
GameRoute.RT23,
|
||||
GameRoute.RockTunnel,
|
||||
],
|
||||
additionalGames: [Game.LeafGreen],
|
||||
),
|
||||
];
|
||||
static const List<Location> Primeape = [
|
||||
Location(Game.Red, [GameRoute.Evolve]),
|
||||
Location(Game.Blue, [GameRoute.TradeOrMigrate]),
|
||||
Location(Game.Yellow, [GameRoute.RT23]),
|
||||
Location(Game.Gold, [GameRoute.RT9]),
|
||||
Location(
|
||||
Game.Silver,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
additionalGames: [Game.Crystal],
|
||||
),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
additionalGames: [Game.Sapphire, Game.Emerald],
|
||||
),
|
||||
Location(Game.FireRed, [
|
||||
GameRoute.RT23,
|
||||
GameRoute.CeruleanCave,
|
||||
GameRoute.VictoryRoad,
|
||||
]),
|
||||
];
|
||||
static const List<Location> Growlithe = [
|
||||
Location(Game.Red, [
|
||||
GameRoute.RT7,
|
||||
GameRoute.RT8,
|
||||
GameRoute.PokemonMansion,
|
||||
]),
|
||||
Location(Game.Blue, [GameRoute.TradeOrMigrate]),
|
||||
Location(Game.Yellow, [GameRoute.PokemonMansion]),
|
||||
Location(Game.Gold, [
|
||||
GameRoute.RT7,
|
||||
GameRoute.RT8,
|
||||
GameRoute.RT36,
|
||||
GameRoute.RT37,
|
||||
]),
|
||||
Location(Game.Silver, [GameRoute.TradeOrMigrate]),
|
||||
Location(Game.Crystal, [
|
||||
GameRoute.RT8,
|
||||
GameRoute.RT35,
|
||||
GameRoute.RT36,
|
||||
GameRoute.RT37,
|
||||
]),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
additionalGames: [Game.Sapphire, Game.Emerald, Game.LeafGreen],
|
||||
),
|
||||
Location(Game.FireRed, [
|
||||
GameRoute.RT7,
|
||||
GameRoute.RT8,
|
||||
GameRoute.PokemonMansion,
|
||||
]),
|
||||
];
|
||||
static const List<Location> Arcanine = [
|
||||
Location(Game.Red, [GameRoute.Evolve], additionalGames: [Game.Yellow]),
|
||||
Location(Game.Blue, [GameRoute.TradeOrMigrate]),
|
||||
Location(Game.Gold, [GameRoute.Evolve], additionalGames: [Game.Crystal]),
|
||||
Location(Game.Silver, [GameRoute.TradeOrMigrate]),
|
||||
Location(
|
||||
Game.Ruby,
|
||||
[GameRoute.TradeOrMigrate],
|
||||
additionalGames: [Game.Sapphire, Game.Emerald, Game.LeafGreen],
|
||||
),
|
||||
Location(Game.FireRed, [GameRoute.Evolve]),
|
||||
];
|
||||
}
|
||||
|
||||
class Gen1DexData {
|
||||
|
@ -4256,4 +4458,250 @@ class Gen1DexData {
|
|||
"A PERSIAN’s six bold whiskers sense air movements to determine what is in its vicinity. It becomes docile if grabbed by the whiskers.",
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Psyduck = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"While lulling its enemies with its vacant look, this wily POKéMON will use psychokinetic powers.",
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"Always tormented by headaches. It uses psychic powers, but it is not known if it intends to do so.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"It has mystical powers but doesn’t recall that it has used them. That is why it always looks puzzled.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"If its chronic headache peaks, it may exhibit odd powers. It seems unable to recall such an episode.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"The only time it can use its psychic power is when its sleeping brain cells happen to wake.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"PSYDUCK uses a mysterious power. When it does so, this POKéMON generates brain waves that are supposedly only seen in sleepers. This discovery spurred controversy among scholars.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Sapphire,
|
||||
"If it uses its mysterious power, PSYDUCK can’t remember having done so. It apparently can’t form a memory of such an event because it goes into an altered state that is much like deep sleep.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"It is constantly wracked by a headache. When the headache turns intense, it begins using mysterious powers.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"While lulling its enemies with its vacant look, this wily POKéMON will use psychokinetic powers.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"When its headache intensifies, it starts using strange powers. However, it has no recollection of its powers, so it always looks befuddled and bewildered.",
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Golduck = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"Often seen swimming elegantly by lake shores. It is often mistaken for the Japanese monster, Kappa.",
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"Its slim and long limbs end in broad flippers. They are used for swimming gracefully in lakes.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"When it swims at full speed using its long, webbed limbs, its forehead somehow begins to glow.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"It appears by waterways at dusk. It may use telekinetic powers if its forehead glows mysteriously.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"It swims gracefully along on the quiet, slow-moving rivers and lakes of which it is so fond.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"The webbed flippers on its forelegs and hind legs and the streamlined body of GOLDUCK give it frightening speed. This POKéMON is definitely much faster than even the most athletic swimmer.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Sapphire,
|
||||
"GOLDUCK is the fastest swimmer among all POKéMON. It swims effortlessly, even in a rough, stormy sea. It sometimes rescues people from wrecked ships floundering in high seas.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"The forelegs are webbed, helping to make it an adept swimmer. It can be seen swimming elegantly in lakes, etc.c",
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"Often seen swimming elegantly by lakeshores. It is often mistaken for the Japanese monster Kappa.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"A GOLDUCK is an adept swimmer. It sometimes joins competitive swimmers in training. It uses psychic powers when its forehead shimmers with light.",
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Mankey = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"Extremely quick to anger. It could be docile one moment then thrashing away the next instant.",
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"An agile POKéMON that lives in trees. It angers easily and will not hesitate to attack anything.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"It is extremely ill-tempered. Groups of them will attack any handy target for no reason.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"It’s unsafe to approach if it gets violently enraged for no reason and can’t distinguish friends from foes.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"It lives in groups in the treetops. If it loses sight of its group, it becomes infuriated by its loneliness.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"When MANKEY starts shaking and its nasal breathing turns rough, it’s a sure sign that it is becoming angry. However, because it goes into a towering rage almost instantly, it is impossible for anyone to flee its wrath.",
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"Light and agile on its feet, and ferocious in temperament. When angered, it flies into an uncontrollable frenzy.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"Extremely quick to anger. It could be docile one moment, then thrashing away the next instant.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"When it starts shaking and its nasal breathing turns rough, it’s a sure sign of anger. However, since this happens instantly, there is no time to flee.",
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Primeape = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"Always furious and tenacious to boot. It will not abandon chasing its quarry until it is caught.",
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"It stops being angry only when nobody else is around. To view this moment is very difficult.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"If approached while asleep, it may awaken and angrily give chase in a groggy state of semi-sleep.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"It becomes wildly furious if it even senses someone looking at it. It chases anyone that meets its glare.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"It will beat up anyone who makes it mad, even if it has to chase them until the end of the world.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"When PRIMEAPE becomes furious, its blood circulation is boosted. In turn, its muscles are made even stronger. However, it also becomes much less intelligent at the same time.",
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"It is always outrageously furious. If it gives chase, it will tenaciously track the target no matter how far.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"Always furious and tenacious to boot. It will not abandon chasing its quarry until it catches up.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"When it becomes furious, its blood circulation becomes more robust, and its muscles are made stronger. But it also becomes much less intelligent.",
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Growlithe = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"Very protective of its territory. It will bark and bite to repel intruders from its space.",
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"A POKéMON with a friendly nature. However, it will bark fiercely at anything invading its territory.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"It has a brave and trustworthy nature. It fearlessly stands up to bigger and stronger foes.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"Extremely loyal, it will fearlessly bark at any opponent to protect its own trainer from harm.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"It controls a big territory. If it detects an unknown smell, it roars loudly to force out the intruder.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"GROWLITHE has a superb sense of smell. Once it smells anything, this POKéMON won’t forget the scent, no matter what. It uses its advanced olfactory sense to determine the emotions of other living things.",
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"Very friendly and faithful to people. It will try to repel enemies by barking and biting.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"It is very protective of its territory. It will bark and bite to repel intruders from its space.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"Its superb sense of smell ensures that this POKéMON won’t forget any scent, no matter what. It uses its sense of smell to detect the emotions of others.",
|
||||
),
|
||||
];
|
||||
static const List<DexEntry> Arcanine = [
|
||||
DexEntry(
|
||||
Game.Red,
|
||||
"A POKéMON that has been admired since the past for its beauty. It runs agilely as if on wings.",
|
||||
additionalGames: [Game.Blue],
|
||||
),
|
||||
DexEntry(
|
||||
Game.Yellow,
|
||||
"A legendary POKéMON in China. Many people are charmed by its grace and beauty while running.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Gold,
|
||||
"This legendary Chinese POKEMON is considered magnificent. Many people are enchanted by its grand mane.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Silver,
|
||||
"Its magnificent bark conveys a sense of majesty. Anyone hearing it can’t help but grovel before it.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Crystal,
|
||||
"An ancient picture scroll shows that people were attracted to its movement as it ran through prairies.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Ruby,
|
||||
"ARCANINE is known for its high speed. It is said to be capable of running over 6,200 miles in a single day and night. The fire that blazes wildly within this POKéMON’s body is its source of power.",
|
||||
additionalGames: [Game.Sapphire],
|
||||
),
|
||||
DexEntry(
|
||||
Game.FireRed,
|
||||
"A POKéMON that is described in Chinese legends. It is said to race at an unbelievable speed.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.LeafGreen,
|
||||
"A POKéMON that has long been admired for its beauty. It runs agilely as if on wings.",
|
||||
),
|
||||
DexEntry(
|
||||
Game.Emerald,
|
||||
"This fleet-footed POKéMON is said to run over 6,200 miles in a single day and night. The fire that blazes wildly within its body is its source of power.",
|
||||
),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -558,17 +558,57 @@ enum Pokemon {
|
|||
locations: Gen1Locations.Persian,
|
||||
dexEntries: Gen1DexData.Persian,
|
||||
),
|
||||
Psyduck(54, Generation.One, [Type.Water], SingleEvolution(55, 33)),
|
||||
Golduck(55, Generation.One, [Type.Water], null, previousPokemon: 54),
|
||||
Mankey(56, Generation.One, [Type.Fighting], SingleEvolution(57, 28)),
|
||||
Primeape(57, Generation.One, [Type.Fighting], null, previousPokemon: 56),
|
||||
Psyduck(
|
||||
54,
|
||||
Generation.One,
|
||||
[Type.Water],
|
||||
SingleEvolution(55, 33),
|
||||
locations: Gen1Locations.Psyduck,
|
||||
dexEntries: Gen1DexData.Psyduck,
|
||||
),
|
||||
Golduck(
|
||||
55,
|
||||
Generation.One,
|
||||
[Type.Water],
|
||||
null,
|
||||
previousPokemon: 54,
|
||||
locations: Gen1Locations.Golduck,
|
||||
dexEntries: Gen1DexData.Golduck,
|
||||
),
|
||||
Mankey(
|
||||
56,
|
||||
Generation.One,
|
||||
[Type.Fighting],
|
||||
SingleEvolution(57, 28),
|
||||
locations: Gen1Locations.Mankey,
|
||||
dexEntries: Gen1DexData.Mankey,
|
||||
),
|
||||
Primeape(
|
||||
57,
|
||||
Generation.One,
|
||||
[Type.Fighting],
|
||||
null,
|
||||
previousPokemon: 56,
|
||||
locations: Gen1Locations.Primeape,
|
||||
dexEntries: Gen1DexData.Primeape,
|
||||
),
|
||||
Growlithe(
|
||||
58,
|
||||
Generation.One,
|
||||
[Type.Fire],
|
||||
SingleEvolution(59, -1, condition: [EvolutionCondition.FireStone]),
|
||||
locations: Gen1Locations.Growlithe,
|
||||
dexEntries: Gen1DexData.Growlithe,
|
||||
),
|
||||
Arcanine(
|
||||
59,
|
||||
Generation.One,
|
||||
[Type.Fire],
|
||||
null,
|
||||
previousPokemon: 58,
|
||||
locations: Gen1Locations.Arcanine,
|
||||
dexEntries: Gen1DexData.Arcanine,
|
||||
),
|
||||
Arcanine(59, Generation.One, [Type.Fire], null, previousPokemon: 58),
|
||||
Poliwag(60, Generation.One, [Type.Water], SingleEvolution(61, 25)),
|
||||
Poliwhirl(
|
||||
61,
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:libacflutter/Constants.dart';
|
|||
import 'package:pokedex/Consts.dart';
|
||||
import 'package:pokedex/Session.dart';
|
||||
import 'package:pokedex/pokemon.dart';
|
||||
import 'package:pokedex/pokemonHelpers.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
Future<int> main(List<String> args) async {
|
||||
|
@ -48,6 +49,7 @@ class _main extends State<MainGen> {
|
|||
StringBuilder sb = StringBuilder();
|
||||
int index = 0;
|
||||
Generation? currentGen;
|
||||
Pokemon? currentPokemon;
|
||||
int maxTasks = 5;
|
||||
|
||||
int total = 0;
|
||||
|
@ -128,10 +130,12 @@ class _main extends State<MainGen> {
|
|||
}
|
||||
|
||||
var pokemon = Pokemon.values[iterNumber];
|
||||
currentPokemon = pokemon;
|
||||
|
||||
if (currentGen != pokemon.generation) {
|
||||
if (total > 0 && completed != total && completed > 0)
|
||||
if (total > 0 && completed != total && completed > 0) {
|
||||
sb.append("\n- Completed $completed/$total\n");
|
||||
}
|
||||
|
||||
sb.append("\n# Generation ${pokemon.generation.name}\n\n");
|
||||
currentGen = pokemon.generation;
|
||||
|
@ -189,8 +193,11 @@ class _main extends State<MainGen> {
|
|||
} else if (state - index == 6) {
|
||||
// Task - write file
|
||||
|
||||
if (completed != total && completed > 0)
|
||||
currentPokemon = null;
|
||||
|
||||
if (completed != total && completed > 0) {
|
||||
sb.append("\n- Completed $completed/$total\n");
|
||||
}
|
||||
|
||||
maxTasks += 3;
|
||||
statusMessage = "Saving to COMPLETED.md";
|
||||
|
@ -220,6 +227,65 @@ class _main extends State<MainGen> {
|
|||
super.didChangeDependencies();
|
||||
}
|
||||
|
||||
Widget dexEntry() {
|
||||
if (currentPokemon == null) {
|
||||
return Text("");
|
||||
} else {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Image.asset(currentPokemon!.toDexPath()),
|
||||
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text("Type: ", style: TextStyle(fontSize: 24)),
|
||||
PokemonHelpers.getTypeWidgets(currentPokemon!),
|
||||
],
|
||||
),
|
||||
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"First Seen in Generation ${currentPokemon!.generation.name}",
|
||||
style: TextStyle(fontSize: 24),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
if (currentPokemon!.extraVariants.isNotEmpty)
|
||||
Text("Extra Variations: ", style: TextStyle(fontSize: 24)),
|
||||
if (currentPokemon!.extraVariants.isNotEmpty)
|
||||
PokemonHelpers.getVariations(currentPokemon!),
|
||||
|
||||
SizedBox(height: 32),
|
||||
SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: PokemonHelpers.getEvolutions(0, currentPokemon!),
|
||||
),
|
||||
),
|
||||
|
||||
if (SessionData.enableDescription &&
|
||||
currentPokemon!.dexEntries.isNotEmpty)
|
||||
Text("Description: ", style: TextStyle(fontSize: 24)),
|
||||
if (SessionData.enableDescription &&
|
||||
currentPokemon!.dexEntries.isNotEmpty)
|
||||
PokemonHelpers.printDescription(currentPokemon!),
|
||||
|
||||
SizedBox(height: 50),
|
||||
|
||||
if (currentPokemon!.locations.isNotEmpty)
|
||||
Text("Where to find:", style: TextStyle(fontSize: 24)),
|
||||
if (currentPokemon!.locations.isNotEmpty)
|
||||
PokemonHelpers.printLocations(currentPokemon!),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
|
@ -229,6 +295,7 @@ class _main extends State<MainGen> {
|
|||
),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -244,9 +311,12 @@ class _main extends State<MainGen> {
|
|||
),
|
||||
Text("Task $state/$maxTasks", style: TextStyle(fontSize: 24)),
|
||||
LinearProgressIndicator(value: progress, minHeight: 30),
|
||||
SizedBox(height: 10),
|
||||
dexEntry(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
|||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.060225+0147
|
||||
version: 1.0.060225+1416
|
||||
|
||||
environment:
|
||||
sdk: ^3.7.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue