diff --git a/_sources/installing.txt b/_sources/installing.txt index 44b94a9..a9d3ce3 100644 --- a/_sources/installing.txt +++ b/_sources/installing.txt @@ -65,7 +65,7 @@ Getting and installing pokedex Run the following from an empty directory:: - $ git clone git://git.veekun.com/pokedex.git + $ git clone git://github.com/veekun/pokedex.git $ pip install -E env -e pokedex This will give you two directories: pokedex (containing the source code and diff --git a/_sources/main-tables.txt b/_sources/main-tables.txt index ce76481..65909bb 100644 --- a/_sources/main-tables.txt +++ b/_sources/main-tables.txt @@ -150,6 +150,7 @@ Association tables .. dex-table:: NatureBattleStylePreference .. dex-table:: NaturePokeathlonStat .. dex-table:: PokeathlonStat +.. dex-table:: PokedexVersionGroup .. dex-table:: PokemonAbility .. dex-table:: PokemonEggGroup .. dex-table:: PokemonFormPokeathlonStat @@ -170,6 +171,7 @@ Index maps .. dex-table:: PokemonDexNumber .. dex-table:: PokemonFormGeneration .. dex-table:: PokemonGameIndex +.. dex-table:: TypeGameIndex Mics tables ----------- diff --git a/_sources/usage.txt b/_sources/usage.txt index 2d3c08b..50b39fc 100644 --- a/_sources/usage.txt +++ b/_sources/usage.txt @@ -108,9 +108,9 @@ For example, you can get a list of all pokémon species, sorted by their Charmander Charmeleon ... - Keldeo - Meloetta - Genesect + Xerneas + Yveltal + Zygarde Or to order by :attr:`~pokedex.db.tables.PokemonSpecies.name`: @@ -123,7 +123,7 @@ Or to order by :attr:`~pokedex.db.tables.PokemonSpecies.name`: Abomasnow ... - Zweilous + Zygarde Filtering @@ -169,9 +169,9 @@ example: Petal Dance (120) Power Whip (120) Seed Flare (120) - SolarBeam (120) + Solar Beam (120) Wood Hammer (120) - Leaf Storm (140) + Leaf Storm (130) Frenzy Plant (150) That concludes our brief tutorial. diff --git a/genindex.html b/genindex.html index 127c550..a79f98a 100644 --- a/genindex.html +++ b/genindex.html @@ -96,6 +96,10 @@ diff --git a/installing.html b/installing.html index 9798aec..3b1f8b5 100644 --- a/installing.html +++ b/installing.html @@ -106,7 +106,7 @@ will install pokedex’s own copy anyway.)

Getting and installing pokedex

Run the following from an empty directory:

-
$ git clone git://git.veekun.com/pokedex.git
+
$ git clone git://github.com/veekun/pokedex.git
 $ pip install -E env -e pokedex

