From c1144b70d88700f7a730f61be1e73ac683a99bda Mon Sep 17 00:00:00 2001 From: zontreck Date: Mon, 2 Jun 2025 01:26:18 -0700 Subject: [PATCH] Add more entries --- lib/Consts.dart | 2 +- lib/dexMisc.dart | 1 + lib/generations/Gen1Data.dart | 121 ++++++++++++++++++++++++++++++++++ lib/pokemon.dart | 19 +++++- pubspec.yaml | 2 +- 5 files changed, 141 insertions(+), 4 deletions(-) diff --git a/lib/Consts.dart b/lib/Consts.dart index 58b0df6..edfdee3 100644 --- a/lib/Consts.dart +++ b/lib/Consts.dart @@ -1,5 +1,5 @@ class Constants { - static const VERSION = "1.0.060225+0111"; + static const VERSION = "1.0.060225+0125"; //static bool get isMobile => Platform.isAndroid || Platform.isIOS; } diff --git a/lib/dexMisc.dart b/lib/dexMisc.dart index 0766c5d..f64675d 100644 --- a/lib/dexMisc.dart +++ b/lib/dexMisc.dart @@ -121,6 +121,7 @@ enum GameRoute { IcefallCave(commonName: "Icefall Cave"), LostCave(commonName: "Lost Cave"), SkyPillar(commonName: "Sky Pillar"), + DiglettCave(commonName: "Diglett's Cave"), // The following mark the pokemon as not usually obtainable TradeOrMigrate(commonName: "Trade or Migrate from another game"), diff --git a/lib/generations/Gen1Data.dart b/lib/generations/Gen1Data.dart index b5a508a..f703665 100644 --- a/lib/generations/Gen1Data.dart +++ b/lib/generations/Gen1Data.dart @@ -1882,6 +1882,47 @@ class Gen1Locations { additionalGames: [Game.LeafGreen], ), ]; + static const List Diglett = [ + Location( + Game.Red, + [GameRoute.DiglettCave], + additionalGames: [Game.Blue, Game.Yellow], + ), + Location( + Game.Gold, + [GameRoute.DiglettCave], + additionalGames: [Game.Silver, Game.Crystal], + ), + Location( + Game.Ruby, + [GameRoute.TradeOrMigrate], + additionalGames: [Game.Sapphire, Game.Emerald], + ), + Location( + Game.FireRed, + [GameRoute.DiglettCave], + additionalGames: [Game.LeafGreen], + ), + ]; + static const List Dugtrio = [ + Location(Game.Red, [GameRoute.DiglettCave], additionalGames: [Game.Blue]), + Location(Game.Yellow, [GameRoute.RT11, GameRoute.DiglettCave]), + Location( + Game.Gold, + [GameRoute.DiglettCave], + additionalGames: [Game.Silver, Game.Crystal], + ), + Location( + Game.Ruby, + [GameRoute.TradeOrMigrate], + additionalGames: [Game.Sapphire, Game.Emerald], + ), + Location( + Game.FireRed, + [GameRoute.DiglettCave], + additionalGames: [Game.LeafGreen], + ), + ]; } class Gen1DexData { @@ -3968,4 +4009,84 @@ class Gen1DexData { "VENOMOTH are nocturnal--they only are active at night. Their favorite prey are insects that gather around streetlights, attracted by the light in the darkness.", ), ]; + static const List Diglett = [ + DexEntry( + Game.Red, + "Lives about one yard underground where it feeds on plant roots. It sometimes appears above ground.", + additionalGames: [Game.Blue], + ), + DexEntry( + Game.Yellow, + "It prefers dark places. It spends most of its time underground, though it may pop up in caves.", + ), + DexEntry( + Game.Gold, + "Its skin is very thin. If it is exposed to light, its blood heats up, causing it to grow weak.", + ), + DexEntry( + Game.Silver, + "If a DIGLETT DIGS through a field, it leaves the soil perfectly tilled and ideal for planting crops.", + ), + DexEntry( + Game.Crystal, + "It digs underground and chews on tree roots, sticking its head out only when the sun isn’t bright.", + ), + DexEntry( + Game.Ruby, + "DIGLETT are raised in most farms. The reason is simple - wherever this POKéMON burrows, the soil is left perfectly tilled for planting crops. This soil is made ideal for growing delicious vegetables.", + additionalGames: [Game.Sapphire], + ), + DexEntry( + Game.FireRed, + "It burrows through the ground at a shallow depth. It leaves raised earth in its wake, making it easy to spot.", + ), + DexEntry( + Game.LeafGreen, + "Lives about one yard underground where it feeds on plant roots. It sometimes appears aboveground.", + ), + DexEntry( + Game.Emerald, + "DIGLETT are raised in most farms. The reason is simple--wherever they burrow, the soil is left perfectly tilled for growing delicious crops.", + ), + ]; + static const List Dugtrio = [ + DexEntry( + Game.Red, + "A team of DIGLETT triplets. It triggers huge earthquakes by burrowing 60 miles underground.", + additionalGames: [Game.Blue], + ), + DexEntry( + Game.Yellow, + "A team of triplets that can burrow over 60 MPH. Due to this, some people think it’s an earthquake.", + ), + DexEntry( + Game.Gold, + "Its three heads bob separately up and down to loosen the soil nearby, making it easier for it to burrow.", + ), + DexEntry( + Game.Silver, + "Extremely powerful, they can DIG through even the hardest ground to a depth of over 60 miles.", + ), + DexEntry( + Game.Crystal, + "These DIGLETT triplets dig over 60 miles below sea level. No one knows what it’s like underground.", + ), + DexEntry( + Game.Ruby, + "DUGTRIO are actually triplets that emerged from one body. As a result, each triplet thinks exactly like the other two triplets. They work cooperatively to burrow endlessly.", + additionalGames: [Game.Sapphire], + ), + DexEntry( + Game.FireRed, + "In battle, it digs through the ground and strikes the unsuspecting foe from an unexpected direction.", + ), + DexEntry( + Game.LeafGreen, + "A team of DIGLETT triplets. It triggers huge earthquakes by burrowing 60 miles underground.", + ), + DexEntry( + Game.Emerald, + "Because the triplets originally split from one body, they think exactly alike. They work cooperatively to burrow endlessly through the ground.", + ), + ]; } diff --git a/lib/pokemon.dart b/lib/pokemon.dart index 177efd3..d95d365 100644 --- a/lib/pokemon.dart +++ b/lib/pokemon.dart @@ -524,8 +524,23 @@ enum Pokemon { locations: Gen1Locations.Venomoth, dexEntries: Gen1DexData.Venomoth, ), - Diglett(50, Generation.One, [Type.Ground], SingleEvolution(51, 26)), - Dugtrio(51, Generation.One, [Type.Ground], null, previousPokemon: 50), + Diglett( + 50, + Generation.One, + [Type.Ground], + SingleEvolution(51, 26), + locations: Gen1Locations.Diglett, + dexEntries: Gen1DexData.Diglett, + ), + Dugtrio( + 51, + Generation.One, + [Type.Ground], + null, + previousPokemon: 50, + locations: Gen1Locations.Dugtrio, + dexEntries: Gen1DexData.Dugtrio, + ), Meowth(52, Generation.One, [Type.Normal], SingleEvolution(53, 28)), Persian(53, Generation.One, [Type.Normal], null, previousPokemon: 52), Psyduck(54, Generation.One, [Type.Water], SingleEvolution(55, 33)), diff --git a/pubspec.yaml b/pubspec.yaml index 5e612d0..ba69fcb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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+0111 +version: 1.0.060225+0125 environment: sdk: ^3.7.0