237
237
<div id =" dex-header" >
238
238
<a href =" ${url.current(name=c.prev_species.name.lower(), form=None)}" id =" dex-header-prev" class =" dex-box-link" >
239
239
<img src =" ${h.static_uri('spline', 'icons/control-180.png')}" alt =" «" >
240
- ${ h.pokedex. pokemon_icon(c.prev_species.default_pokemon, alt = " " )}
240
+ ${ pokemon_icon(c.prev_species.default_pokemon, alt = " " )}
241
241
${ c.prev_species.id} : ${ c.prev_species.name}
242
242
</a >
243
243
<a href =" ${url.current(name=c.next_species.name.lower(), form=None)}" id =" dex-header-next" class =" dex-box-link" >
244
244
${ c.next_species.id} : ${ c.next_species.name}
245
- ${ h.pokedex. pokemon_icon(c.next_species.default_pokemon, alt = " " )}
245
+ ${ pokemon_icon(c.next_species.default_pokemon, alt = " " )}
246
246
<img src =" ${h.static_uri('spline', 'icons/control.png')}" alt =" »" >
247
247
</a >
248
- ${ h.pokedex. pokemon_form_image(icon_form or c.pokemon.default_form, prefix = ' icons' )}
248
+ ${ pokemon_form_image(icon_form or c.pokemon.default_form, prefix = ' icons' )}
249
249
<br >${ c.pokemon.species.id} : ${ c.pokemon.species.name}
250
250
% if subpages:
251
251
<ul class =" inline-menu" >
295
295
% if len (column) == len (column[0 ].generation.version_groups):
296
296
## If the entire gen has been collapsed into a single column, just show
297
297
## the gen icon instead of the messy stack of version icons
298
- ${ h.pokedex. generation_icon(column[0 ].generation)}
298
+ ${ generation_icon(column[0 ].generation)}
299
299
% else :
300
300
<%
301
301
if move_method:
312
312
% if i != 0 :
313
313
<br >
314
314
% endif
315
- ${ h.pokedex. version_group_icon(version_group)}
315
+ ${ version_group_icon(version_group)}
316
316
% endfor
317
317
% endif
318
318
</th >
330
330
## rather than ignoring all but the first
331
331
% for version_group in column:
332
332
% if version_group in version_group_data:
333
- ${ h.pokedex. version_group_icon(version_group)}
333
+ ${ version_group_icon(version_group)}
334
334
% elif version_group in c.move_tutor_version_groups:
335
- <span class =" no-tutor" >${ h.pokedex. version_group_icon(version_group)} </span >
335
+ <span class =" no-tutor" >${ version_group_icon(version_group)} </span >
336
336
% endif
337
337
% endfor
338
338
</td >
365
365
% endif
366
366
</td >
367
367
% elif method.identifier == u ' egg' :
368
- <td class =" dex-moves-egg" >${ h.pokedex. chrome_img(' egg-cropped.png' ,
368
+ <td class =" dex-moves-egg" >${ chrome_img(' egg-cropped.png' ,
369
369
alt = h.literal(u " •" ))} </td >
370
370
% else :
371
371
<td >&bull ; </td >
418
418
</%def >
419
419
420
420
<%def name = "pokemon_table_row(pokemon ) ">
421
- <td class =" icon" >${ h.pokedex. pokemon_icon(pokemon)} </td >
422
- <td >${ h.pokedex. pokemon_link(pokemon)} </td >
421
+ <td class =" icon" >${ pokemon_icon(pokemon)} </td >
422
+ <td >${ pokemon_link(pokemon)} </td >
423
423
<td class =" type2" >
424
424
% for type in pokemon.types:
425
- ${ h.pokedex. type_link(type )}
425
+ ${ type_link(type )}
426
426
% endfor
427
427
</td >
428
428
<td class =" ability" >
437
437
<em >${ _pokemon_ability_link(pokemon.hidden_ability)} </em >
438
438
% endif
439
439
</td >
440
- <td >${ h.pokedex. chrome_img(' gender-rates/%d .png' % pokemon.species.gender_rate, alt = h.pokedex.gender_rate_label[pokemon.species.gender_rate])} </td >
440
+ <td >${ chrome_img(' gender-rates/%d .png' % pokemon.species.gender_rate, alt = h.pokedex.gender_rate_label[pokemon.species.gender_rate])} </td >
441
441
<td class =" egg-group" >
442
442
% for i, egg_group in enumerate (pokemon.species.egg_groups):
443
443
% if i > 0 :
487
487
<td ><a href =" ${url(controller='dex', action='moves', name=move.name.lower())}" >${ move.name} </a ></td >
488
488
% if gen_instead_of_type:
489
489
## Done on type pages; we already know the type, so show the generation instead
490
- <td class =" type" >${ h.pokedex. generation_icon(move.generation)} </td >
490
+ <td class =" type" >${ generation_icon(move.generation)} </td >
491
491
% else :
492
- <td class =" type" >${ h.pokedex. type_link(move.type)} </td >
492
+ <td class =" type" >${ type_link(move.type)} </td >
493
493
% endif
494
- <td class =" class" >${ h.pokedex. damage_class_icon(move.damage_class)} </td >
494
+ <td class =" class" >${ damage_class_icon(move.damage_class)} </td >
495
495
<td >
496
496
% if pp_override and pp_override != move.pp:
497
497
<s >${ move.pp} </s > <br > ${ pp_override}
@@ -541,11 +541,11 @@ collapse_key = h.pokedex.collapse_flavor_text_key(literal=obdurate)
541
541
%>
542
542
<dl class =" dex-flavor-text${' ' if classes else ''}${classes}" >
543
543
% for generation, group in h.pokedex.group_by_generation(flavor_text):
544
- <dt class =" dex-flavor-generation" >${ h.pokedex. generation_icon(generation)} </dt >
544
+ <dt class =" dex-flavor-generation" >${ generation_icon(generation)} </dt >
545
545
<dd >
546
546
<dl >
547
547
% for versions, text in h.pokedex.collapse_versions(group, key = collapse_key):
548
- <dt >${ h.pokedex. version_icons(* versions)} </dt >
548
+ <dt >${ version_icons(* versions)} </dt >
549
549
<dd ><p ${ ' class="dex-obdurate"' if obdurate else ' ' |n} >${ text} </p ></dd >
550
550
% endfor
551
551
</dl >
@@ -613,7 +613,7 @@ cry_url = url(controller='dex', action='media',
613
613
elif evolution.trigger.identifier == u ' use-item' :
614
614
chunks.append(h.literal(_(u " Use {article} {item} " )).format(
615
615
article = h.pokedex.article(evolution.trigger_item.name, _ = _),
616
- item = h.pokedex. item_link(evolution.trigger_item, include_icon = False )))
616
+ item = item_link(evolution.trigger_item, include_icon = False )))
617
617
elif evolution.trigger.identifier == u ' shed' :
618
618
chunks.append(
619
619
_(u " Evolve {from_pokemon} ({to_pokemon} will consume "
@@ -639,7 +639,7 @@ cry_url = url(controller='dex', action='media',
639
639
if evolution.held_item_id:
640
640
chunks.append(h.literal(_(u " while holding {article} {item} " )).format(
641
641
article = h.pokedex.article(evolution.held_item.name),
642
- item = h.pokedex. item_link(evolution.held_item, include_icon = False )))
642
+ item = item_link(evolution.held_item, include_icon = False )))
643
643
if evolution.known_move_id:
644
644
chunks.append(h.literal(_(u " knowing {0} " )).format(
645
645
h.HTML .a(evolution.known_move.name,
@@ -669,15 +669,15 @@ cry_url = url(controller='dex', action='media',
669
669
chunks.append(_(u " when Attack {0} Defense" ).format(op))
670
670
if evolution.party_species_id:
671
671
chunks.append(h.literal(_(u " with {0} in the party" )).format(
672
- h.pokedex. pokemon_link(evolution.party_species.default_pokemon, include_icon = False )))
672
+ pokemon_link(evolution.party_species.default_pokemon, include_icon = False )))
673
673
if evolution.party_type_id:
674
674
chunks.append(h.literal(_(u " with a {0} -type Pokémon in the party" )).format(
675
675
h.HTML .a(evolution.party_type.name,
676
676
href = url(controller = ' dex' , action = ' types' ,
677
677
name = evolution.party_type.name.lower()))))
678
678
if evolution.trade_species_id:
679
679
chunks.append(h.literal(_(u " in exchange for {0} " )).format(
680
- h.pokedex. pokemon_link(evolution.trade_species.default_pokemon, include_icon = False )))
680
+ pokemon_link(evolution.trade_species.default_pokemon, include_icon = False )))
681
681
if evolution.needs_overworld_rain:
682
682
chunks.append(_(u ' while it is raining outside of battle' ))
683
683
if evolution.turn_upside_down:
0 commit comments