diff --git a/fuzzy-pokedex b/fuzzy-pokedex new file mode 100755 index 0000000..a48c43a --- /dev/null +++ b/fuzzy-pokedex @@ -0,0 +1,27 @@ +#!/bin/bash + +POKEMON="$(pokemon-colorscripts -l | + fzf +m +s -i \ + --cycle \ + --reverse \ + --prompt=' ' \ + --pointer='󰐝 ' \ + --border=rounded \ + --border-label="╢ Fuzzy-Pokedex ╟" \ + --margin=4% \ + --padding=4% \ + --header="Choose Pokemon to view info" \ + --info=inline:' 󰨉 ' \ + --color='fg+:15,fg:42,preview-fg:15,label:9,preview-label:15,hl+:134,hl:123,query:134,gutter:0,border:9,prompt:15,pointer:15,marker:15' \ + --tiebreak=begin,chunk,length \ + --preview="pokemon-colorscripts -n {1} --no-title; cat /home/ez/Git/pokedex/pokeData/{1}" \ + --preview-window=65%:wrap:border-rounded \ + --bind=focus:transform-preview-label:'echo [ {1} ] ' \ + --bind=ctrl-b:preview:'pokemon-colorscripts -b -n {1} --no-title; cat /home/ez/Git/pokedex/pokeData/{1};' \ + --bind=ctrl-s:preview:'pokemon-colorscripts -s -n {1} --no-title; cat /home/ez/Git/pokedex/pokeData/{1};' \ + --bind=ctrl-n:preview:'pokemon-colorscripts -n {1} --no-title; cat /home/ez/Git/pokedex/pokeData/{1};'| + awk '{ printf "%s", $1 }')" + +pokemon-colorscripts --no-title -n "$POKEMON" +cat "/home/ez/Git/pokedex/pokeData/$POKEMON" +exit 0 diff --git a/pokeData/abomasnow b/pokeData/abomasnow new file mode 100644 index 0000000..b239ca1 --- /dev/null +++ b/pokeData/abomasnow @@ -0,0 +1,12 @@ +Name: Abomasnow +Pokedex Number: 460 +Gender Ratio:  ♂:50% ♀:50% +Abilities: Snow Warning - Soundproof (Hidden Ability) +---Base Stats--- +Total: 494 +Hp: 90 +Attack: 132 +Defence: 105 +Special Attack: 132 +Special Defence: 105 +Speed: 30 diff --git a/pokeData/abra b/pokeData/abra new file mode 100644 index 0000000..a4d61b8 --- /dev/null +++ b/pokeData/abra @@ -0,0 +1,12 @@ +Name: Abra +Pokedex Number: 063 +Gender Ratio:  ♂:75% ♀:25% +Abilities: Synchronize - Inner Focus - Magic Guard (Hidden Ability) +---Base Stats--- +Total: 310 +Hp: 25 +Attack: 20 +Defence: 15 +Special Attack: 105 +Special Defence: 55 +Speed: 90 diff --git a/pokeData/absol b/pokeData/absol new file mode 100644 index 0000000..2cb2b8f --- /dev/null +++ b/pokeData/absol @@ -0,0 +1,12 @@ +Name: Absol +Pokedex Number: 359 +Gender Ratio:  ♂:50% ♀:50% +Abilities: Pressure - Super Luck - Justified (Hidden Ability) +---Base Stats--- +Total: 465 +Hp: 65 +Attack: 150 +Defence: 60 +Special Attack: 115 +Special Defence: 60 +Speed: 115 diff --git a/pokeData/accelgor b/pokeData/accelgor new file mode 100644 index 0000000..627be86 --- /dev/null +++ b/pokeData/accelgor @@ -0,0 +1,12 @@ +Name: Accelgor +Pokedex Number: 617 +Gender Ratio:  ♂:50% ♀:50% +Abilities: Hydration - Sticky Hold - Unburden (Hidden Ability) +---Base Stats--- +Total: 495 +Hp: 80 +Attack: 70 +Defence: 40 +Special Attack: 100 +Special Defence: 60 +Speed: 145 diff --git a/pokeData/aegislash b/pokeData/aegislash new file mode 100644 index 0000000..55b0440 --- /dev/null +++ b/pokeData/aegislash @@ -0,0 +1,12 @@ +Name: Aegislash +Pokedex Number: 681 +Gender Ratio:  ♂:50% ♀:50% +Abilities: Stance Change +---Base Stats--- +Total: 520 +Hp: 60 +Attack: 150 +Defence: 50 +Special Attack: 150 +Special Defence: 50 +Speed: 60 diff --git a/pokeData/aerodactyl b/pokeData/aerodactyl new file mode 100644 index 0000000..695723d --- /dev/null +++ b/pokeData/aerodactyl @@ -0,0 +1,12 @@ +Name: Aerodactyl +Pokedex Number: 142 +Gender Ratio:  ♂:87.5% ♀:12.5% +Abilities: Rock Head - Pressure - Unnerve (Hidden Ability) +---Base Stats--- +Total: 515 +Hp: 80 +Attack: 135 +Defence: 85 +Special Attack: 70 +Special Defence: 95 +Speed: 150 diff --git a/pokeData/aggron b/pokeData/aggron new file mode 100644 index 0000000..6492f08 --- /dev/null +++ b/pokeData/aggron @@ -0,0 +1,12 @@ +Name: Aggron +Pokedex Number: 306 +Gender Ratio:  ♂:50% ♀:50% +Abilities: Sturdy - Rock Head - Heavy Metal (Hidden Ability) +---Base Stats--- +Total: 530 +Hp: 70 +Attack: 140 +Defence: 230 +Special Attack: 60 +Special Defence: 80 +Speed: 50 diff --git a/pokeData/aipom b/pokeData/aipom new file mode 100644 index 0000000..43f5e47 --- /dev/null +++ b/pokeData/aipom @@ -0,0 +1,12 @@ +Name: Aipom +Pokedex Number: 190 +Gender Ratio:  ♂:50% ♀:50% +Abilities: Run Away - Pickup - Skill Link (Hidden Ability) +---Base Stats--- +Total: 360 +Hp: 55 +Attack: 70 +Defence: 55 +Special Attack: 40 +Special Defence: 55 +Speed: 85 diff --git a/pokeData/alakazam b/pokeData/alakazam new file mode 100644 index 0000000..4f1d569 --- /dev/null +++ b/pokeData/alakazam @@ -0,0 +1,12 @@ +Name: Alakazam +Pokedex Number: 065 +Gender Ratio:  ♂:75% ♀:25% +Abilities: Synchronize - Inner Focus - Magic Guard (Hidden Ability) +---Base Stats--- +Total: 500 +Hp: 55 +Attack: 50 +Defence: 65 +Special Attack: 175 +Special Defence: 95 +Speed: 150 diff --git a/pokeData/alcremie b/pokeData/alcremie new file mode 100644 index 0000000..7c1f1a7 --- /dev/null +++ b/pokeData/alcremie @@ -0,0 +1,12 @@ +Name: Alcremie +Pokedex Number: 869 +Gender Ratio:  ♂:0% ♀:100% +Abilities: Sweet Veil - Aroma Veil (Hidden Ability) +---Base Stats--- +Total: 495 +Hp: 110 +Attack: 121 +Defence: 64 +Special Attack: Max Stats")+1 : hp.find("/")-1] +attack = attack[attack.find(">")+1 : attack.find("/")-1] +defence = defence[defence.find(">")+1 : defence.find("/")-1] +spec_attack = spec_attack[spec_attack.find(">")+1 : spec_attack.find("/")-1] +spec_defence = spec_defence[spec_defence.find(">")+1 : spec_defence.find("/")-1] +speed = speed[speed.find(">")+1:speed.find("/")-1] + +######## Get Abilities ######## +abilities_index = page_info2.find("Abilities:") +abilities = page_info2[abilities_index:] +end_index = abilities.find("\n") +abilities = abilities[:end_index-1] + +######## Get Gender ######## +gender_index = page_info2.find("GenderType") +gender = page_info2[gender_index:] +end_index = gender.find("\n") +gender = gender[:end_index] +gender = gender[gender.find(" ")+1:] +if "is Genderless" in gender: + gender = "Genderless" + +######## Print everything out ######## +print("Name: ", pokemon) +print("Pokedex Number: ", pokedex_number) +print("Gender Ratio: ", str(gender)) +print(abilities) +print("---Base Stats---") +print(base_total) +print("Hp: ", hp) +print("Attack: ", attack) +print("Defence: ", defence) +print("Special Attack: ", spec_attack) +print("Special Defence: ", spec_defence) +print("Speed: ", speed) diff --git a/pokeinfoBatch b/pokeinfoBatch new file mode 100755 index 0000000..323d0bb --- /dev/null +++ b/pokeinfoBatch @@ -0,0 +1,7 @@ +#!/bin/bash + +LIST="$(pokemon-colorscripts -l | sort)" +for pokemon in $LIST; do + echo "$pokemon" + /home/ez/Git/pokedex/pokeinfo "$pokemon" > "/home/ez/Git/pokedex/pokeData/$pokemon" +done