This will give you two directories: pokedex (containing the source code and diff --git a/main-tables.html b/main-tables.html index 15e84d9..1864bc4 100644 --- a/main-tables.html +++ b/main-tables.html @@ -56,7 +56,7 @@

The pokédex tables

The pokedex.db.tables module defines all of the tables in the Pokédex. They are all defined with SQLAlchemy’s -declarative extension.

+declarative extension.

To introspect the tables programmatically, you can use the following:

@@ -67,7 +67,7 @@ They are all defined with SQLAlchemy’s
pokedex.db.tables.metadata
-

The SQLAlchemy MetaData containing all the +

The SQLAlchemy MetaData containing all the tables.

@@ -234,7 +234,7 @@ but only one for Unown.

(single: pokemon)

Primary key: id.

Has -id.

+id and identifier.


Columns:

Pokemon.species (species_id → PokemonSpecies.id)

@@ -273,24 +273,30 @@ but only one for Unown.

(→ PokemonForm)

A representative form of this pokémon
-

Pokemon.dream_ability -(→ Ability)

-
-

The Pokémon’s Hidden Ability

-

Association table: pokemon_abilities

-

Pokemon.encounters (→ [Encounter])

Pokemon.forms (→ [PokemonForm])

Ordered by: pokemon_forms."order" ASC, pokemon_forms.form_identifier ASC
+

Pokemon.hidden_ability +(→ Ability)

+
+

The Pokémon’s Hidden Ability

+

Association table: pokemon_abilities

+

Pokemon.items (→ [PokemonItem])

Info about items this pokémon holds in the wild

Ordered by: pokemon_items.rarity DESC

+

Pokemon.pokemon_abilities +(→ [PokemonAbility])

+
+

All abilities the Pokémon can have, as bridge rows

+

Ordered by: pokemon_abilities.slot ASC

+

Pokemon.pokemon_moves (→ [PokemonMove])

Pokemon.stats @@ -303,7 +309,14 @@ but only one for Unown.

Association table: pokemon_types

Ordered by: pokemon_types.slot ASC

-
+
+
+base_stat(stat_identifier, default=0)
+

Return this Pokemon’s base stat value for the given stat identifier, +or default if missing.

+
+ +
better_damage_class

Returns the MoveDamageClass that this Pokémon is best suited for, @@ -343,7 +356,7 @@ represent their lone “normal” form.

(single: pokemon_form)

Primary key: id.

Has -id.

+id and identifier.


Columns:

PokemonForm.form_identifier (unicode – identifier):

@@ -360,6 +373,9 @@ represent their lone “normal” form.

PokemonForm.is_battle_only (bool):

Set iff the form can only appear in battle.
+

PokemonForm.is_mega (bool):

+
+
Records whether this form is a Mega Evolution.

PokemonForm.form_order (int):

The order in which forms should be sorted within a species’ forms. Multiple forms may have equal order, in which case they should fall back on sorting by name. Used in generating pokemon_forms.order and pokemon.order.
@@ -458,21 +474,36 @@ must occur to cause a Pokémon to evolve.

PokemonEvolution.known_move (known_move_id → Move.id)

The ID of the move the Pokémon must know.
+

PokemonEvolution.known_move_type (known_move_type_id → Type.id)

+
+
The ID of the type the Pokémon must know a move of.

PokemonEvolution.minimum_happiness (int):

The minimum happiness value the Pokémon must have.

PokemonEvolution.minimum_beauty (int):

The minimum Beauty value the Pokémon must have.
+

PokemonEvolution.minimum_affection (int):

+
+
The minimum number of “affection” hearts the Pokémon must have in Pokémon-Amie.

PokemonEvolution.relative_physical_stats (int):

The required relation between the Pokémon’s Attack and Defense stats, as sgn(atk-def).

PokemonEvolution.party_species (party_species_id → PokemonSpecies.id)

The ID of the species that must be present in the party.
+

PokemonEvolution.party_type (party_type_id → Type.id)

+
+
The ID of a type that at least one party member must have.

PokemonEvolution.trade_species (trade_species_id → PokemonSpecies.id)

The ID of the species for which this one must be traded.
+

PokemonEvolution.needs_overworld_rain (bool):

+
+
True iff it needs to be raining outside of battle.
+

PokemonEvolution.turn_upside_down (bool):

+
+
True iff the 3DS needs to be turned upside-down as this Pokémon levels up.

Relationships:

PokemonEvolution.trigger (→ EvolutionTrigger)

@@ -502,7 +533,7 @@ must occur to cause a Pokémon to evolve.

ID of the move’s elemental type

Move.power (int):

-
Base power of the move
+
Base power of the move, null if it does not have a set base power.

Move.pp (int):

Base PP (Power Points) of the move, nullable if not applicable (e.g. Struggle and Shadow moves).
@@ -835,6 +866,8 @@ must occur to cause a Pokémon to evolve.

Association table: conquest_warrior_specialties

Type.damage_efficacies (→ [TypeEfficacy])

+

Type.game_indices +(→ [TypeGameIndex])

Type.move_changelog (→ [MoveChangelog])

Type.moves @@ -868,13 +901,16 @@ must occur to cause a Pokémon to evolve.

Ability.generation (generation_id → Generation.id)

The ID of the generation this ability was introduced in
-

Internationalized strings:

-

Ability.effect (unicode – markdown) via ability_prose

+

Ability.is_main_series (bool):

-
A detailed description of this ability’s effect
+
True iff the ability exists in the main series.
+

Internationalized strings:

Ability.short_effect (unicode – markdown) via ability_prose

A short summary of this ability’s effect
+

Ability.effect (unicode – markdown) via ability_prose

+
+
A detailed description of this ability’s effect

Relationships:

Ability.all_pokemon (→ [Pokemon])

@@ -892,16 +928,16 @@ must occur to cause a Pokémon to evolve.

Association table: conquest_pokemon_abilities

Ordered by: pokemon_species.conquest_order

-

Ability.dream_pokemon +

Ability.flavor_text +(→ [AbilityFlavorText])

+
+
Ordered by: ability_flavor_text.version_group_id
+

Ability.hidden_pokemon (→ [Pokemon])

Association table: pokemon_abilities

Ordered by: pokemon.order

-

Ability.flavor_text -(→ [AbilityFlavorText])

-
-
Ordered by: ability_flavor_text.version_group_id

Ability.pokemon (→ [Pokemon])

@@ -959,9 +995,6 @@ must occur to cause a Pokémon to evolve.

Generation.main_region (main_region_id → Region.id)

ID of the region this generation’s main games take place in
-

Generation.canonical_pokedex (canonical_pokedex_id → Pokedex.id)

-
-
ID of the Pokédex this generation’s main games use by default

Relationships:

Generation.abilities (→ [Ability])

@@ -996,14 +1029,11 @@ and Blue) or a single game (such as Yellow.)

