%inherit file="/base.mako" />
<%namespace name="dexlib" file="/pokedex/lib.mako"/>
<%def name="title()">Stored Pokémon%def>
% for savefile in c.savefiles:
% if savefile.structure.ivs.is_egg:
${h.pokedex.pokedex_img("heartgold-soulsilver/egg.png", class_='icon')}
% else:
${h.pokedex.pokemon_image(savefile.species_form,
prefix='heartgold-soulsilver/' + ('shiny/' if savefile.is_shiny else ''),
class_='icon')}
% endif
## Met stuff
Original trainer:
${savefile.structure.original_trainer_name}
${u'â' if savefile.structure.original_trainer_gender == 'male' else u'â'}
,
ID ${"%05d" % savefile.structure.original_trainer_id}
/ ${"%05d" % savefile.structure.original_trainer_secret_id}
${h.pokedex.pokedex_img("items/%s.png" % h.pokedex.filename_from_name(savefile.pokeball.name),
alt=savefile.pokeball.name, title=savefile.pokeball.name)}
% if savefile.structure.date_egg_received:
Egg received on ${savefile.structure.date_egg_received} around ${savefile.egg_location.name}.
Hatched on ${savefile.structure.date_met} around ${savefile.met_location.name} at level 1.
% else:
Encountered via ${savefile.structure.encounter_type}
and caught on ${savefile.structure.date_met}
around
${h.pokedex.pokedex_img("versions/{0}.png".format(savefile.structure.original_version))}
${savefile.met_location.name}
at level ${savefile.structure.met_at_level}.
% endif
## Ribbons
% for region, ribbon_container in ('hoenn', savefile.structure.hoenn_ribbons), \
('sinnoh', savefile.structure.sinnoh_ribbons), \
('sinnoh', savefile.structure.sinnoh_contest_ribbons):
% for ribbon in reversed(ribbon_container.__attrs__):
% if ribbon_container[ribbon]:
- ${h.pokedex.pokedex_img("ribbons/{0}/{1}.png".format(region, ribbon.replace(u'_', u'-')), alt=ribbon.replace(u'_', u' ').title(), title=ribbon.replace(u'_', u' ').title())}
% endif
% endfor
% endfor
## Shiny leaves
% if savefile.structure.shining_leaves.crown:
${h.pokedex.pokedex_img('chrome/leaf-crown.png', alt='Leaf Crown', title='Leaf Crown')}
% elif any(savefile.shiny_leaves):
% for leaf in savefile.shiny_leaves:
-
% if leaf:
${h.pokedex.pokedex_img('chrome/shiny-leaf.png', alt='Shiny Leaf', title='Shiny Leaf')}
% endif
% endfor
% endif
<%! from pokedex import formulae %>\
- Level ${savefile.level}: ${savefile.structure.exp} EXP
% if savefile.exp_to_next:
-
${savefile.exp_to_next} to level ${savefile.level + 1}
% endif
- Has ${savefile.ability.name}
-
% if savefile.held_item:
Holding ${h.pokedex.item_link(savefile.held_item)}
% else:
Holding nothing
% endif
-
${savefile.structure.happiness} happiness
% if savefile.structure.fateful_encounter:
- fateful encounter
% endif
% if savefile.structure.pokerus:
- PokéRUS! ${savefile.structure.pokerus}
% endif
-
% if savefile.structure.markings.heart:
- ♥
% else:
- ♡
% endif
% if savefile.structure.markings.diamond:
- ◆
% else:
- ◇
% endif
% if savefile.structure.markings.triangle:
- ▲
% else:
- △
% endif
% if savefile.structure.markings.square:
- ■
% else:
- □
% endif
% if savefile.structure.markings.star:
- ★
% else:
- ☆
% endif
% if savefile.structure.markings.circle:
- ●
% else:
- ○
% endif
% for stat_info in savefile.stats:
${stat_info.stat.name} |
${stat_info.base} |
|
|
${stat_info.calc} |
% endfor
% for contest_stat in ('beauty', 'cool', 'cute', 'smart', 'tough'):
${h.pokedex.pokedex_img("chrome/contest/{0}.png".format(contest_stat))} |
${savefile.structure['contest_' + contest_stat]}
|
% endfor
Sheen |
${savefile.structure.contest_sheen}
|
## Moves
${dexlib.move_table_columns()}
% for move, pp in zip(savefile.moves, savefile.move_pp):
% if move:
${dexlib.move_table_row(move, pp_override=pp)}
% else:
${dexlib.move_table_blank_row()}
% endif
% endfor
% endfor