diff --git a/Jenkinsfile b/Jenkinsfile index cd226f6..cd25df2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,6 +56,13 @@ pipeline { dir ("build/windows/x64/runner/release") { bat 'tar -cvf ../../../../../windows.tgz .' } + + bat 'rmdir /S /Q build' + bat 'flutter build windows -t lib\\updateTool.dart' + + bat "build\\windows\\x64\\runner\\release\\pokedex.exe" + + stash includes: "COMPLETED.md", name: "md" } } post { @@ -66,5 +73,30 @@ pipeline { } } } + + stage ("Update COMPLETED.md") { + agent { + label "linux" + } + + steps { + script { + unstash "md" + sh ''' + #!/bin/bash + + git add COMPLETED.md + git commit -m "[BOT] Update completed.md" + git push + ''' + } + } + + post { + always { + cleanWs() + } + } + } } } \ No newline at end of file diff --git a/lib/Consts.dart b/lib/Consts.dart index 31b9fda..c0c27f5 100644 --- a/lib/Consts.dart +++ b/lib/Consts.dart @@ -1,7 +1,7 @@ import 'dart:io'; class Constants { - static const VERSION = "1.0.032625+0149"; + static const VERSION = "1.0.032625+0207"; //static bool get isMobile => Platform.isAndroid || Platform.isIOS; } diff --git a/lib/dexMisc.dart b/lib/dexMisc.dart index f53883c..fc2f211 100644 --- a/lib/dexMisc.dart +++ b/lib/dexMisc.dart @@ -38,6 +38,9 @@ enum GameRoute { BogsunkCavern(commonName: "Bogsunk Cavern"), PalletTown(commonName: "Pallet Town"), CeruleanCity(commonName: "Cerulean City"), + VermilionCity(commonName: "Vermilion City"), + LumioseCity(commonName: "Lumiose City"), + SeawardCave(commonName: "Seaward Cave"), // The following mark the pokemon as not usually obtainable TradeOrMigrate(commonName: "Trade or Migrate from another game"), diff --git a/lib/pokemon.dart b/lib/pokemon.dart index a6b7e9a..ee5c61d 100644 --- a/lib/pokemon.dart +++ b/lib/pokemon.dart @@ -585,7 +585,88 @@ enum Pokemon { ), ], ), - Squirtle(7, Generation.One, [Type.Water], SingleEvolution(8, 16)), + Squirtle( + 7, + Generation.One, + [Type.Water], + SingleEvolution(8, 16), + locations: [ + Location( + Game.Red, + [GameRoute.PalletTown], + Generation.One, + additionalGames: [Game.Blue], + ), + Location(Game.Yellow, [GameRoute.VermilionCity], 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], + ), + ], + dexEntries: [ + DexEntry( + Game.Red, + "After birth, its back swells and hardens into a shell. Powerfully sprays foam from its mouth.", + Generation.One, + additionalGames: [Game.Blue], + ), + DexEntry( + Game.Yellow, + "Shoots water at prey while in the water. Withdraws into its shell when in danger.", + Generation.One, + ), + DexEntry( + Game.Gold, + "The shell is soft when it is born. It soon becomes so resilient, prodding fingers will bounce off it.", + Generation.Two, + ), + DexEntry( + Game.Silver, + "The shell, which hardens soon after it is born, is resilient. If you poke it, it will bounce back out.", + Generation.Two, + ), + DexEntry( + Game.Crystal, + "When it feels threatened, it draws its legs inside its shell and sprays water from its mouth.", + Generation.Two, + ), + DexEntry( + Game.Ruby, + "SQUIRTLE’s shell is not merely used for protection. The shell’s rounded shape and the grooves on its surface help minimize resistance in water, enabling this POKéMON to swim at high speeds.", + Generation.Three, + additionalGames: [Game.Sapphire], + ), + DexEntry( + Game.FireRed, + "When it retracts its long neck into its shell, it squirts out water with vigorous force.", + Generation.Three, + ), + DexEntry( + Game.LeafGreen, + "After birth, its back swells and hardens into a shell. It powerfully sprays foam from its mouth.", + Generation.Three, + ), + DexEntry( + Game.Emerald, + "Its shell is not just for protection. Its rounded shape and the grooves on its surface minimize resistance in water, enabling SQUIRTLE to swim at high speeds.", + Generation.Three, + ), + ], + ), Wartortle( 8, Generation.One, diff --git a/pubspec.yaml b/pubspec.yaml index b0024c3..8984ddc 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.032625+0149 +version: 1.0.032625+0207 environment: sdk: ^3.7.0