Table name: version_groups

Primary key: id.

Has -id.

+id and identifier.


Columns:

VersionGroup.generation (generation_id → Generation.id)

The ID of the generation the games in this group belong to.
-

VersionGroup.pokedex (pokedex_id → Pokedex.id)

-
-
The ID of the regional Pokédex used in this version group. Null if not applicable.

VersionGroup.order (int):

Order for sorting. Almost by date of release, except similar versions are grouped together.
@@ -1018,10 +1048,16 @@ and Blue) or a single game (such as Yellow.)

(→ [MoveChangelog])

VersionGroup.move_effect_changelog (→ [MoveEffectChangelog])

+

VersionGroup.pokedexes +(→ [Pokedex])

+
+
Association table: pokedex_version_groups

VersionGroup.pokemon_move_methods (→ [PokemonMoveMethod])

Association table: version_group_pokemon_move_methods
+

VersionGroup.pokemon_moves +(→ [PokemonMove])

VersionGroup.version_group_move_methods (→ [VersionGroupPokemonMoveMethod])

VersionGroup.version_group_regions @@ -1083,12 +1119,12 @@ and Blue) or a single game (such as Yellow.)

A longer description of the Pokédex

Relationships:

-

Pokedex.canonical_for_generation -(→ [Generation])

Pokedex.version_groups (→ [VersionGroup])

-
Ordered by: version_groups."order" ASC
+

Association table: pokedex_version_groups

+

Ordered by: version_groups."order" ASC

+
@@ -1248,13 +1284,12 @@ swarm) are thus enough to define a specific encounter.

The maxmum level of the encountered Pokémon

Relationships:

-

Encounter.condition_value_map -(→ [EncounterConditionValueMap])

+

Encounter.condition_values +(→ [EncounterConditionValue])

+
+
Association table: encounter_condition_value_map

Encounter.slot (→ EncounterSlot)

-

Association Proxies:

-

Encounter.condition_values: -condition_value of self.condition_value_map

@@ -1296,8 +1331,6 @@ swarm) are thus enough to define a specific encounter.


Relationships:

EncounterConditionValue.condition (→ EncounterCondition)

-

EncounterConditionValue.encounter_map -(→ [EncounterConditionValueMap])

@@ -1312,6 +1345,10 @@ swarm) are thus enough to define a specific encounter.

Primary key: id.

Has id, identifier, and name via encounter_method_prose.

+

Columns:

+

EncounterMethod.order (int):

+
+
A good column for sorting on

Relationships:

EncounterMethod.slots (→ [EncounterSlot])

@@ -1779,6 +1816,9 @@ major ailments like paralysis and minor ailments like trapping.

Nature.likes_flavor (likes_flavor_id → ContestType.id)

ID of the Berry flavor the Pokémon likes (if hates_flavor_id is the same, the effects cancel out)
+

Nature.game_index (int):

+
+
This nature’s internal ID in the games

Relationships:

Nature.battle_style_preferences (→ [NatureBattleStylePreference])

@@ -2149,15 +2189,12 @@ Pokédexes.

Table name: encounter_condition_value_map

Primary key: encounter_id, encounter_condition_value_id.


Columns:

-

EncounterConditionValueMap.encounter (encounter_id → Encounter.id)

+

EncounterConditionValueMap.encounter_id (→ Encounter.id):

The ID of the encounter

