Petr Viktorin
85d779ba83
Move Markdown handling to the translation classes
...
- the Session has a `pokedex_link_maker` property, whose `object_url`
method is used to make URLs in Markdown
- pokemon.names_table.name is now an ordinary Unicode column
- pokemon.name is a MarkdownString that is aware of the session and the
language the string is in
- pokemon.name_map is a dict-like association_proxy of the above
- move.effect works similarly, with transparent $effect_chance substitution
as before
2011-04-28 23:42:56 +03:00
Petr Viktorin
5a6ff3d27b
Fix some move short effects
2011-04-28 23:42:56 +03:00
Petr Viktorin
059f7dfc55
Autofill empty labels in Markdown links
...
- as_text() is now a function that takes the session as an argument
- likewise as_html(), which also takes URL makers and the language
- since there should be only one link extension, it is registered by
setting default_link_extension, not appending to markdown_extensions.
This only affects the __html__ attribute.
2011-04-28 23:42:56 +03:00
Petr Viktorin
051d6563a4
Don't try to replace the $effect_chance in missing effect translations
2011-04-28 23:42:56 +03:00
Petr Viktorin
733bedd602
Remove explicit labels that match the target's name from Markdown links
2011-04-28 23:42:56 +03:00
Petr Viktorin
98dcc613e2
Use relationship() instead of the deprecated relation(). #596
2011-04-28 23:31:38 +03:00
Petr Viktorin
4a9a4bfc62
Fix names of evolution triggers
2011-04-28 23:31:38 +03:00
Petr Viktorin
7767d546ac
Don't recreate the lookup index in tests
2011-04-28 23:31:38 +03:00
Petr Viktorin
3c17720a1c
order_by_name: properly fall back to the specified languages, or identifier
...
Sometimes, translations are incomplete. Handle this gracefully by allowing
fallback languages. If there are none, fall back to the identifier to get
at least some order.
2011-04-28 23:31:38 +03:00
Petr Viktorin
247f7ead43
Add __init__.py to pokedex/util
2011-04-28 23:31:38 +03:00
Petr Viktorin
01ba8d77ec
Add some tests for form-changing & event pokémon
2011-04-27 22:50:14 +03:00
Lynn "Zhorken" Vaughan
4b5de689f8
Give Rotom's forms an explicit order.
...
The in-game Pokédex actually lists them in this order now, rather than
whatever order you see them in.
2011-04-27 14:25:57 -04:00
Petr Viktorin
d99d9219d2
Shedinja fixes
2011-04-27 18:49:02 +03:00
Petr Viktorin
5fb0eed9dc
Take Shedinja's 'shed' evolution into account.
2011-04-27 18:00:35 +03:00
Petr Viktorin
11d803fd63
Some love for the interface & tests
2011-04-27 16:00:50 +03:00
Petr Viktorin
b27187e99a
Rewrite _HeapDict.pop() a bit
2011-04-27 14:50:07 +03:00
Petr Viktorin
e4c0d0b16b
Share session across tests
2011-04-27 14:30:11 +03:00
Petr Viktorin
d746716575
Cache common stuff. Remove goal from a_star.
2011-04-27 14:21:24 +03:00
Petr Viktorin
cb78144e8d
print 'Illegal move combination.'
2011-04-27 13:33:08 +03:00
Petr Viktorin
0f28e1ebda
Make the trade table more sparse
2011-04-27 13:16:39 +03:00
Petr Viktorin
15b92851ed
Add a profiling harness
2011-04-27 04:58:15 +03:00
Petr Viktorin
681d56387d
Eliminate some unneeded node creation
2011-04-27 04:47:36 +03:00
Petr Viktorin
0de03e864f
Optimize some set operations
2011-04-27 04:34:29 +03:00
Petr Viktorin
b2e54ca1ea
Merge A* in. General improvements.
2011-04-27 04:13:54 +03:00
Petr Viktorin
88b9a216c7
Misc.
2011-04-27 03:17:07 +03:00
Petr Viktorin
add72ef5da
Add a docstring
2011-04-27 02:35:11 +03:00
Petr Viktorin
6f535fdba4
Improve breeding a bit. And, add Unicode
2011-04-27 02:24:57 +03:00
Petr Viktorin
7fe9e62be3
Add Sketch. And some tests.
2011-04-27 02:04:28 +03:00
Petr Viktorin
266f863334
Yet another breed compatibility check
2011-04-27 01:04:14 +03:00
Petr Viktorin
4f8108d61b
Fix up breeding
2011-04-27 00:51:40 +03:00
Petr Viktorin
8dee48d966
Misc.
2011-04-26 21:04:29 +03:00
Petr Viktorin
02dd22eaf4
Make Volt Tackle work again
2011-04-26 20:22:05 +03:00
Petr Viktorin
a626886ec2
Working on breeding
2011-04-26 20:09:04 +03:00
Petr Viktorin
054421d93d
Prettify output
2011-04-26 18:05:16 +03:00
Petr Viktorin
237830d523
Trading, evolution, and grow expansion
2011-04-26 17:02:08 +03:00
Petr Viktorin
858e177e7d
Basic move expansion
2011-04-26 16:11:11 +03:00
Petr Viktorin
27570525ff
Load babies
2011-04-26 13:56:29 +03:00
Petr Viktorin
a6647d95a4
Deduplicate version groups
2011-04-26 13:32:25 +03:00
Petr Viktorin
0d75f50b7b
Breed graph construction, part II
2011-04-26 12:53:48 +03:00
Petr Viktorin
2f8611458d
Breed graph construction, part I
2011-04-26 03:14:32 +03:00
Petr Viktorin
02deb8c06a
Loading pokemon
...
Just stuffing them all in memory works fine.
2011-04-26 02:50:09 +03:00
Petr Viktorin
bca84867c8
Start work on a moveset checker
2011-04-26 01:58:38 +03:00
Petr Viktorin
b4f29e83d8
Adapt spline's query timer proxy to be also useful for CLI scripts
2011-04-26 01:51:47 +03:00
Eevee
b2db58afc7
Fix discrepancy between media-accessors branches.
2011-04-17 22:35:24 -07:00
Petr Viktorin
69140a88f5
Move the rest of pokedex.util.get to pokedex.db.util
2011-04-17 22:34:05 -07:00
Petr Viktorin
f271812cf7
Break "simple" query functions out of pokedex.util.get
2011-04-17 22:34:05 -07:00
Petr Viktorin
2f014411e1
Add pokedex.util.get: helpers to get stuff out of the DB easily
2011-04-17 22:34:04 -07:00
Petr Viktorin
1f2df80a00
Make Pokemon.form an actual relation
2011-04-17 22:34:03 -07:00
Petr Viktorin
4cd68fb5e3
Typo: multilang docstring was wrong
2011-04-17 22:34:02 -07:00
Petr Viktorin
dd89c811b8
Move util.py to compatibility.py
2011-04-17 22:30:37 -07:00