Changeset 198
- Timestamp:
- 06/01/07 01:40:17 (3 years ago)
- Location:
- veekun/trunk
- Files:
-
- 1 modified
- 2 copied
-
lib/Vee/Dex.pm (modified) (2 diffs)
-
root/dex-images/icons/386.png (copied) (copied from veekun/trunk/root/dex-images/icons/386.png)
-
root/dex-images/icons/413.png (copied) (copied from veekun/trunk/root/dex-images/icons/413.png)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Dex.pm
r196 r198 210 210 }, { 211 211 order_by => 'id ASC', 212 columns => [qw/id name alt_formname_romaji name_jp/],212 columns => [qw/id name name_romaji name_jp/], 213 213 }); 214 @PokemonNames = map { $_->name } @pokenames;214 @PokemonNames = map { $_->name } @pokenames; 215 215 @PokemonRomaji = map { $_->name_romaji } @pokenames; 216 216 @PokemonKana = map { $_->name_jp } @pokenames; … … 264 264 # create an index of fuzzy matches 265 265 our %FuzzyMatches; 266 $FuzzyMatches{ lc $TypeNames[$_] } = { type => 'type', id => $_, name => $TypeNames[$_] } for 0 .. $#TypeNames; 266 $FuzzyMatches{ lc $_->name_jp } = 267 $FuzzyMatches{ lc $_->name_romaji } = 268 $FuzzyMatches{ lc $_->name } = { type => 'pokemon', id => $_->id, name => $_->name } for @pokenames; 269 267 270 $FuzzyMatches{ lc $movekana[$_] } = 268 271 $FuzzyMatches{ lc $moveromaji[$_] } = 269 272 $FuzzyMatches{ lc $MoveData[$_]->name } = { type => 'move', id => $_, name => $MoveData[$_]->name } for 1 .. $#MoveData; 273 274 $FuzzyMatches{ lc $TypeNames[$_] } = { type => 'type', id => $_, name => $TypeNames[$_] } for 0 .. $#TypeNames; 270 275 $FuzzyMatches{ lc $AbilityNames[$_] } = { type => 'ability', id => $_, name => $AbilityNames[$_] } for 1 .. $#AbilityNames; 271 276 $FuzzyMatches{ lc $itemnames[$_] } = { type => 'item', id => $_ + 1, name => $itemnames[$_] } for 0 .. $#itemnames; 272 273 # @pokenames is used over @PokemonNames here, due to the alt_name being embedded in @PokemonNames entries274 $FuzzyMatches{ lc $_->name_jp } =275 $FuzzyMatches{ lc $_->name_romaji } =276 $FuzzyMatches{ lc $_->name } = { type => 'pokemon', id => $_->id, name => $_->name } for @pokenames;277 277 278 278 return 1;