EncounterConditionValueMap.encounter_condition_value_id (→ EncounterConditionValue.id):

The ID of the encounter condition value
-

Relationships:

-

EncounterConditionValueMap.condition_value -(→ EncounterConditionValue)

@@ -2208,7 +2245,7 @@ Pokédexes.


Columns:

Machine.machine_number (int):

-
Number of the machine for TMs, or 100 + the munber for HMs
+
Number of the machine for TMs, or 100 + the number for HMs

Machine.version_group (version_group_id → VersionGroup.id)

Versions this entry applies to
@@ -2356,6 +2393,26 @@ a particular battl style in Battle Palace or Battle Tent

(→ [NaturePokeathlonStat])

+ +
+

PokedexVersionGroup

+
+
+pokedex.db.tables.PokedexVersionGroup
+

A mapping from Pokédexes to version groups in which they appear as the +regional dex.

+

Table name: pokedex_version_groups +(single: pokedex_version_group)

+

Primary key: pokedex_id, version_group_id.

+

Columns:

+

PokedexVersionGroup.pokedex_id (→ Pokedex.id):

+
+
The ID of the Pokédex.
+

PokedexVersionGroup.version_group_id (→ VersionGroup.id):

+
+
The ID of the version group.
+
+

PokemonAbility

@@ -2366,15 +2423,15 @@ a particular battl style in Battle Palace or Battle Tent

Table name: pokemon_abilities

Primary key: pokemon_id, slot.


Columns:

-

PokemonAbility.pokemon_id (→ Pokemon.id):

+

PokemonAbility.pokemon (pokemon_id → Pokemon.id)

ID of the Pokémon
-

PokemonAbility.ability_id (→ Ability.id):

+

PokemonAbility.ability (ability_id → Ability.id)

ID of the ability
-

PokemonAbility.is_dream (bool):

+

PokemonAbility.is_hidden (bool):

-
Whether this is a Dream World ability
+
Whether this is a hidden ability

PokemonAbility.slot (int):

The ability slot, i.e. 1 or 2 for gen. IV
@@ -2704,17 +2761,38 @@ For example, Breeding didn’t exist in Gen.I, so it’s not in this tab pokedex.db.tables.PokemonGameIndex

The number of a Pokémon a game uses internally

Table name: pokemon_game_indices

-

Primary key: pokemon_id, generation_id.

+

Primary key: pokemon_id, version_id.


Columns:

PokemonGameIndex.pokemon_id (→ Pokemon.id):

Database ID of the Pokémon
-

PokemonGameIndex.generation_id (→ Generation.id):

+

PokemonGameIndex.version_id (→ Version.id):

-
Database ID of the generation
+
Database ID of the version

PokemonGameIndex.game_index (int):

-
Internal ID the generation’s games use for the Pokémon
+
Internal ID the version’s games use for the Pokémon
+
+ +
+
+

TypeGameIndex

+
+
+pokedex.db.tables.TypeGameIndex
+

The internal ID number a game uses for a type

+

Table name: type_game_indices

+

Primary key: type_id, generation_id.

+

Columns:

+

TypeGameIndex.type (type_id → Type.id)

+
+
The type
+

TypeGameIndex.generation (generation_id → Generation.id)

+
+
The generation
+

TypeGameIndex.game_index (int):

+
+
Internal ID of the type in this generation
@@ -3550,6 +3628,7 @@ ConquestTransformationWarrior.

  • NatureBattleStylePreference
  • NaturePokeathlonStat
  • PokeathlonStat
  • +
  • PokedexVersionGroup
  • PokemonAbility
  • PokemonEggGroup
  • PokemonFormPokeathlonStat
  • @@ -3569,6 +3648,7 @@ ConquestTransformationWarrior.

  • PokemonDexNumber
  • PokemonFormGeneration
  • PokemonGameIndex
  • +
  • TypeGameIndex
  • Mics tables
  • Mics tables
  • +
    base_stat() (pokedex.db.tables.Pokemon method) +
    + +
    Berry (mapped class)
    @@ -510,6 +514,10 @@ +
    PokedexVersionGroup (mapped class) +
    + +
    Pokemon (mapped class)
    @@ -639,10 +647,14 @@
    Type (mapped class)
    + +
    TypeEfficacy (mapped class) +
    +
    -
    TypeEfficacy (mapped class) +
    TypeGameIndex (mapped class)