mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
3764 lines
No EOL
267 KiB
HTML
3764 lines
No EOL
267 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
||
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
||
<title>The pokédex tables — pokedex 0.1 documentation</title>
|
||
|
||
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
|
||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||
|
||
<script type="text/javascript">
|
||
var DOCUMENTATION_OPTIONS = {
|
||
URL_ROOT: './',
|
||
VERSION: '0.1',
|
||
COLLAPSE_INDEX: false,
|
||
FILE_SUFFIX: '.html',
|
||
HAS_SOURCE: true
|
||
};
|
||
</script>
|
||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||
<link rel="top" title="pokedex 0.1 documentation" href="index.html" />
|
||
<link rel="up" title="The database schema" href="schema.html" />
|
||
<link rel="prev" title="The database schema" href="schema.html" />
|
||
</head>
|
||
<body role="document">
|
||
<div class="related" role="navigation" aria-label="related navigation">
|
||
<h3>Navigation</h3>
|
||
<ul>
|
||
<li class="right" style="margin-right: 10px">
|
||
<a href="genindex.html" title="General Index"
|
||
accesskey="I">index</a></li>
|
||
<li class="right" >
|
||
<a href="py-modindex.html" title="Python Module Index"
|
||
>modules</a> |</li>
|
||
<li class="right" >
|
||
<a href="schema.html" title="The database schema"
|
||
accesskey="P">previous</a> |</li>
|
||
<li class="nav-item nav-item-0"><a href="index.html">pokedex 0.1 documentation</a> »</li>
|
||
<li class="nav-item nav-item-1"><a href="schema.html" accesskey="U">The database schema</a> »</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="document">
|
||
<div class="documentwrapper">
|
||
<div class="bodywrapper">
|
||
<div class="body" role="main">
|
||
|
||
<div class="section" id="module-pokedex.db.tables">
|
||
<span id="the-pokedex-tables"></span><h1>The pokédex tables<a class="headerlink" href="#module-pokedex.db.tables" title="Permalink to this headline">¶</a></h1>
|
||
<p>The <a class="reference internal" href="#module-pokedex.db.tables" title="pokedex.db.tables"><code class="xref py py-mod docutils literal"><span class="pre">pokedex.db.tables</span></code></a> module defines all of the tables in the Pokédex.
|
||
They are all defined with SQLAlchemy’s
|
||
<a class="reference external" href="http://www.sqlalchemy.org/docs/orm/extensions/declarative/api.html#module-sqlalchemy.ext.declarative" title="(in SQLAlchemy v1.0)"><code class="xref py py-mod docutils literal"><span class="pre">declarative</span></code></a> extension.</p>
|
||
<p>To introspect the tables programmatically, you can use the following:</p>
|
||
<dl class="data">
|
||
<dt id="pokedex.db.tables.mapped_classes">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">mapped_classes</code><a class="headerlink" href="#pokedex.db.tables.mapped_classes" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A list of all the classes you see below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="data">
|
||
<dt id="pokedex.db.tables.metadata">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">metadata</code><a class="headerlink" href="#pokedex.db.tables.metadata" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The SQLAlchemy <a class="reference external" href="http://www.sqlalchemy.org/docs/core/metadata.html#sqlalchemy.schema.MetaData" title="(in SQLAlchemy v1.0)"><code class="xref py py-class docutils literal"><span class="pre">MetaData</span></code></a> containing all the
|
||
tables.</p>
|
||
</dd></dl>
|
||
|
||
<p>Each of the classes has a <code class="docutils literal"><span class="pre">translation_classes</span></code> attribute: a potentially
|
||
empty list of translation classes. See <code class="xref py py-mod docutils literal"><span class="pre">pokedex.db.multilang</span></code> for how
|
||
these work.</p>
|
||
<p>Many tables have these columns:</p>
|
||
<ul class="simple">
|
||
<li><strong>id</strong>: An integer primary key. Sometimes it’s semantically meaningful, most
|
||
often it isn’t.</li>
|
||
<li><strong>identifier</strong>: A string identifier of the class, and the preferred way to
|
||
access individual items.</li>
|
||
<li><strong>name</strong>: A name (uses the multilang functionality)</li>
|
||
</ul>
|
||
<div class="section" id="pokemon">
|
||
<h2>Pokémon<a class="headerlink" href="#pokemon" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-pokemonspecies">
|
||
<h3>PokemonSpecies<a class="headerlink" href="#dex-table-pokemonspecies" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonSpecies">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonSpecies</code><a class="headerlink" href="#pokedex.db.tables.PokemonSpecies" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokémon species: the standard 1–151. Or 649. Whatever.</p>
|
||
<p>ID matches the National Pokédex number of the species.</p>
|
||
<p>Table name: <em>pokemon_species</em>
|
||
(single: <em>pokemon_species</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_species_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonSpecies.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the generation this species first appeared in</div></blockquote>
|
||
<p>PokemonSpecies.<strong>evolves_from_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The species from which this one evolves</div></blockquote>
|
||
<p>PokemonSpecies.<strong>evolution_chain</strong> (evolution_chain_id → <a class="reference internal" href="#pokedex.db.tables.EvolutionChain" title="pokedex.db.tables.EvolutionChain"><code class="xref py py-class docutils literal"><span class="pre">EvolutionChain</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the species’ evolution chain (a.k.a. family)</div></blockquote>
|
||
<p>PokemonSpecies.<strong>color</strong> (color_id → <a class="reference internal" href="#pokedex.db.tables.PokemonColor" title="pokedex.db.tables.PokemonColor"><code class="xref py py-class docutils literal"><span class="pre">PokemonColor</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of this Pokémon’s Pokédex color, as used for a gimmick search function in the games.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>shape</strong> (shape_id → <a class="reference internal" href="#pokedex.db.tables.PokemonShape" title="pokedex.db.tables.PokemonShape"><code class="xref py py-class docutils literal"><span class="pre">PokemonShape</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of this Pokémon’s body shape, as used for a gimmick search function in the games.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>habitat</strong> (habitat_id → <a class="reference internal" href="#pokedex.db.tables.PokemonHabitat" title="pokedex.db.tables.PokemonHabitat"><code class="xref py py-class docutils literal"><span class="pre">PokemonHabitat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of this Pokémon’s habitat, as used for a gimmick search function in the games.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>gender_rate</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The chance of this Pokémon being female, in eighths; or -1 for genderless</div></blockquote>
|
||
<p>PokemonSpecies.<strong>capture_rate</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base capture rate; up to 255</div></blockquote>
|
||
<p>PokemonSpecies.<strong>base_happiness</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The tameness when caught by a normal ball</div></blockquote>
|
||
<p>PokemonSpecies.<strong>is_baby</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff the Pokémon is a baby, i.e. a lowest-stage Pokémon that cannot breed but whose evolved form can.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>hatch_counter</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Initial hatch counter: one must walk 255 × (hatch_counter + 1) steps before this Pokémon’s egg hatches, unless utilizing bonuses like Flame Body’s</div></blockquote>
|
||
<p>PokemonSpecies.<strong>has_gender_differences</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Set iff the species exhibits enough sexual dimorphism to have separate sets of sprites in Gen IV and beyond.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>growth_rate</strong> (growth_rate_id → <a class="reference internal" href="#pokedex.db.tables.GrowthRate" title="pokedex.db.tables.GrowthRate"><code class="xref py py-class docutils literal"><span class="pre">GrowthRate</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the growth rate for this family</div></blockquote>
|
||
<p>PokemonSpecies.<strong>forms_switchable</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff a particular individual of this species can switch between its different forms.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The order in which species should be sorted. Based on National Dex order, except families are grouped together and sorted by stage.</div></blockquote>
|
||
<p>PokemonSpecies.<strong>conquest_order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The order in which species should be sorted for Pokémon Conquest-related tables. Matches gallery order.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>PokemonSpecies.<strong>genus</strong> (<em>unicode – plaintext</em>) via <em>pokemon_species_names</em></p>
|
||
<blockquote>
|
||
<div>The short flavor text, such as “Seed” or “Lizard”; usually affixed with the word “Pokémon”</div></blockquote>
|
||
<p>PokemonSpecies.<strong>flavor_summary</strong> (<em>unicode – plaintext</em>) via <em>pokemon_species_flavor_summaries</em></p>
|
||
<blockquote>
|
||
<div>Text containing facts from all flavor texts, for languages without official game translations</div></blockquote>
|
||
<p>PokemonSpecies.<strong>form_description</strong> (<em>unicode – markdown</em>) via <em>pokemon_species_prose</em></p>
|
||
<blockquote>
|
||
<div>Description of how the forms work</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonSpecies.<strong>child_species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>The species to which this one evolves</div></blockquote>
|
||
<p>PokemonSpecies.<strong>conquest_abilities</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">conquest_pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">conquest_pokemon_abilities.slot</span></code></p>
|
||
</div></blockquote>
|
||
<p>PokemonSpecies.<strong>conquest_evolution</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestPokemonEvolution" title="pokedex.db.tables.ConquestPokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonEvolution</span></code></a>)</p>
|
||
<p>PokemonSpecies.<strong>conquest_max_links</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestMaxLink" title="pokedex.db.tables.ConquestMaxLink"><code class="xref py py-class docutils literal"><span class="pre">ConquestMaxLink</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">conquest_max_links.warrior_rank_id</span></code></div></blockquote>
|
||
<p>PokemonSpecies.<strong>conquest_move</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>)</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">conquest_pokemon_moves</span></code></div></blockquote>
|
||
<p>PokemonSpecies.<strong>conquest_stats</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestPokemonStat" title="pokedex.db.tables.ConquestPokemonStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonStat</span></code></a>])</p>
|
||
<p>PokemonSpecies.<strong>default_form</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>)</p>
|
||
<blockquote>
|
||
<div><p>A representative form of this species</p>
|
||
<p>Association table: <code class="docutils literal"><span class="pre">pokemon</span></code></p>
|
||
</div></blockquote>
|
||
<p>PokemonSpecies.<strong>default_pokemon</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>)</p>
|
||
<p>PokemonSpecies.<strong>dex_numbers</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonDexNumber" title="pokedex.db.tables.PokemonDexNumber"><code class="xref py py-class docutils literal"><span class="pre">PokemonDexNumber</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_dex_numbers.pokedex_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>PokemonSpecies.<strong>egg_groups</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.EggGroup" title="pokedex.db.tables.EggGroup"><code class="xref py py-class docutils literal"><span class="pre">EggGroup</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_egg_groups</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_egg_groups.egg_group_id</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<p>PokemonSpecies.<strong>evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
<p>PokemonSpecies.<strong>flavor_text</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpeciesFlavorText" title="pokedex.db.tables.PokemonSpeciesFlavorText"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpeciesFlavorText</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_species_flavor_text.version_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>PokemonSpecies.<strong>forms</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_forms."order"</span> <span class="pre">ASC</span></code>, <code class="docutils literal"><span class="pre">pokemon_forms.form_identifier</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<p>PokemonSpecies.<strong>pal_park</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PalPark" title="pokedex.db.tables.PalPark"><code class="xref py py-class docutils literal"><span class="pre">PalPark</span></code></a>)</p>
|
||
<p>PokemonSpecies.<strong>parent_species</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>)</p>
|
||
<blockquote>
|
||
<div>The species from which this one evolves</div></blockquote>
|
||
<p>PokemonSpecies.<strong>pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>])</p>
|
||
<p>PokemonSpecies.<strong>triggered_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemon">
|
||
<h3>Pokemon<a class="headerlink" href="#dex-table-pokemon" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Pokemon">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Pokemon</code><a class="headerlink" href="#pokedex.db.tables.Pokemon" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokémon. The core to this whole mess.</p>
|
||
<p>This table defines “Pokémon” the same way the games do: a form with
|
||
different types, moves, or other game-changing properties counts as a
|
||
different Pokémon. For example, this table contains four rows for Deoxys,
|
||
but only one for Unown.</p>
|
||
<p>Non-default forms have IDs above 10000.
|
||
IDs below 10000 match the species_id column, for convenience.</p>
|
||
<p>Table name: <em>pokemon</em>
|
||
(single: <em>pokemon</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong> and <strong>identifier</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Pokemon.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the species this Pokémon belongs to</div></blockquote>
|
||
<p>Pokemon.<strong>height</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The height of the Pokémon, in tenths of a meter (decimeters)</div></blockquote>
|
||
<p>Pokemon.<strong>weight</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The weight of the Pokémon, in tenths of a kilogram (hectograms)</div></blockquote>
|
||
<p>Pokemon.<strong>base_experience</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base EXP gained when defeating this Pokémon</div></blockquote>
|
||
<p>Pokemon.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Order for sorting. Almost national order, except families are grouped together.</div></blockquote>
|
||
<p>Pokemon.<strong>is_default</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Set for exactly one pokemon used as the default for each species.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Pokemon.<strong>abilities</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Abilities the Pokémon can have in the wild</p>
|
||
<p>Association table: <code class="docutils literal"><span class="pre">pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_abilities.slot</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<p>Pokemon.<strong>all_abilities</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>All abilities the Pokémon can have, including the Hidden Ability</p>
|
||
<p>Association table: <code class="docutils literal"><span class="pre">pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_abilities.slot</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<p>Pokemon.<strong>default_form</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>)</p>
|
||
<blockquote>
|
||
<div>A representative form of this pokémon</div></blockquote>
|
||
<p>Pokemon.<strong>encounters</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><code class="xref py py-class docutils literal"><span class="pre">Encounter</span></code></a>])</p>
|
||
<p>Pokemon.<strong>forms</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_forms."order"</span> <span class="pre">ASC</span></code>, <code class="docutils literal"><span class="pre">pokemon_forms.form_identifier</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>Pokemon.<strong>hidden_ability</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>)</p>
|
||
<blockquote>
|
||
<div><p>The Pokémon’s Hidden Ability</p>
|
||
<p>Association table: <code class="docutils literal"><span class="pre">pokemon_abilities</span></code></p>
|
||
</div></blockquote>
|
||
<p>Pokemon.<strong>items</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonItem" title="pokedex.db.tables.PokemonItem"><code class="xref py py-class docutils literal"><span class="pre">PokemonItem</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Info about items this pokémon holds in the wild</p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_items.rarity</span> <span class="pre">DESC</span></code></p>
|
||
</div></blockquote>
|
||
<p>Pokemon.<strong>pokemon_abilities</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonAbility" title="pokedex.db.tables.PokemonAbility"><code class="xref py py-class docutils literal"><span class="pre">PokemonAbility</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>All abilities the Pokémon can have, as bridge rows</p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_abilities.slot</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<p>Pokemon.<strong>pokemon_moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><code class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></code></a>])</p>
|
||
<p>Pokemon.<strong>stats</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonStat" title="pokedex.db.tables.PokemonStat"><code class="xref py py-class docutils literal"><span class="pre">PokemonStat</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_stats.stat_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>Pokemon.<strong>types</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_types</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_types.slot</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<hr><dl class="method">
|
||
<dt id="pokedex.db.tables.Pokemon.base_stat">
|
||
<code class="descname">base_stat</code><span class="sig-paren">(</span><em>stat_identifier</em>, <em>default=0</em><span class="sig-paren">)</span><a class="headerlink" href="#pokedex.db.tables.Pokemon.base_stat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Return this Pokemon’s base stat value for the given stat identifier,
|
||
or default if missing.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="pokedex.db.tables.Pokemon.better_damage_class">
|
||
<code class="descname">better_damage_class</code><a class="headerlink" href="#pokedex.db.tables.Pokemon.better_damage_class" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Returns the MoveDamageClass that this Pokémon is best suited for,
|
||
based on its attack stats.</p>
|
||
<p>If the attack stats are about equal (within 5), returns None. The
|
||
value None, not the damage class called ‘None’.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="pokedex.db.tables.Pokemon.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#pokedex.db.tables.Pokemon.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Returns a name for this Pokémon, specifying the form iff it
|
||
represents a specific PokemonForm.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="pokedex.db.tables.Pokemon.stat">
|
||
<code class="descname">stat</code><span class="sig-paren">(</span><em>stat_identifier</em><span class="sig-paren">)</span><a class="headerlink" href="#pokedex.db.tables.Pokemon.stat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Returns a PokemonStat record for the given stat name (or Stat row
|
||
object). Uses the normal has-many machinery, so all the stats are
|
||
effectively cached.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonform">
|
||
<h3>PokemonForm<a class="headerlink" href="#dex-table-pokemonform" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonForm">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonForm</code><a class="headerlink" href="#pokedex.db.tables.PokemonForm" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An individual form of a Pokémon. This includes <em>every</em> variant (except
|
||
color differences) of every Pokémon, regardless of how the games treat
|
||
them. Even Pokémon with no alternate forms have one row in this table, to
|
||
represent their lone “normal” form.</p>
|
||
<p>Forms which are not the default for their species have IDs above 10000.
|
||
IDs below 10000 correspond to ID of the species for convenience,
|
||
but this should not be relied upon.
|
||
To get the species ID of a form, join with the pokemon table.</p>
|
||
<p>Table name: <em>pokemon_forms</em>
|
||
(single: <em>pokemon_form</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong> and <strong>identifier</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonForm.<strong>form_identifier</strong> (<em>unicode – identifier</em>):</p>
|
||
<blockquote>
|
||
<div>An identifier of the form, unique among a species. May be None for the default form of the species.</div></blockquote>
|
||
<p>PokemonForm.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the base Pokémon for this form.</div></blockquote>
|
||
<p>PokemonForm.<strong>introduced_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the version group in which this form first appeared.</div></blockquote>
|
||
<p>PokemonForm.<strong>is_default</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Set for exactly one form used as the default for each pokemon (not necessarily species).</div></blockquote>
|
||
<p>PokemonForm.<strong>is_battle_only</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Set iff the form can only appear in battle.</div></blockquote>
|
||
<p>PokemonForm.<strong>is_mega</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Records whether this form is a Mega Evolution.</div></blockquote>
|
||
<p>PokemonForm.<strong>form_order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>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 <cite>pokemon_forms.order</cite>
|
||
and <cite>pokemon.order</cite>.</div></blockquote>
|
||
<p>PokemonForm.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The order in which forms should be sorted within all forms. Multiple forms may have equal order, in which case they should fall back on sorting by name.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>PokemonForm.<strong>form_name</strong> (<em>unicode – plaintext</em>) via <em>pokemon_form_names</em></p>
|
||
<blockquote>
|
||
<div>The full form name, e.g. ‘Sky Forme’, for pokémon with different forms</div></blockquote>
|
||
<p>PokemonForm.<strong>pokemon_name</strong> (<em>unicode – plaintext</em>) via <em>pokemon_form_names</em></p>
|
||
<blockquote>
|
||
<div>The full pokémon name, e.g. ‘Sky Shaymin’, for pokémon with different forms</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonForm.<strong>pokeathlon_stats</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonFormPokeathlonStat" title="pokedex.db.tables.PokemonFormPokeathlonStat"><code class="xref py py-class docutils literal"><span class="pre">PokemonFormPokeathlonStat</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_form_pokeathlon_stats.pokeathlon_stat_id</span></code></div></blockquote>
|
||
<p>PokemonForm.<strong>pokemon_form_generations</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonFormGeneration" title="pokedex.db.tables.PokemonFormGeneration"><code class="xref py py-class docutils literal"><span class="pre">PokemonFormGeneration</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_form_generations.generation_id</span></code></div></blockquote>
|
||
<p>PokemonForm.<strong>version_group</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>)</p>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>PokemonForm.<strong>species</strong>:
|
||
<code class="docutils literal"><span class="pre">species</span></code> of <code class="docutils literal"><span class="pre">self.pokemon</span></code></p>
|
||
<hr><dl class="attribute">
|
||
<dt id="pokedex.db.tables.PokemonForm.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#pokedex.db.tables.PokemonForm.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Name of this form: the form_name, if set; otherwise the species name.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-evolutionchain">
|
||
<h3>EvolutionChain<a class="headerlink" href="#dex-table-evolutionchain" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EvolutionChain">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EvolutionChain</code><a class="headerlink" href="#pokedex.db.tables.EvolutionChain" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A family of Pokémon that are linked by evolution.</p>
|
||
<p>Table name: <em>evolution_chains</em></p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>EvolutionChain.<strong>baby_trigger_item</strong> (baby_trigger_item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>Item that a parent must hold while breeding to produce a baby</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>EvolutionChain.<strong>species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_species.id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonevolution">
|
||
<h3>PokemonEvolution<a class="headerlink" href="#dex-table-pokemonevolution" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonEvolution">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonEvolution</code><a class="headerlink" href="#pokedex.db.tables.PokemonEvolution" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A required action (“trigger”) and the conditions under which the trigger
|
||
must occur to cause a Pokémon to evolve.</p>
|
||
<p>Any condition may be null if it does not apply for a particular Pokémon.</p>
|
||
<p>Table name: <em>pokemon_evolution</em></p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonEvolution.<strong>evolved_species</strong> (evolved_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the post-evolution species.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>evolution_trigger_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EvolutionTrigger" title="pokedex.db.tables.EvolutionTrigger"><code class="xref py py-class docutils literal"><span class="pre">EvolutionTrigger</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the evolution trigger.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>trigger_item</strong> (trigger_item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the item that must be used on the Pokémon.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>minimum_level</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum level for the Pokémon.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>gender</strong> (gender_id → <a class="reference internal" href="#pokedex.db.tables.Gender" title="pokedex.db.tables.Gender"><code class="xref py py-class docutils literal"><span class="pre">Gender</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon’s required gender, or None if gender doesn’t matter</div></blockquote>
|
||
<p>PokemonEvolution.<strong>location</strong> (location_id → <a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><code class="xref py py-class docutils literal"><span class="pre">Location</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the location the evolution must be triggered at.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>held_item</strong> (held_item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the item the Pokémon must hold.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>time_of_day</strong> (<em>enum: [day, night]</em>):</p>
|
||
<blockquote>
|
||
<div>The required time of day.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>known_move</strong> (known_move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the move the Pokémon must know.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>known_move_type</strong> (known_move_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the type the Pokémon must know a move of.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>minimum_happiness</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum happiness value the Pokémon must have.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>minimum_beauty</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum Beauty value the Pokémon must have.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>minimum_affection</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum number of “affection” hearts the Pokémon must have in Pokémon-Amie.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>relative_physical_stats</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The required relation between the Pokémon’s Attack and Defense stats, as sgn(atk-def).</div></blockquote>
|
||
<p>PokemonEvolution.<strong>party_species</strong> (party_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the species that must be present in the party.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>party_type</strong> (party_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of a type that at least one party member must have.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>trade_species</strong> (trade_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the species for which this one must be traded.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>needs_overworld_rain</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff it needs to be raining outside of battle.</div></blockquote>
|
||
<p>PokemonEvolution.<strong>turn_upside_down</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff the 3DS needs to be turned upside-down as this Pokémon levels up.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonEvolution.<strong>trigger</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.EvolutionTrigger" title="pokedex.db.tables.EvolutionTrigger"><code class="xref py py-class docutils literal"><span class="pre">EvolutionTrigger</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="moves">
|
||
<h2>Moves<a class="headerlink" href="#moves" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-move">
|
||
<h3>Move<a class="headerlink" href="#dex-table-move" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Move">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Move</code><a class="headerlink" href="#pokedex.db.tables.Move" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Move: technique or attack a Pokémon can learn to use.</p>
|
||
<p>IDs below 10000 match the internal IDs used in the games.
|
||
IDs above 10000 are reserved for Shadow moves from Colosseum and XD.</p>
|
||
<p>Table name: <em>moves</em>
|
||
(single: <em>move</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Move.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the generation this move first appeared in</div></blockquote>
|
||
<p>Move.<strong>type</strong> (type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move’s elemental type</div></blockquote>
|
||
<p>Move.<strong>power</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Base power of the move, null if it does not have a set base power.</div></blockquote>
|
||
<p>Move.<strong>pp</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Base PP (Power Points) of the move, null if not applicable (e.g. Struggle and Shadow moves).</div></blockquote>
|
||
<p>Move.<strong>accuracy</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Accuracy of the move; NULL means it never misses</div></blockquote>
|
||
<p>Move.<strong>priority</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The move’s priority bracket</div></blockquote>
|
||
<p>Move.<strong>target</strong> (target_id → <a class="reference internal" href="#pokedex.db.tables.MoveTarget" title="pokedex.db.tables.MoveTarget"><code class="xref py py-class docutils literal"><span class="pre">MoveTarget</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the target (range) of the move</div></blockquote>
|
||
<p>Move.<strong>damage_class</strong> (damage_class_id → <a class="reference internal" href="#pokedex.db.tables.MoveDamageClass" title="pokedex.db.tables.MoveDamageClass"><code class="xref py py-class docutils literal"><span class="pre">MoveDamageClass</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the damage class (physical/special) of the move</div></blockquote>
|
||
<p>Move.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><code class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move’s effect</div></blockquote>
|
||
<p>Move.<strong>effect_chance</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The chance for a secondary effect. What this is a chance of is specified by the move’s effect.</div></blockquote>
|
||
<p>Move.<strong>contest_type</strong> (contest_type_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><code class="xref py py-class docutils literal"><span class="pre">ContestType</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move’s Contest type (e.g. cool or smart)</div></blockquote>
|
||
<p>Move.<strong>contest_effect</strong> (contest_effect_id → <a class="reference internal" href="#pokedex.db.tables.ContestEffect" title="pokedex.db.tables.ContestEffect"><code class="xref py py-class docutils literal"><span class="pre">ContestEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move’s Contest effect</div></blockquote>
|
||
<p>Move.<strong>super_contest_effect</strong> (super_contest_effect_id → <a class="reference internal" href="#pokedex.db.tables.SuperContestEffect" title="pokedex.db.tables.SuperContestEffect"><code class="xref py py-class docutils literal"><span class="pre">SuperContestEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move’s Super Contest effect</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>Move.<strong>flavor_summary</strong> (<em>unicode – plaintext</em>) via <em>move_flavor_summaries</em></p>
|
||
<blockquote>
|
||
<div>Text containing facts from all flavor texts, for languages without official game translations</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Move.<strong>changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveChangelog" title="pokedex.db.tables.MoveChangelog"><code class="xref py py-class docutils literal"><span class="pre">MoveChangelog</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">move_changelog.changed_in_version_group_id</span> <span class="pre">DESC</span></code></div></blockquote>
|
||
<p>Move.<strong>conquest_data</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestMoveData" title="pokedex.db.tables.ConquestMoveData"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveData</span></code></a>)</p>
|
||
<p>Move.<strong>conquest_pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">conquest_pokemon_moves</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_species.conquest_order</span></code></p>
|
||
</div></blockquote>
|
||
<p>Move.<strong>contest_combo_first</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ContestCombo" title="pokedex.db.tables.ContestCombo"><code class="xref py py-class docutils literal"><span class="pre">ContestCombo</span></code></a>])</p>
|
||
<p>Move.<strong>contest_combo_second</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ContestCombo" title="pokedex.db.tables.ContestCombo"><code class="xref py py-class docutils literal"><span class="pre">ContestCombo</span></code></a>])</p>
|
||
<p>Move.<strong>flavor_text</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveFlavorText" title="pokedex.db.tables.MoveFlavorText"><code class="xref py py-class docutils literal"><span class="pre">MoveFlavorText</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">move_flavor_text.version_group_id</span></code></div></blockquote>
|
||
<p>Move.<strong>machines</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Machine" title="pokedex.db.tables.Machine"><code class="xref py py-class docutils literal"><span class="pre">Machine</span></code></a>])</p>
|
||
<p>Move.<strong>meta</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveMeta" title="pokedex.db.tables.MoveMeta"><code class="xref py py-class docutils literal"><span class="pre">MoveMeta</span></code></a>)</p>
|
||
<p>Move.<strong>meta_stat_changes</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveMetaStatChange" title="pokedex.db.tables.MoveMetaStatChange"><code class="xref py py-class docutils literal"><span class="pre">MoveMetaStatChange</span></code></a>])</p>
|
||
<p>Move.<strong>move_effect</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><code class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></code></a>)</p>
|
||
<p>Move.<strong>move_flags</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveFlagMap" title="pokedex.db.tables.MoveFlagMap"><code class="xref py py-class docutils literal"><span class="pre">MoveFlagMap</span></code></a>])</p>
|
||
<p>Move.<strong>pokemon_moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><code class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></code></a>])</p>
|
||
<p>Move.<strong>super_contest_combo_first</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.SuperContestCombo" title="pokedex.db.tables.SuperContestCombo"><code class="xref py py-class docutils literal"><span class="pre">SuperContestCombo</span></code></a>])</p>
|
||
<p>Move.<strong>super_contest_combo_second</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.SuperContestCombo" title="pokedex.db.tables.SuperContestCombo"><code class="xref py py-class docutils literal"><span class="pre">SuperContestCombo</span></code></a>])</p>
|
||
<p>Move.<strong>triggered_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>Move.<strong>contest_combo_next</strong>:
|
||
<code class="docutils literal"><span class="pre">second</span></code> of <code class="docutils literal"><span class="pre">self.contest_combo_first</span></code></p>
|
||
<p>Move.<strong>contest_combo_prev</strong>:
|
||
<code class="docutils literal"><span class="pre">first</span></code> of <code class="docutils literal"><span class="pre">self.contest_combo_second</span></code></p>
|
||
<p>Move.<strong>flags</strong>:
|
||
<code class="docutils literal"><span class="pre">flag</span></code> of <code class="docutils literal"><span class="pre">self.move_flags</span></code></p>
|
||
<p>Move.<strong>super_contest_combo_next</strong>:
|
||
<code class="docutils literal"><span class="pre">second</span></code> of <code class="docutils literal"><span class="pre">self.super_contest_combo_first</span></code></p>
|
||
<p>Move.<strong>super_contest_combo_prev</strong>:
|
||
<code class="docutils literal"><span class="pre">first</span></code> of <code class="docutils literal"><span class="pre">self.super_contest_combo_second</span></code></p>
|
||
<hr><p>Undocumented:</p>
|
||
<p>Move.<strong>effect_map</strong></p>
|
||
<p>Move.<strong>short_effect</strong></p>
|
||
<p>Move.<strong>short_effect_map</strong></p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-moveeffect">
|
||
<h3>MoveEffect<a class="headerlink" href="#dex-table-moveeffect" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveEffect">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveEffect</code><a class="headerlink" href="#pokedex.db.tables.MoveEffect" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An effect of a move.</p>
|
||
<p>Table name: <em>move_effects</em>
|
||
(single: <em>move_effect</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>MoveEffect.<strong>short_effect</strong> (<em>unicode – markdown</em>) via <em>move_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>A short summary of the effect</div></blockquote>
|
||
<p>MoveEffect.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>move_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of the effect</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveEffect.<strong>changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveEffectChangelog" title="pokedex.db.tables.MoveEffectChangelog"><code class="xref py py-class docutils literal"><span class="pre">MoveEffectChangelog</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">move_effect_changelog.changed_in_version_group_id</span> <span class="pre">DESC</span></code></div></blockquote>
|
||
<p>MoveEffect.<strong>move_changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveChangelog" title="pokedex.db.tables.MoveChangelog"><code class="xref py py-class docutils literal"><span class="pre">MoveChangelog</span></code></a>])</p>
|
||
<p>MoveEffect.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movemeta">
|
||
<h3>MoveMeta<a class="headerlink" href="#dex-table-movemeta" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveMeta">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveMeta</code><a class="headerlink" href="#pokedex.db.tables.MoveMeta" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Metadata for move effects, sorta-kinda ripped straight from the game.</p>
|
||
<p>Table name: <em>move_meta</em></p>
|
||
<p>Primary key: <strong>move_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>MoveMeta.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>A numeric ID</div></blockquote>
|
||
<p>MoveMeta.<strong>meta_category_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveMetaCategory" title="pokedex.db.tables.MoveMetaCategory"><code class="xref py py-class docutils literal"><span class="pre">MoveMetaCategory</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the move category</div></blockquote>
|
||
<p>MoveMeta.<strong>meta_ailment_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveMetaAilment" title="pokedex.db.tables.MoveMetaAilment"><code class="xref py py-class docutils literal"><span class="pre">MoveMetaAilment</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the caused ailment</div></blockquote>
|
||
<p>MoveMeta.<strong>min_hits</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Minimum number of hits per use</div></blockquote>
|
||
<p>MoveMeta.<strong>max_hits</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Maximum number of hits per use</div></blockquote>
|
||
<p>MoveMeta.<strong>min_turns</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Minimum number of turns the user is forced to use the move</div></blockquote>
|
||
<p>MoveMeta.<strong>max_turns</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Maximum number of turns the user is forced to use the move</div></blockquote>
|
||
<p>MoveMeta.<strong>drain</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>HP drain (if positive) or Recoil damage (if negative), in percent of damage done</div></blockquote>
|
||
<p>MoveMeta.<strong>healing</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Healing, in percent of user’s max HP</div></blockquote>
|
||
<p>MoveMeta.<strong>crit_rate</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Critical hit rate bonus</div></blockquote>
|
||
<p>MoveMeta.<strong>ailment_chance</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Chance to cause an ailment, in percent</div></blockquote>
|
||
<p>MoveMeta.<strong>flinch_chance</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Chance to cause flinching, in percent</div></blockquote>
|
||
<p>MoveMeta.<strong>stat_chance</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Chance to cause a stat change, in percent</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveMeta.<strong>ailment</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveMetaAilment" title="pokedex.db.tables.MoveMetaAilment"><code class="xref py py-class docutils literal"><span class="pre">MoveMetaAilment</span></code></a>)</p>
|
||
<p>MoveMeta.<strong>category</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveMetaCategory" title="pokedex.db.tables.MoveMetaCategory"><code class="xref py py-class docutils literal"><span class="pre">MoveMetaCategory</span></code></a>)</p>
|
||
<hr><dl class="attribute">
|
||
<dt id="pokedex.db.tables.MoveMeta.recoil">
|
||
<code class="descname">recoil</code><em class="property"> = <sqlalchemy.sql.elements.UnaryExpression object at 0x8e55250></em><a class="headerlink" href="#pokedex.db.tables.MoveMeta.recoil" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="items">
|
||
<h2>Items<a class="headerlink" href="#items" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-item">
|
||
<h3>Item<a class="headerlink" href="#dex-table-item" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Item">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Item</code><a class="headerlink" href="#pokedex.db.tables.Item" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An Item from the games, like “Poké Ball” or “Bicycle”.</p>
|
||
<p>IDs do not mean anything; see ItemGameIndex for the IDs used in the games.</p>
|
||
<p>Table name: <em>items</em>
|
||
(single: <em>item</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Item.<strong>category</strong> (category_id → <a class="reference internal" href="#pokedex.db.tables.ItemCategory" title="pokedex.db.tables.ItemCategory"><code class="xref py py-class docutils literal"><span class="pre">ItemCategory</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of a category this item belongs to</div></blockquote>
|
||
<p>Item.<strong>cost</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Cost of the item when bought. Items sell for half this price.</div></blockquote>
|
||
<p>Item.<strong>fling_power</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Power of the move Fling when used with this item.</div></blockquote>
|
||
<p>Item.<strong>fling_effect</strong> (fling_effect_id → <a class="reference internal" href="#pokedex.db.tables.ItemFlingEffect" title="pokedex.db.tables.ItemFlingEffect"><code class="xref py py-class docutils literal"><span class="pre">ItemFlingEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the fling-effect of the move Fling when used with this item. Note that these are different from move effects.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>Item.<strong>short_effect</strong> (<em>unicode – markdown</em>) via <em>item_prose</em></p>
|
||
<blockquote>
|
||
<div>A short summary of the effect</div></blockquote>
|
||
<p>Item.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>item_prose</em></p>
|
||
<blockquote>
|
||
<div>Detailed description of the item’s effect.</div></blockquote>
|
||
<p>Item.<strong>flavor_summary</strong> (<em>unicode – plaintext</em>) via <em>item_flavor_summaries</em></p>
|
||
<blockquote>
|
||
<div>Text containing facts from all flavor texts, for languages without official game translations</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Item.<strong>berry</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Berry" title="pokedex.db.tables.Berry"><code class="xref py py-class docutils literal"><span class="pre">Berry</span></code></a>)</p>
|
||
<p>Item.<strong>conquest_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestPokemonEvolution" title="pokedex.db.tables.ConquestPokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonEvolution</span></code></a>])</p>
|
||
<p>Item.<strong>evolution_chains</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.EvolutionChain" title="pokedex.db.tables.EvolutionChain"><code class="xref py py-class docutils literal"><span class="pre">EvolutionChain</span></code></a>])</p>
|
||
<p>Item.<strong>flags</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ItemFlag" title="pokedex.db.tables.ItemFlag"><code class="xref py py-class docutils literal"><span class="pre">ItemFlag</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">item_flag_map</span></code></div></blockquote>
|
||
<p>Item.<strong>flavor_text</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ItemFlavorText" title="pokedex.db.tables.ItemFlavorText"><code class="xref py py-class docutils literal"><span class="pre">ItemFlavorText</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">item_flavor_text.version_group_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>Item.<strong>game_indices</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ItemGameIndex" title="pokedex.db.tables.ItemGameIndex"><code class="xref py py-class docutils literal"><span class="pre">ItemGameIndex</span></code></a>])</p>
|
||
<p>Item.<strong>machines</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Machine" title="pokedex.db.tables.Machine"><code class="xref py py-class docutils literal"><span class="pre">Machine</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">machines.version_group_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>Item.<strong>pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonItem" title="pokedex.db.tables.PokemonItem"><code class="xref py py-class docutils literal"><span class="pre">PokemonItem</span></code></a>])</p>
|
||
<p>Item.<strong>required_for_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
<p>Item.<strong>triggered_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>Item.<strong>pocket</strong>:
|
||
<code class="docutils literal"><span class="pre">pocket</span></code> of <code class="docutils literal"><span class="pre">self.category</span></code></p>
|
||
<hr><dl class="attribute">
|
||
<dt id="pokedex.db.tables.Item.appears_underground">
|
||
<code class="descname">appears_underground</code><a class="headerlink" href="#pokedex.db.tables.Item.appears_underground" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>True if the item appears underground, as specified by the appropriate flag.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-berry">
|
||
<h3>Berry<a class="headerlink" href="#dex-table-berry" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Berry">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Berry</code><a class="headerlink" href="#pokedex.db.tables.Berry" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Berry, consumable item that grows on trees.</p>
|
||
<p>For data common to all items, such as the name, see the corresponding item entry.</p>
|
||
<p>ID matches the in-game berry number.</p>
|
||
<p>Table name: <em>berries</em></p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Berry.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the item that represents this Berry</div></blockquote>
|
||
<p>Berry.<strong>firmness</strong> (firmness_id → <a class="reference internal" href="#pokedex.db.tables.BerryFirmness" title="pokedex.db.tables.BerryFirmness"><code class="xref py py-class docutils literal"><span class="pre">BerryFirmness</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of this Berry’s firmness category</div></blockquote>
|
||
<p>Berry.<strong>natural_gift_power</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Natural Gift’s power when used with this Berry</div></blockquote>
|
||
<p>Berry.<strong>natural_gift_type</strong> (natural_gift_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the Type that Natural Gift has when used with this Berry</div></blockquote>
|
||
<p>Berry.<strong>size</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The size of this Berry, in millimeters</div></blockquote>
|
||
<p>Berry.<strong>max_harvest</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The maximum number of these berries that can grow on one tree in Generation IV</div></blockquote>
|
||
<p>Berry.<strong>growth_time</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked.</div></blockquote>
|
||
<p>Berry.<strong>soil_dryness</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The speed at which this Berry dries out the soil as it grows. A higher rate means the soil dries more quickly.</div></blockquote>
|
||
<p>Berry.<strong>smoothness</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The smoothness of this Berry, used in making Pokéblocks or Poffins</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Berry.<strong>berry_firmness</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.BerryFirmness" title="pokedex.db.tables.BerryFirmness"><code class="xref py py-class docutils literal"><span class="pre">BerryFirmness</span></code></a>)</p>
|
||
<p>Berry.<strong>flavors</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.BerryFlavor" title="pokedex.db.tables.BerryFlavor"><code class="xref py py-class docutils literal"><span class="pre">BerryFlavor</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">berry_flavors.contest_type_id</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="types">
|
||
<h2>Types<a class="headerlink" href="#types" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-type">
|
||
<h3>Type<a class="headerlink" href="#dex-table-type" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Type">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Type</code><a class="headerlink" href="#pokedex.db.tables.Type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Any of the elemental types Pokémon and moves can have.</p>
|
||
<p>Table name: <em>types</em>
|
||
(single: <em>type</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>type_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Type.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the generation this type first appeared in.</div></blockquote>
|
||
<p>Type.<strong>damage_class</strong> (damage_class_id → <a class="reference internal" href="#pokedex.db.tables.MoveDamageClass" title="pokedex.db.tables.MoveDamageClass"><code class="xref py py-class docutils literal"><span class="pre">MoveDamageClass</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the damage class this type’s moves had before Generation IV, null if not applicable (e.g. ???).</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Type.<strong>conquest_kingdom</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestKingdom" title="pokedex.db.tables.ConquestKingdom"><code class="xref py py-class docutils literal"><span class="pre">ConquestKingdom</span></code></a>)</p>
|
||
<p>Type.<strong>conquest_warriors</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">conquest_warrior_specialties</span></code></div></blockquote>
|
||
<p>Type.<strong>damage_efficacies</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.TypeEfficacy" title="pokedex.db.tables.TypeEfficacy"><code class="xref py py-class docutils literal"><span class="pre">TypeEfficacy</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Efficacies with this type as the attacking type.</div></blockquote>
|
||
<p>Type.<strong>game_indices</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.TypeGameIndex" title="pokedex.db.tables.TypeGameIndex"><code class="xref py py-class docutils literal"><span class="pre">TypeGameIndex</span></code></a>])</p>
|
||
<p>Type.<strong>move_changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveChangelog" title="pokedex.db.tables.MoveChangelog"><code class="xref py py-class docutils literal"><span class="pre">MoveChangelog</span></code></a>])</p>
|
||
<p>Type.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
<p>Type.<strong>pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_types</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon.order</span></code></p>
|
||
</div></blockquote>
|
||
<p>Type.<strong>target_efficacies</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.TypeEfficacy" title="pokedex.db.tables.TypeEfficacy"><code class="xref py py-class docutils literal"><span class="pre">TypeEfficacy</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Efficacies with this type as the defending type.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="abilities">
|
||
<h2>Abilities<a class="headerlink" href="#abilities" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-ability">
|
||
<h3>Ability<a class="headerlink" href="#dex-table-ability" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Ability">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Ability</code><a class="headerlink" href="#pokedex.db.tables.Ability" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An ability a Pokémon can have, such as Static or Pressure.</p>
|
||
<p>IDs below 10000 match the internal ID in the games.
|
||
IDs above 10000 are reserved for Conquest-only abilities.</p>
|
||
<p>Table name: <em>abilities</em>
|
||
(single: <em>ability</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>ability_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Ability.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the generation this ability was introduced in</div></blockquote>
|
||
<p>Ability.<strong>is_main_series</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff the ability exists in the main series.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>Ability.<strong>short_effect</strong> (<em>unicode – markdown</em>) via <em>ability_prose</em></p>
|
||
<blockquote>
|
||
<div>A short summary of this ability’s effect</div></blockquote>
|
||
<p>Ability.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>ability_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of this ability’s effect</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Ability.<strong>all_pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon."order"</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
<p>Ability.<strong>changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.AbilityChangelog" title="pokedex.db.tables.AbilityChangelog"><code class="xref py py-class docutils literal"><span class="pre">AbilityChangelog</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">ability_changelog.changed_in_version_group_id</span> <span class="pre">DESC</span></code></div></blockquote>
|
||
<p>Ability.<strong>conquest_pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">conquest_pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_species.conquest_order</span></code></p>
|
||
</div></blockquote>
|
||
<p>Ability.<strong>flavor_text</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.AbilityFlavorText" title="pokedex.db.tables.AbilityFlavorText"><code class="xref py py-class docutils literal"><span class="pre">AbilityFlavorText</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">ability_flavor_text.version_group_id</span></code></div></blockquote>
|
||
<p>Ability.<strong>hidden_pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon.order</span></code></p>
|
||
</div></blockquote>
|
||
<p>Ability.<strong>pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_abilities</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon."order"</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="language">
|
||
<h2>Language<a class="headerlink" href="#language" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-language">
|
||
<h3>Language<a class="headerlink" href="#dex-table-language" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Language">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Language</code><a class="headerlink" href="#pokedex.db.tables.Language" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A language the Pokémon games have been translated into.</p>
|
||
<p>Table name: <em>languages</em>
|
||
(single: <em>language</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>language_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Language.<strong>iso639</strong> (<em>unicode – identifier</em>):</p>
|
||
<blockquote>
|
||
<div>The two-letter code of the country where this language is spoken. Note that it is not unique.</div></blockquote>
|
||
<p>Language.<strong>iso3166</strong> (<em>unicode – identifier</em>):</p>
|
||
<blockquote>
|
||
<div>The two-letter code of the language. Note that it is not unique.</div></blockquote>
|
||
<p>Language.<strong>official</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff games are produced in the language.</div></blockquote>
|
||
<p>Language.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Order for sorting in foreign name lists.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="version-stuff">
|
||
<h2>Version stuff<a class="headerlink" href="#version-stuff" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-generation">
|
||
<h3>Generation<a class="headerlink" href="#dex-table-generation" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Generation">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Generation</code><a class="headerlink" href="#pokedex.db.tables.Generation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Generation of the Pokémon franchise.</p>
|
||
<p>Table name: <em>generations</em>
|
||
(single: <em>generation</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>generation_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Generation.<strong>main_region</strong> (main_region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><code class="xref py py-class docutils literal"><span class="pre">Region</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the region this generation’s main games take place in</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Generation.<strong>abilities</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>])</p>
|
||
<p>Generation.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
<p>Generation.<strong>pokemon_form_generations</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonFormGeneration" title="pokedex.db.tables.PokemonFormGeneration"><code class="xref py py-class docutils literal"><span class="pre">PokemonFormGeneration</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">pokemon_form_generations.game_index</span></code></div></blockquote>
|
||
<p>Generation.<strong>species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<p>Generation.<strong>types</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>])</p>
|
||
<p>Generation.<strong>version_groups</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">version_groups.order</span></code></div></blockquote>
|
||
<p>Generation.<strong>versions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">version_groups</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-versiongroup">
|
||
<h3>VersionGroup<a class="headerlink" href="#dex-table-versiongroup" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.VersionGroup">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">VersionGroup</code><a class="headerlink" href="#pokedex.db.tables.VersionGroup" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A group of versions, containing either two paired versions (such as Red
|
||
and Blue) or a single game (such as Yellow).</p>
|
||
<p>Table name: <em>version_groups</em></p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong> and <strong>identifier</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>VersionGroup.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the generation the games in this group belong to.</div></blockquote>
|
||
<p>VersionGroup.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Order for sorting. Almost by date of release, except similar versions are grouped together.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>VersionGroup.<strong>ability_changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.AbilityChangelog" title="pokedex.db.tables.AbilityChangelog"><code class="xref py py-class docutils literal"><span class="pre">AbilityChangelog</span></code></a>])</p>
|
||
<p>VersionGroup.<strong>machines</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Machine" title="pokedex.db.tables.Machine"><code class="xref py py-class docutils literal"><span class="pre">Machine</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">machines.machine_number</span></code></div></blockquote>
|
||
<p>VersionGroup.<strong>move_changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveChangelog" title="pokedex.db.tables.MoveChangelog"><code class="xref py py-class docutils literal"><span class="pre">MoveChangelog</span></code></a>])</p>
|
||
<p>VersionGroup.<strong>move_effect_changelog</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveEffectChangelog" title="pokedex.db.tables.MoveEffectChangelog"><code class="xref py py-class docutils literal"><span class="pre">MoveEffectChangelog</span></code></a>])</p>
|
||
<p>VersionGroup.<strong>pokedexes</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><code class="xref py py-class docutils literal"><span class="pre">Pokedex</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">pokedex_version_groups</span></code></div></blockquote>
|
||
<p>VersionGroup.<strong>pokemon_move_methods</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMoveMethod" title="pokedex.db.tables.PokemonMoveMethod"><code class="xref py py-class docutils literal"><span class="pre">PokemonMoveMethod</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">version_group_pokemon_move_methods</span></code></div></blockquote>
|
||
<p>VersionGroup.<strong>pokemon_moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><code class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></code></a>])</p>
|
||
<p>VersionGroup.<strong>version_group_move_methods</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroupPokemonMoveMethod" title="pokedex.db.tables.VersionGroupPokemonMoveMethod"><code class="xref py py-class docutils literal"><span class="pre">VersionGroupPokemonMoveMethod</span></code></a>])</p>
|
||
<p>VersionGroup.<strong>version_group_regions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroupRegion" title="pokedex.db.tables.VersionGroupRegion"><code class="xref py py-class docutils literal"><span class="pre">VersionGroupRegion</span></code></a>])</p>
|
||
<p>VersionGroup.<strong>versions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">versions.id</span></code></div></blockquote>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>VersionGroup.<strong>regions</strong>:
|
||
<code class="docutils literal"><span class="pre">region</span></code> of <code class="docutils literal"><span class="pre">self.version_group_regions</span></code></p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-version">
|
||
<h3>Version<a class="headerlink" href="#dex-table-version" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Version">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Version</code><a class="headerlink" href="#pokedex.db.tables.Version" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An individual main-series Pokémon game.</p>
|
||
<p>Table name: <em>versions</em>
|
||
(single: <em>version</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>version_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Version.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the version group this game belongs to.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Version.<strong>encounters</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><code class="xref py py-class docutils literal"><span class="pre">Encounter</span></code></a>])</p>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>Version.<strong>generation</strong>:
|
||
<code class="docutils literal"><span class="pre">generation</span></code> of <code class="docutils literal"><span class="pre">self.version_group</span></code></p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokedex">
|
||
<h3>Pokedex<a class="headerlink" href="#dex-table-pokedex" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Pokedex">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Pokedex</code><a class="headerlink" href="#pokedex.db.tables.Pokedex" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A collection of Pokémon species ordered in a particular way.</p>
|
||
<p>Table name: <em>pokedexes</em>
|
||
(single: <em>pokedex</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokedex_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Pokedex.<strong>region</strong> (region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><code class="xref py py-class docutils literal"><span class="pre">Region</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the region this Pokédex is used in, or None if it’s global</div></blockquote>
|
||
<p>Pokedex.<strong>is_main_series</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True if this Pokédex appears in the main series.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>Pokedex.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>pokedex_prose</em></p>
|
||
<blockquote>
|
||
<div>A longer description of the Pokédex</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Pokedex.<strong>version_groups</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokedex_version_groups</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">version_groups."order"</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-region">
|
||
<h3>Region<a class="headerlink" href="#dex-table-region" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Region">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Region</code><a class="headerlink" href="#pokedex.db.tables.Region" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Major areas of the world: Kanto, Johto, etc.</p>
|
||
<p>Table name: <em>regions</em>
|
||
(single: <em>region</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>region_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>Region.<strong>generation</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>)</p>
|
||
<p>Region.<strong>locations</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><code class="xref py py-class docutils literal"><span class="pre">Location</span></code></a>])</p>
|
||
<p>Region.<strong>pokedexes</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><code class="xref py py-class docutils literal"><span class="pre">Pokedex</span></code></a>])</p>
|
||
<p>Region.<strong>version_group_regions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroupRegion" title="pokedex.db.tables.VersionGroupRegion"><code class="xref py py-class docutils literal"><span class="pre">VersionGroupRegion</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">version_group_regions.version_group_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>Region.<strong>version_groups</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">version_group_regions</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">version_groups.order</span></code></p>
|
||
</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="encounters">
|
||
<h2>Encounters<a class="headerlink" href="#encounters" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-location">
|
||
<h3>Location<a class="headerlink" href="#dex-table-location" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Location">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Location</code><a class="headerlink" href="#pokedex.db.tables.Location" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A place in the Pokémon world.</p>
|
||
<p>Table name: <em>locations</em>
|
||
(single: <em>location</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>location_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Location.<strong>region</strong> (region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><code class="xref py py-class docutils literal"><span class="pre">Region</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the region this location is in</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Location.<strong>areas</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.LocationArea" title="pokedex.db.tables.LocationArea"><code class="xref py py-class docutils literal"><span class="pre">LocationArea</span></code></a>])</p>
|
||
<p>Location.<strong>game_indices</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.LocationGameIndex" title="pokedex.db.tables.LocationGameIndex"><code class="xref py py-class docutils literal"><span class="pre">LocationGameIndex</span></code></a>])</p>
|
||
<p>Location.<strong>triggered_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-locationarea">
|
||
<h3>LocationArea<a class="headerlink" href="#dex-table-locationarea" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.LocationArea">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">LocationArea</code><a class="headerlink" href="#pokedex.db.tables.LocationArea" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A sub-area of a location.</p>
|
||
<p>Table name: <em>location_areas</em>
|
||
(single: <em>location_area</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>location_area_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>LocationArea.<strong>location</strong> (location_id → <a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><code class="xref py py-class docutils literal"><span class="pre">Location</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the location this area is part of</div></blockquote>
|
||
<p>LocationArea.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>ID the games use for this area</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>LocationArea.<strong>encounter_rates</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.LocationAreaEncounterRate" title="pokedex.db.tables.LocationAreaEncounterRate"><code class="xref py py-class docutils literal"><span class="pre">LocationAreaEncounterRate</span></code></a>])</p>
|
||
<p>LocationArea.<strong>encounters</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><code class="xref py py-class docutils literal"><span class="pre">Encounter</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-locationareaencounterrate">
|
||
<h3>LocationAreaEncounterRate<a class="headerlink" href="#dex-table-locationareaencounterrate" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.LocationAreaEncounterRate">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">LocationAreaEncounterRate</code><a class="headerlink" href="#pokedex.db.tables.LocationAreaEncounterRate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The chance of encountering a wild Pokémon in an area.</p>
|
||
<p>In other words, how likely a step in tall grass is to trigger a wild battle.
|
||
The exact meaning of the rate varies across versions but generally higher is
|
||
more likely.</p>
|
||
<p>Table name: <em>location_area_encounter_rates</em></p>
|
||
<p>Primary key: <strong>location_area_id</strong>, <strong>encounter_method_id</strong>, <strong>version_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>LocationAreaEncounterRate.<strong>location_area</strong> (location_area_id → <a class="reference internal" href="#pokedex.db.tables.LocationArea" title="pokedex.db.tables.LocationArea"><code class="xref py py-class docutils literal"><span class="pre">LocationArea</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the area</div></blockquote>
|
||
<p>LocationAreaEncounterRate.<strong>encounter_method_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterMethod" title="pokedex.db.tables.EncounterMethod"><code class="xref py py-class docutils literal"><span class="pre">EncounterMethod</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the method</div></blockquote>
|
||
<p>LocationAreaEncounterRate.<strong>version_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the version</div></blockquote>
|
||
<p>LocationAreaEncounterRate.<strong>rate</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base encounter rate</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>LocationAreaEncounterRate.<strong>method</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.EncounterMethod" title="pokedex.db.tables.EncounterMethod"><code class="xref py py-class docutils literal"><span class="pre">EncounterMethod</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-encounter">
|
||
<h3>Encounter<a class="headerlink" href="#dex-table-encounter" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Encounter">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Encounter</code><a class="headerlink" href="#pokedex.db.tables.Encounter" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Encounters with wild Pokémon.</p>
|
||
<p>Bear with me, here.</p>
|
||
<p>Within a given area in a given game, encounters are differentiated by the
|
||
“slot” they are in and the state of the game world.</p>
|
||
<p>What the player is doing to get an encounter, such as surfing or walking
|
||
through tall grass, is called a method. Each method has its own set of
|
||
encounter slots.</p>
|
||
<p>Within a method, slots are defined primarily by rarity. Each slot can
|
||
also be affected by world conditions; for example, the 20% slot for walking
|
||
in tall grass is affected by whether a swarm is in effect in that area.
|
||
“Is there a swarm?” is a condition; “there is a swarm” and “there is not a
|
||
swarm” are the possible values of this condition.</p>
|
||
<p>A slot (20% walking in grass) and any appropriate world conditions (no
|
||
swarm) are thus enough to define a specific encounter.</p>
|
||
<p>Table name: <em>encounters</em></p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Encounter.<strong>version</strong> (version_id → <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the version this applies to</div></blockquote>
|
||
<p>Encounter.<strong>location_area</strong> (location_area_id → <a class="reference internal" href="#pokedex.db.tables.LocationArea" title="pokedex.db.tables.LocationArea"><code class="xref py py-class docutils literal"><span class="pre">LocationArea</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the location of this encounter</div></blockquote>
|
||
<p>Encounter.<strong>encounter_slot_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterSlot" title="pokedex.db.tables.EncounterSlot"><code class="xref py py-class docutils literal"><span class="pre">EncounterSlot</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the encounter slot, which determines method and rarity</div></blockquote>
|
||
<p>Encounter.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the encountered Pokémon</div></blockquote>
|
||
<p>Encounter.<strong>min_level</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum level of the encountered Pokémon</div></blockquote>
|
||
<p>Encounter.<strong>max_level</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The maximum level of the encountered Pokémon</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Encounter.<strong>condition_values</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.EncounterConditionValue" title="pokedex.db.tables.EncounterConditionValue"><code class="xref py py-class docutils literal"><span class="pre">EncounterConditionValue</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">encounter_condition_value_map</span></code></div></blockquote>
|
||
<p>Encounter.<strong>slot</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.EncounterSlot" title="pokedex.db.tables.EncounterSlot"><code class="xref py py-class docutils literal"><span class="pre">EncounterSlot</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-encountercondition">
|
||
<h3>EncounterCondition<a class="headerlink" href="#dex-table-encountercondition" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EncounterCondition">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EncounterCondition</code><a class="headerlink" href="#pokedex.db.tables.EncounterCondition" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A condition in the game world that affects Pokémon encounters, such as time of day.</p>
|
||
<p>Table name: <em>encounter_conditions</em>
|
||
(single: <em>encounter_condition</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>encounter_condition_prose</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>EncounterCondition.<strong>values</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.EncounterConditionValue" title="pokedex.db.tables.EncounterConditionValue"><code class="xref py py-class docutils literal"><span class="pre">EncounterConditionValue</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-encounterconditionvalue">
|
||
<h3>EncounterConditionValue<a class="headerlink" href="#dex-table-encounterconditionvalue" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EncounterConditionValue">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EncounterConditionValue</code><a class="headerlink" href="#pokedex.db.tables.EncounterConditionValue" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A possible state for a condition.</p>
|
||
<p>For example, the state of ‘swarm’ could be ‘swarm’ or ‘no swarm’.</p>
|
||
<p>Table name: <em>encounter_condition_values</em>
|
||
(single: <em>encounter_condition_value</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>encounter_condition_value_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>EncounterConditionValue.<strong>encounter_condition_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterCondition" title="pokedex.db.tables.EncounterCondition"><code class="xref py py-class docutils literal"><span class="pre">EncounterCondition</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the encounter condition this is a value of</div></blockquote>
|
||
<p>EncounterConditionValue.<strong>is_default</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Set if this value is the default state for the condition</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>EncounterConditionValue.<strong>condition</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.EncounterCondition" title="pokedex.db.tables.EncounterCondition"><code class="xref py py-class docutils literal"><span class="pre">EncounterCondition</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-encountermethod">
|
||
<h3>EncounterMethod<a class="headerlink" href="#dex-table-encountermethod" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EncounterMethod">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EncounterMethod</code><a class="headerlink" href="#pokedex.db.tables.EncounterMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A way the player can enter a wild encounter.</p>
|
||
<p>For example, surfing, fishing, or walking through tall grass.</p>
|
||
<p>Table name: <em>encounter_methods</em>
|
||
(single: <em>encounter_method</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>encounter_method_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>EncounterMethod.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>A good column for sorting on</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>EncounterMethod.<strong>slots</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.EncounterSlot" title="pokedex.db.tables.EncounterSlot"><code class="xref py py-class docutils literal"><span class="pre">EncounterSlot</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-encounterslot">
|
||
<h3>EncounterSlot<a class="headerlink" href="#dex-table-encounterslot" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EncounterSlot">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EncounterSlot</code><a class="headerlink" href="#pokedex.db.tables.EncounterSlot" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An abstract “slot” within a method, associated with both some set of conditions and a rarity.</p>
|
||
<p>Table name: <em>encounter_slots</em></p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>EncounterSlot.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the version group this slot is in</div></blockquote>
|
||
<p>EncounterSlot.<strong>encounter_method_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterMethod" title="pokedex.db.tables.EncounterMethod"><code class="xref py py-class docutils literal"><span class="pre">EncounterMethod</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the method</div></blockquote>
|
||
<p>EncounterSlot.<strong>slot</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>This slot’s order for the location and method</div></blockquote>
|
||
<p>EncounterSlot.<strong>rarity</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The chance of the encounter as a percentage</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>EncounterSlot.<strong>encounters</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><code class="xref py py-class docutils literal"><span class="pre">Encounter</span></code></a>])</p>
|
||
<p>EncounterSlot.<strong>method</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.EncounterMethod" title="pokedex.db.tables.EncounterMethod"><code class="xref py py-class docutils literal"><span class="pre">EncounterMethod</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="contests">
|
||
<h2>Contests<a class="headerlink" href="#contests" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-contestcombo">
|
||
<h3>ContestCombo<a class="headerlink" href="#dex-table-contestcombo" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ContestCombo">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ContestCombo</code><a class="headerlink" href="#pokedex.db.tables.ContestCombo" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Combo of two moves in a Contest.</p>
|
||
<p>Table name: <em>contest_combos</em></p>
|
||
<p>Primary key: <strong>first_move_id</strong>, <strong>second_move_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ContestCombo.<strong>first_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the first move in the combo</div></blockquote>
|
||
<p>ContestCombo.<strong>second_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the second and final move in the combo</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ContestCombo.<strong>first</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>)</p>
|
||
<p>ContestCombo.<strong>second</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-contesteffect">
|
||
<h3>ContestEffect<a class="headerlink" href="#dex-table-contesteffect" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ContestEffect">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ContestEffect</code><a class="headerlink" href="#pokedex.db.tables.ContestEffect" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Effect of a move when used in a Contest.</p>
|
||
<p>Table name: <em>contest_effects</em>
|
||
(single: <em>contest_effect</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ContestEffect.<strong>appeal</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base number of hearts the user of this move gets</div></blockquote>
|
||
<p>ContestEffect.<strong>jam</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base number of hearts the user’s opponent loses</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ContestEffect.<strong>flavor_text</strong> (<em>unicode – gametext</em>) via <em>contest_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>The in-game description of this effect</div></blockquote>
|
||
<p>ContestEffect.<strong>effect</strong> (<em>unicode – plaintext</em>) via <em>contest_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of the effect</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ContestEffect.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-supercontestcombo">
|
||
<h3>SuperContestCombo<a class="headerlink" href="#dex-table-supercontestcombo" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.SuperContestCombo">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">SuperContestCombo</code><a class="headerlink" href="#pokedex.db.tables.SuperContestCombo" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Combo of two moves in a Super Contest.</p>
|
||
<p>Table name: <em>super_contest_combos</em></p>
|
||
<p>Primary key: <strong>first_move_id</strong>, <strong>second_move_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>SuperContestCombo.<strong>first_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the first move in the combo.</div></blockquote>
|
||
<p>SuperContestCombo.<strong>second_move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the second and last move.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>SuperContestCombo.<strong>first</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>)</p>
|
||
<p>SuperContestCombo.<strong>second</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-supercontesteffect">
|
||
<h3>SuperContestEffect<a class="headerlink" href="#dex-table-supercontesteffect" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.SuperContestEffect">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">SuperContestEffect</code><a class="headerlink" href="#pokedex.db.tables.SuperContestEffect" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An effect a move can have when used in the Super Contest.</p>
|
||
<p>Table name: <em>super_contest_effects</em>
|
||
(single: <em>super_contest_effect</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>SuperContestEffect.<strong>appeal</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The number of hearts the user gains.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>SuperContestEffect.<strong>flavor_text</strong> (<em>unicode – plaintext</em>) via <em>super_contest_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>A description of the effect.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>SuperContestEffect.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="enum-tables">
|
||
<h2>Enum tables<a class="headerlink" href="#enum-tables" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-berryfirmness">
|
||
<h3>BerryFirmness<a class="headerlink" href="#dex-table-berryfirmness" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.BerryFirmness">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">BerryFirmness</code><a class="headerlink" href="#pokedex.db.tables.BerryFirmness" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Berry firmness, such as “hard” or “very soft”.</p>
|
||
<p>Table name: <em>berry_firmness</em>
|
||
(single: <em>berry_firmness</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>berry_firmness_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>BerryFirmness.<strong>berries</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Berry" title="pokedex.db.tables.Berry"><code class="xref py py-class docutils literal"><span class="pre">Berry</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-contesttype">
|
||
<h3>ContestType<a class="headerlink" href="#dex-table-contesttype" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ContestType">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ContestType</code><a class="headerlink" href="#pokedex.db.tables.ContestType" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Contest type, such as “cool” or “smart”, and their associated Berry flavors and Pokéblock colors.</p>
|
||
<p>Table name: <em>contest_types</em>
|
||
(single: <em>contest_type</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>contest_type_names</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ContestType.<strong>flavor</strong> (<em>unicode – plaintext</em>) via <em>contest_type_names</em></p>
|
||
<blockquote>
|
||
<div>The name of the corresponding Berry flavor</div></blockquote>
|
||
<p>ContestType.<strong>color</strong> (<em>unicode – plaintext</em>) via <em>contest_type_names</em></p>
|
||
<blockquote>
|
||
<div>The name of the corresponding Pokéblock color</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ContestType.<strong>hating_natures</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><code class="xref py py-class docutils literal"><span class="pre">Nature</span></code></a>])</p>
|
||
<p>ContestType.<strong>liking_natures</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><code class="xref py py-class docutils literal"><span class="pre">Nature</span></code></a>])</p>
|
||
<p>ContestType.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-egggroup">
|
||
<h3>EggGroup<a class="headerlink" href="#dex-table-egggroup" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EggGroup">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EggGroup</code><a class="headerlink" href="#pokedex.db.tables.EggGroup" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An Egg group. Usually, two Pokémon can breed if they share an Egg Group.</p>
|
||
<p>Exceptions:</p>
|
||
<p>Pokémon in the No Eggs group cannot breed.</p>
|
||
<p>Pokemon in the Ditto group can breed with any pokemon
|
||
except those in the Ditto or No Eggs groups.</p>
|
||
<p>ID matches to the internal ID used in the games.</p>
|
||
<p>Table name: <em>egg_groups</em>
|
||
(single: <em>egg_group</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>egg_group_prose</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>EggGroup.<strong>species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">pokemon_egg_groups</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_species."order"</span> <span class="pre">ASC</span></code></p>
|
||
</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-evolutiontrigger">
|
||
<h3>EvolutionTrigger<a class="headerlink" href="#dex-table-evolutiontrigger" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EvolutionTrigger">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EvolutionTrigger</code><a class="headerlink" href="#pokedex.db.tables.EvolutionTrigger" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An evolution type, such as “level” or “trade”.</p>
|
||
<p>Table name: <em>evolution_triggers</em>
|
||
(single: <em>evolution_trigger</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>evolution_trigger_prose</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>EvolutionTrigger.<strong>evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-gender">
|
||
<h3>Gender<a class="headerlink" href="#dex-table-gender" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Gender">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Gender</code><a class="headerlink" href="#pokedex.db.tables.Gender" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A gender.</p>
|
||
<p>Table name: <em>genders</em>
|
||
(single: <em>gender</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong> and <strong>identifier</strong>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>Gender.<strong>conquest_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestPokemonEvolution" title="pokedex.db.tables.ConquestPokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonEvolution</span></code></a>])</p>
|
||
<p>Gender.<strong>required_for_evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonEvolution" title="pokedex.db.tables.PokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">PokemonEvolution</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-growthrate">
|
||
<h3>GrowthRate<a class="headerlink" href="#dex-table-growthrate" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.GrowthRate">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">GrowthRate</code><a class="headerlink" href="#pokedex.db.tables.GrowthRate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Growth rate of a Pokémon, i.e. the EXP → level function.</p>
|
||
<p>Table name: <em>growth_rates</em>
|
||
(single: <em>growth_rate</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>growth_rate_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>GrowthRate.<strong>formula</strong> (<em>unicode – latex</em>):</p>
|
||
<blockquote>
|
||
<div>The formula</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>GrowthRate.<strong>evolution_chains</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<p>GrowthRate.<strong>experience_table</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Experience" title="pokedex.db.tables.Experience"><code class="xref py py-class docutils literal"><span class="pre">Experience</span></code></a>])</p>
|
||
<p>GrowthRate.<strong>max_experience_obj</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Experience" title="pokedex.db.tables.Experience"><code class="xref py py-class docutils literal"><span class="pre">Experience</span></code></a>)</p>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>GrowthRate.<strong>max_experience</strong>:
|
||
<code class="docutils literal"><span class="pre">experience</span></code> of <code class="docutils literal"><span class="pre">self.max_experience_obj</span></code></p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-itemcategory">
|
||
<h3>ItemCategory<a class="headerlink" href="#dex-table-itemcategory" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemCategory">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemCategory</code><a class="headerlink" href="#pokedex.db.tables.ItemCategory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An item category. Not official.</p>
|
||
<p>Table name: <em>item_categories</em>
|
||
(single: <em>item_category</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_category_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ItemCategory.<strong>pocket</strong> (pocket_id → <a class="reference internal" href="#pokedex.db.tables.ItemPocket" title="pokedex.db.tables.ItemPocket"><code class="xref py py-class docutils literal"><span class="pre">ItemPocket</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the pocket these items go to</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ItemCategory.<strong>items</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">items.identifier</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-itemflingeffect">
|
||
<h3>ItemFlingEffect<a class="headerlink" href="#dex-table-itemflingeffect" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemFlingEffect">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemFlingEffect</code><a class="headerlink" href="#pokedex.db.tables.ItemFlingEffect" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An effect of the move Fling when used with a specific item.</p>
|
||
<p>Table name: <em>item_fling_effects</em>
|
||
(single: <em>item_fling_effect</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ItemFlingEffect.<strong>effect</strong> (<em>unicode – plaintext</em>) via <em>item_fling_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>Description of the effect</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ItemFlingEffect.<strong>items</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-itempocket">
|
||
<h3>ItemPocket<a class="headerlink" href="#dex-table-itempocket" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemPocket">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemPocket</code><a class="headerlink" href="#pokedex.db.tables.ItemPocket" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A pocket that categorizes items. Semi-offical.</p>
|
||
<p>Table name: <em>item_pockets</em>
|
||
(single: <em>item_pocket</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_pocket_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>ItemPocket.<strong>categories</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ItemCategory" title="pokedex.db.tables.ItemCategory"><code class="xref py py-class docutils literal"><span class="pre">ItemCategory</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">item_categories.identifier</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movebattlestyle">
|
||
<h3>MoveBattleStyle<a class="headerlink" href="#dex-table-movebattlestyle" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveBattleStyle">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveBattleStyle</code><a class="headerlink" href="#pokedex.db.tables.MoveBattleStyle" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Battle Palace style.</p>
|
||
<p>See NatureBattleStylePreference.</p>
|
||
<p>Table name: <em>move_battle_styles</em>
|
||
(single: <em>move_battle_style</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_battle_style_prose</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveBattleStyle.<strong>nature_preferences</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.NatureBattleStylePreference" title="pokedex.db.tables.NatureBattleStylePreference"><code class="xref py py-class docutils literal"><span class="pre">NatureBattleStylePreference</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movedamageclass">
|
||
<h3>MoveDamageClass<a class="headerlink" href="#dex-table-movedamageclass" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveDamageClass">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveDamageClass</code><a class="headerlink" href="#pokedex.db.tables.MoveDamageClass" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Any of the damage classes moves can have, i.e. physical, special, or non-damaging.</p>
|
||
<p>Table name: <em>move_damage_classes</em>
|
||
(single: <em>move_damage_class</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_damage_class_prose</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>MoveDamageClass.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>move_damage_class_prose</em></p>
|
||
<blockquote>
|
||
<div>A description of the class</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveDamageClass.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
<p>MoveDamageClass.<strong>stats</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><code class="xref py py-class docutils literal"><span class="pre">Stat</span></code></a>])</p>
|
||
<p>MoveDamageClass.<strong>types</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movemetaailment">
|
||
<h3>MoveMetaAilment<a class="headerlink" href="#dex-table-movemetaailment" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveMetaAilment">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveMetaAilment</code><a class="headerlink" href="#pokedex.db.tables.MoveMetaAilment" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Common status ailments moves can inflict on a single Pokémon, including
|
||
major ailments like paralysis and minor ailments like trapping.</p>
|
||
<p>Table name: <em>move_meta_ailments</em>
|
||
(single: <em>move_meta_ailment</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_meta_ailment_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveMetaAilment.<strong>move_meta</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveMeta" title="pokedex.db.tables.MoveMeta"><code class="xref py py-class docutils literal"><span class="pre">MoveMeta</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movemetacategory">
|
||
<h3>MoveMetaCategory<a class="headerlink" href="#dex-table-movemetacategory" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveMetaCategory">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveMetaCategory</code><a class="headerlink" href="#pokedex.db.tables.MoveMetaCategory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Very general categories that loosely group move effects.</p>
|
||
<p>Table name: <em>move_meta_categories</em>
|
||
(single: <em>move_meta_category</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong> and <strong>identifier</strong>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>MoveMetaCategory.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>move_meta_category_prose</em></p>
|
||
<blockquote>
|
||
<div>A description of the category</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveMetaCategory.<strong>move_meta</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveMeta" title="pokedex.db.tables.MoveMeta"><code class="xref py py-class docutils literal"><span class="pre">MoveMeta</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movetarget">
|
||
<h3>MoveTarget<a class="headerlink" href="#dex-table-movetarget" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveTarget">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveTarget</code><a class="headerlink" href="#pokedex.db.tables.MoveTarget" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Targeting or “range” of a move, e.g. “Affects all opponents” or “Affects user”.</p>
|
||
<p>Table name: <em>move_targets</em>
|
||
(single: <em>move_target</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_target_prose</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>MoveTarget.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>move_target_prose</em></p>
|
||
<blockquote>
|
||
<div>A description</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveTarget.<strong>moves</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-nature">
|
||
<h3>Nature<a class="headerlink" href="#dex-table-nature" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Nature">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Nature</code><a class="headerlink" href="#pokedex.db.tables.Nature" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A nature a Pokémon can have, such as Calm or Brave.</p>
|
||
<p>Table name: <em>natures</em>
|
||
(single: <em>nature</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>nature_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Nature.<strong>decreased_stat</strong> (decreased_stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><code class="xref py py-class docutils literal"><span class="pre">Stat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the stat that this nature decreases by 10% (if decreased_stat_id is the same, the effects cancel out)</div></blockquote>
|
||
<p>Nature.<strong>increased_stat</strong> (increased_stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><code class="xref py py-class docutils literal"><span class="pre">Stat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the stat that this nature increases by 10% (if decreased_stat_id is the same, the effects cancel out)</div></blockquote>
|
||
<p>Nature.<strong>hates_flavor</strong> (hates_flavor_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><code class="xref py py-class docutils literal"><span class="pre">ContestType</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Berry flavor the Pokémon hates (if likes_flavor_id is the same, the effects cancel out)</div></blockquote>
|
||
<p>Nature.<strong>likes_flavor</strong> (likes_flavor_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><code class="xref py py-class docutils literal"><span class="pre">ContestType</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Berry flavor the Pokémon likes (if hates_flavor_id is the same, the effects cancel out)</div></blockquote>
|
||
<p>Nature.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>This nature’s internal ID in the games</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Nature.<strong>battle_style_preferences</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.NatureBattleStylePreference" title="pokedex.db.tables.NatureBattleStylePreference"><code class="xref py py-class docutils literal"><span class="pre">NatureBattleStylePreference</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">nature_battle_style_preferences.move_battle_style_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<p>Nature.<strong>pokeathlon_effects</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.NaturePokeathlonStat" title="pokedex.db.tables.NaturePokeathlonStat"><code class="xref py py-class docutils literal"><span class="pre">NaturePokeathlonStat</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">nature_pokeathlon_stats.pokeathlon_stat_id</span> <span class="pre">ASC</span></code></div></blockquote>
|
||
<hr><dl class="attribute">
|
||
<dt id="pokedex.db.tables.Nature.is_neutral">
|
||
<code class="descname">is_neutral</code><a class="headerlink" href="#pokedex.db.tables.Nature.is_neutral" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Returns True iff this nature doesn’t alter a Pokémon’s stats,
|
||
bestow taste preferences, etc.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-palparkarea">
|
||
<h3>PalParkArea<a class="headerlink" href="#dex-table-palparkarea" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PalParkArea">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PalParkArea</code><a class="headerlink" href="#pokedex.db.tables.PalParkArea" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A distinct area of Pal Park in which Pokémon appear.</p>
|
||
<p>Table name: <em>pal_park_areas</em>
|
||
(single: <em>pal_park_area</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pal_park_area_names</em>.</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemoncolor">
|
||
<h3>PokemonColor<a class="headerlink" href="#dex-table-pokemoncolor" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonColor">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonColor</code><a class="headerlink" href="#pokedex.db.tables.PokemonColor" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The “Pokédex color” of a Pokémon species. Usually based on the Pokémon’s color.</p>
|
||
<p>Table name: <em>pokemon_colors</em>
|
||
(single: <em>pokemon_color</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_color_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonColor.<strong>species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonmovemethod">
|
||
<h3>PokemonMoveMethod<a class="headerlink" href="#dex-table-pokemonmovemethod" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonMoveMethod">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonMoveMethod</code><a class="headerlink" href="#pokedex.db.tables.PokemonMoveMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A method a move can be learned by, such as “Level up” or “Tutor”.</p>
|
||
<p>Table name: <em>pokemon_move_methods</em>
|
||
(single: <em>pokemon_move_method</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_move_method_prose</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>PokemonMoveMethod.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>pokemon_move_method_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of how the method works</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonMoveMethod.<strong>version_group_move_methods</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroupPokemonMoveMethod" title="pokedex.db.tables.VersionGroupPokemonMoveMethod"><code class="xref py py-class docutils literal"><span class="pre">VersionGroupPokemonMoveMethod</span></code></a>])</p>
|
||
<p>PokemonMoveMethod.<strong>version_groups</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">version_group_pokemon_move_methods</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonshape">
|
||
<h3>PokemonShape<a class="headerlink" href="#dex-table-pokemonshape" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonShape">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonShape</code><a class="headerlink" href="#pokedex.db.tables.PokemonShape" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The shape of a Pokémon’s body. Used for flavor in generation IV and V Pokédexes.</p>
|
||
<p>Table name: <em>pokemon_shapes</em>
|
||
(single: <em>pokemon_shape</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_shape_prose</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>PokemonShape.<strong>awesome_name</strong> (<em>unicode – plaintext</em>) via <em>pokemon_shape_prose</em></p>
|
||
<blockquote>
|
||
<div>A splendiferous name of the body shape</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonShape.<strong>species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-stat">
|
||
<h3>Stat<a class="headerlink" href="#dex-table-stat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Stat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Stat</code><a class="headerlink" href="#pokedex.db.tables.Stat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Stat, such as Attack or Speed.</p>
|
||
<p>Table name: <em>stats</em>
|
||
(single: <em>stat</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>stat_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Stat.<strong>damage_class</strong> (damage_class_id → <a class="reference internal" href="#pokedex.db.tables.MoveDamageClass" title="pokedex.db.tables.MoveDamageClass"><code class="xref py py-class docutils literal"><span class="pre">MoveDamageClass</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>For offensive and defensive stats, the damage this stat relates to; otherwise None (the NULL value)</div></blockquote>
|
||
<p>Stat.<strong>is_battle_only</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Whether this stat only exists within a battle</div></blockquote>
|
||
<p>Stat.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The stat order the games use internally for the persistent stats. NULL for battle-only stats.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Stat.<strong>characteristics</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Characteristic" title="pokedex.db.tables.Characteristic"><code class="xref py py-class docutils literal"><span class="pre">Characteristic</span></code></a>])</p>
|
||
<p>Stat.<strong>decreasing_natures</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><code class="xref py py-class docutils literal"><span class="pre">Nature</span></code></a>])</p>
|
||
<p>Stat.<strong>increasing_natures</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><code class="xref py py-class docutils literal"><span class="pre">Nature</span></code></a>])</p>
|
||
<p>Stat.<strong>move_meta_stat_changes</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.MoveMetaStatChange" title="pokedex.db.tables.MoveMetaStatChange"><code class="xref py py-class docutils literal"><span class="pre">MoveMetaStatChange</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="changelogs">
|
||
<h2>Changelogs<a class="headerlink" href="#changelogs" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-abilitychangelog">
|
||
<h3>AbilityChangelog<a class="headerlink" href="#dex-table-abilitychangelog" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.AbilityChangelog">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">AbilityChangelog</code><a class="headerlink" href="#pokedex.db.tables.AbilityChangelog" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>History of changes to abilities across main game versions.</p>
|
||
<p>Table name: <em>ability_changelog</em>
|
||
(single: <em>ability_changelog</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>AbilityChangelog.<strong>ability</strong> (ability_id → <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the ability that changed</div></blockquote>
|
||
<p>AbilityChangelog.<strong>changed_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the version group in which the ability changed</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>AbilityChangelog.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>ability_changelog_prose</em></p>
|
||
<blockquote>
|
||
<div>A description of the old behavior</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>AbilityChangelog.<strong>changed_in</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-moveeffectchangelog">
|
||
<h3>MoveEffectChangelog<a class="headerlink" href="#dex-table-moveeffectchangelog" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveEffectChangelog">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveEffectChangelog</code><a class="headerlink" href="#pokedex.db.tables.MoveEffectChangelog" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>History of changes to move effects across main game versions.</p>
|
||
<p>Table name: <em>move_effect_changelog</em>
|
||
(single: <em>move_effect_changelog</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>MoveEffectChangelog.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><code class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the effect that changed</div></blockquote>
|
||
<p>MoveEffectChangelog.<strong>changed_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the version group in which the effect changed</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>MoveEffectChangelog.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>move_effect_changelog_prose</em></p>
|
||
<blockquote>
|
||
<div>A description of the old behavior</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveEffectChangelog.<strong>changed_in</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>)</p>
|
||
<p>MoveEffectChangelog.<strong>move_effect</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><code class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movechangelog">
|
||
<h3>MoveChangelog<a class="headerlink" href="#dex-table-movechangelog" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveChangelog">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveChangelog</code><a class="headerlink" href="#pokedex.db.tables.MoveChangelog" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>History of changes to moves across main game versions.</p>
|
||
<p>Table name: <em>move_changelog</em>
|
||
(single: <em>move_changelog</em>)</p>
|
||
<p>Primary key: <strong>move_id</strong>, <strong>changed_in_version_group_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>MoveChangelog.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move that changed</div></blockquote>
|
||
<p>MoveChangelog.<strong>changed_in_version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the version group in which the move changed</div></blockquote>
|
||
<p>MoveChangelog.<strong>type</strong> (type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>Prior type of the move, or NULL if unchanged</div></blockquote>
|
||
<p>MoveChangelog.<strong>power</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Prior base power of the move, or NULL if unchanged</div></blockquote>
|
||
<p>MoveChangelog.<strong>pp</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Prior base PP of the move, or NULL if unchanged</div></blockquote>
|
||
<p>MoveChangelog.<strong>accuracy</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Prior accuracy of the move, or NULL if unchanged</div></blockquote>
|
||
<p>MoveChangelog.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><code class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>Prior ID of the effect, or NULL if unchanged</div></blockquote>
|
||
<p>MoveChangelog.<strong>effect_chance</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Prior effect chance, or NULL if unchanged</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveChangelog.<strong>changed_in</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>)</p>
|
||
<p>MoveChangelog.<strong>move_effect</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveEffect" title="pokedex.db.tables.MoveEffect"><code class="xref py py-class docutils literal"><span class="pre">MoveEffect</span></code></a>)</p>
|
||
<hr><p>Undocumented:</p>
|
||
<p>MoveChangelog.<strong>effect_map</strong></p>
|
||
<p>MoveChangelog.<strong>short_effect</strong></p>
|
||
<p>MoveChangelog.<strong>short_effect_map</strong></p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="flavor-text">
|
||
<h2>Flavor text<a class="headerlink" href="#flavor-text" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-itemflavortext">
|
||
<h3>ItemFlavorText<a class="headerlink" href="#dex-table-itemflavortext" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemFlavorText">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemFlavorText</code><a class="headerlink" href="#pokedex.db.tables.ItemFlavorText" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An in-game description of an item.</p>
|
||
<p>Table name: <em>item_flavor_text</em>
|
||
(single: <em>item_flavor_text</em>)</p>
|
||
<p>Primary key: <strong>item_id</strong>, <strong>version_group_id</strong>, <strong>language_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ItemFlavorText.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the item</div></blockquote>
|
||
<p>ItemFlavorText.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the version group that sports this text</div></blockquote>
|
||
<p>ItemFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><code class="xref py py-class docutils literal"><span class="pre">Language</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The language</div></blockquote>
|
||
<p>ItemFlavorText.<strong>flavor_text</strong> (<em>unicode – gametext</em>):</p>
|
||
<blockquote>
|
||
<div>The flavor text itself</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-abilityflavortext">
|
||
<h3>AbilityFlavorText<a class="headerlink" href="#dex-table-abilityflavortext" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.AbilityFlavorText">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">AbilityFlavorText</code><a class="headerlink" href="#pokedex.db.tables.AbilityFlavorText" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>In-game flavor text of an ability.</p>
|
||
<p>Table name: <em>ability_flavor_text</em></p>
|
||
<p>Primary key: <strong>ability_id</strong>, <strong>version_group_id</strong>, <strong>language_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>AbilityFlavorText.<strong>ability</strong> (ability_id → <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the ability</div></blockquote>
|
||
<p>AbilityFlavorText.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the version group this flavor text is taken from</div></blockquote>
|
||
<p>AbilityFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><code class="xref py py-class docutils literal"><span class="pre">Language</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The language</div></blockquote>
|
||
<p>AbilityFlavorText.<strong>flavor_text</strong> (<em>unicode – gametext</em>):</p>
|
||
<blockquote>
|
||
<div>The actual flavor text</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-moveflavortext">
|
||
<h3>MoveFlavorText<a class="headerlink" href="#dex-table-moveflavortext" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveFlavorText">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveFlavorText</code><a class="headerlink" href="#pokedex.db.tables.MoveFlavorText" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>In-game description of a move.</p>
|
||
<p>Table name: <em>move_flavor_text</em></p>
|
||
<p>Primary key: <strong>move_id</strong>, <strong>version_group_id</strong>, <strong>language_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>MoveFlavorText.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move</div></blockquote>
|
||
<p>MoveFlavorText.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the version group this text appears in</div></blockquote>
|
||
<p>MoveFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><code class="xref py py-class docutils literal"><span class="pre">Language</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The language</div></blockquote>
|
||
<p>MoveFlavorText.<strong>flavor_text</strong> (<em>unicode – gametext</em>):</p>
|
||
<blockquote>
|
||
<div>The flavor text</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonspeciesflavortext">
|
||
<h3>PokemonSpeciesFlavorText<a class="headerlink" href="#dex-table-pokemonspeciesflavortext" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonSpeciesFlavorText">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonSpeciesFlavorText</code><a class="headerlink" href="#pokedex.db.tables.PokemonSpeciesFlavorText" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>In-game Pokédex description of a Pokémon.</p>
|
||
<p>Table name: <em>pokemon_species_flavor_text</em></p>
|
||
<p>Primary key: <strong>species_id</strong>, <strong>version_id</strong>, <strong>language_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonSpeciesFlavorText.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon</div></blockquote>
|
||
<p>PokemonSpeciesFlavorText.<strong>version</strong> (version_id → <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the version that has this flavor text</div></blockquote>
|
||
<p>PokemonSpeciesFlavorText.<strong>language</strong> (language_id → <a class="reference internal" href="#pokedex.db.tables.Language" title="pokedex.db.tables.Language"><code class="xref py py-class docutils literal"><span class="pre">Language</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The language</div></blockquote>
|
||
<p>PokemonSpeciesFlavorText.<strong>flavor_text</strong> (<em>unicode – gametext</em>):</p>
|
||
<blockquote>
|
||
<div>The flavor text</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="association-tables">
|
||
<h2>Association tables<a class="headerlink" href="#association-tables" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-berryflavor">
|
||
<h3>BerryFlavor<a class="headerlink" href="#dex-table-berryflavor" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.BerryFlavor">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">BerryFlavor</code><a class="headerlink" href="#pokedex.db.tables.BerryFlavor" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Berry flavor level.</p>
|
||
<p>Table name: <em>berry_flavors</em></p>
|
||
<p>Primary key: <strong>berry_id</strong>, <strong>contest_type_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>BerryFlavor.<strong>berry</strong> (berry_id → <a class="reference internal" href="#pokedex.db.tables.Berry" title="pokedex.db.tables.Berry"><code class="xref py py-class docutils literal"><span class="pre">Berry</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the berry</div></blockquote>
|
||
<p>BerryFlavor.<strong>contest_type</strong> (contest_type_id → <a class="reference internal" href="#pokedex.db.tables.ContestType" title="pokedex.db.tables.ContestType"><code class="xref py py-class docutils literal"><span class="pre">ContestType</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the flavor</div></blockquote>
|
||
<p>BerryFlavor.<strong>flavor</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The level of the flavor in the berry</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-encounterconditionvaluemap">
|
||
<h3>EncounterConditionValueMap<a class="headerlink" href="#dex-table-encounterconditionvaluemap" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.EncounterConditionValueMap">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">EncounterConditionValueMap</code><a class="headerlink" href="#pokedex.db.tables.EncounterConditionValueMap" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps encounters to the specific conditions under which they occur.</p>
|
||
<p>Table name: <em>encounter_condition_value_map</em></p>
|
||
<p>Primary key: <strong>encounter_id</strong>, <strong>encounter_condition_value_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>EncounterConditionValueMap.<strong>encounter_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Encounter" title="pokedex.db.tables.Encounter"><code class="xref py py-class docutils literal"><span class="pre">Encounter</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the encounter</div></blockquote>
|
||
<p>EncounterConditionValueMap.<strong>encounter_condition_value_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EncounterConditionValue" title="pokedex.db.tables.EncounterConditionValue"><code class="xref py py-class docutils literal"><span class="pre">EncounterConditionValue</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the encounter condition value</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-itemflag">
|
||
<h3>ItemFlag<a class="headerlink" href="#dex-table-itemflag" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemFlag">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemFlag</code><a class="headerlink" href="#pokedex.db.tables.ItemFlag" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An item attribute such as “consumable” or “holdable”. Not official.</p>
|
||
<p>Table name: <em>item_flags</em>
|
||
(single: <em>item_flag</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>item_flag_prose</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ItemFlag.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>item_flag_prose</em></p>
|
||
<blockquote>
|
||
<div>Short description of the flag</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-itemflagmap">
|
||
<h3>ItemFlagMap<a class="headerlink" href="#dex-table-itemflagmap" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemFlagMap">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemFlagMap</code><a class="headerlink" href="#pokedex.db.tables.ItemFlagMap" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps an item flag to its item.</p>
|
||
<p>Table name: <em>item_flag_map</em></p>
|
||
<p>Primary key: <strong>item_id</strong>, <strong>item_flag_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ItemFlagMap.<strong>item_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the item</div></blockquote>
|
||
<p>ItemFlagMap.<strong>item_flag_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ItemFlag" title="pokedex.db.tables.ItemFlag"><code class="xref py py-class docutils literal"><span class="pre">ItemFlag</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the item flag</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-machine">
|
||
<h3>Machine<a class="headerlink" href="#dex-table-machine" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Machine">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Machine</code><a class="headerlink" href="#pokedex.db.tables.Machine" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A TM or HM; numbered item that can teach a move to a Pokémon.</p>
|
||
<p>Table name: <em>machines</em></p>
|
||
<p>Primary key: <strong>machine_number</strong>, <strong>version_group_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Machine.<strong>machine_number</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Number of the machine for TMs, or 100 + the number for HMs</div></blockquote>
|
||
<p>Machine.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>Versions this entry applies to</div></blockquote>
|
||
<p>Machine.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the corresponding Item</div></blockquote>
|
||
<p>Machine.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the taught move</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>Machine.<strong>pokemon_moves</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonMove" title="pokedex.db.tables.PokemonMove"><code class="xref py py-class docutils literal"><span class="pre">PokemonMove</span></code></a>)</p>
|
||
<hr><dl class="attribute">
|
||
<dt id="pokedex.db.tables.Machine.is_hm">
|
||
<code class="descname">is_hm</code><a class="headerlink" href="#pokedex.db.tables.Machine.is_hm" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>True if this machine is a HM, False if it’s a TM.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-moveflag">
|
||
<h3>MoveFlag<a class="headerlink" href="#dex-table-moveflag" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveFlag">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveFlag</code><a class="headerlink" href="#pokedex.db.tables.MoveFlag" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Move attribute such as “snatchable” or “contact”.</p>
|
||
<p>Table name: <em>move_flags</em>
|
||
(single: <em>move_flag</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>move_flag_prose</em>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>MoveFlag.<strong>description</strong> (<em>unicode – markdown</em>) via <em>move_flag_prose</em></p>
|
||
<blockquote>
|
||
<div>A short description of the flag</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-moveflagmap">
|
||
<h3>MoveFlagMap<a class="headerlink" href="#dex-table-moveflagmap" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveFlagMap">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveFlagMap</code><a class="headerlink" href="#pokedex.db.tables.MoveFlagMap" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps a move flag to a move.</p>
|
||
<p>Table name: <em>move_flag_map</em></p>
|
||
<p>Primary key: <strong>move_id</strong>, <strong>move_flag_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>MoveFlagMap.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move</div></blockquote>
|
||
<p>MoveFlagMap.<strong>move_flag_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveFlag" title="pokedex.db.tables.MoveFlag"><code class="xref py py-class docutils literal"><span class="pre">MoveFlag</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the flag</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>MoveFlagMap.<strong>flag</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveFlag" title="pokedex.db.tables.MoveFlag"><code class="xref py py-class docutils literal"><span class="pre">MoveFlag</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-movemetastatchange">
|
||
<h3>MoveMetaStatChange<a class="headerlink" href="#dex-table-movemetastatchange" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.MoveMetaStatChange">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">MoveMetaStatChange</code><a class="headerlink" href="#pokedex.db.tables.MoveMetaStatChange" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stat changes moves (may) make.</p>
|
||
<p>Table name: <em>move_meta_stat_changes</em></p>
|
||
<p>Primary key: <strong>move_id</strong>, <strong>stat_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>MoveMetaStatChange.<strong>move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the move</div></blockquote>
|
||
<p>MoveMetaStatChange.<strong>stat</strong> (stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><code class="xref py py-class docutils literal"><span class="pre">Stat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the stat</div></blockquote>
|
||
<p>MoveMetaStatChange.<strong>change</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Amount of increase/decrease, in stages</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-naturebattlestylepreference">
|
||
<h3>NatureBattleStylePreference<a class="headerlink" href="#dex-table-naturebattlestylepreference" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.NatureBattleStylePreference">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">NatureBattleStylePreference</code><a class="headerlink" href="#pokedex.db.tables.NatureBattleStylePreference" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Battle Palace move preference.</p>
|
||
<p>Specifies how likely a Pokémon with a specific Nature is to use a move of
|
||
a particular battle style in Battle Palace or Battle Tent.</p>
|
||
<p>Table name: <em>nature_battle_style_preferences</em></p>
|
||
<p>Primary key: <strong>nature_id</strong>, <strong>move_battle_style_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>NatureBattleStylePreference.<strong>nature</strong> (nature_id → <a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><code class="xref py py-class docutils literal"><span class="pre">Nature</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon’s nature</div></blockquote>
|
||
<p>NatureBattleStylePreference.<strong>move_battle_style_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.MoveBattleStyle" title="pokedex.db.tables.MoveBattleStyle"><code class="xref py py-class docutils literal"><span class="pre">MoveBattleStyle</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the battle style</div></blockquote>
|
||
<p>NatureBattleStylePreference.<strong>low_hp_preference</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Chance of using the move, in percent, if HP is under ½</div></blockquote>
|
||
<p>NatureBattleStylePreference.<strong>high_hp_preference</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Chance of using the move, in percent, if HP is over ½</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>NatureBattleStylePreference.<strong>battle_style</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.MoveBattleStyle" title="pokedex.db.tables.MoveBattleStyle"><code class="xref py py-class docutils literal"><span class="pre">MoveBattleStyle</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-naturepokeathlonstat">
|
||
<h3>NaturePokeathlonStat<a class="headerlink" href="#dex-table-naturepokeathlonstat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.NaturePokeathlonStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">NaturePokeathlonStat</code><a class="headerlink" href="#pokedex.db.tables.NaturePokeathlonStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Specifies how a Nature affects a Pokéathlon stat.</p>
|
||
<p>Table name: <em>nature_pokeathlon_stats</em></p>
|
||
<p>Primary key: <strong>nature_id</strong>, <strong>pokeathlon_stat_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>NaturePokeathlonStat.<strong>nature_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Nature" title="pokedex.db.tables.Nature"><code class="xref py py-class docutils literal"><span class="pre">Nature</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the nature</div></blockquote>
|
||
<p>NaturePokeathlonStat.<strong>pokeathlon_stat</strong> (pokeathlon_stat_id → <a class="reference internal" href="#pokedex.db.tables.PokeathlonStat" title="pokedex.db.tables.PokeathlonStat"><code class="xref py py-class docutils literal"><span class="pre">PokeathlonStat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the stat</div></blockquote>
|
||
<p>NaturePokeathlonStat.<strong>max_change</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Maximum change</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokeathlonstat">
|
||
<h3>PokeathlonStat<a class="headerlink" href="#dex-table-pokeathlonstat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokeathlonStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokeathlonStat</code><a class="headerlink" href="#pokedex.db.tables.PokeathlonStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokéathlon stat, such as “Stamina” or “Jump”.</p>
|
||
<p>Table name: <em>pokeathlon_stats</em>
|
||
(single: <em>pokeathlon_stat</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokeathlon_stat_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokeathlonStat.<strong>nature_effects</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.NaturePokeathlonStat" title="pokedex.db.tables.NaturePokeathlonStat"><code class="xref py py-class docutils literal"><span class="pre">NaturePokeathlonStat</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokedexversiongroup">
|
||
<h3>PokedexVersionGroup<a class="headerlink" href="#dex-table-pokedexversiongroup" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokedexVersionGroup">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokedexVersionGroup</code><a class="headerlink" href="#pokedex.db.tables.PokedexVersionGroup" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A mapping from Pokédexes to version groups in which they appear as the regional dex.</p>
|
||
<p>Table name: <em>pokedex_version_groups</em>
|
||
(single: <em>pokedex_version_group</em>)</p>
|
||
<p>Primary key: <strong>pokedex_id</strong>, <strong>version_group_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokedexVersionGroup.<strong>pokedex_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><code class="xref py py-class docutils literal"><span class="pre">Pokedex</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokédex.</div></blockquote>
|
||
<p>PokedexVersionGroup.<strong>version_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the version group.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonability">
|
||
<h3>PokemonAbility<a class="headerlink" href="#dex-table-pokemonability" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonAbility">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonAbility</code><a class="headerlink" href="#pokedex.db.tables.PokemonAbility" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps an ability to a Pokémon that can have it.</p>
|
||
<p>Table name: <em>pokemon_abilities</em></p>
|
||
<p>Primary key: <strong>pokemon_id</strong>, <strong>slot</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonAbility.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon</div></blockquote>
|
||
<p>PokemonAbility.<strong>ability</strong> (ability_id → <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the ability</div></blockquote>
|
||
<p>PokemonAbility.<strong>is_hidden</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>Whether this is a hidden ability</div></blockquote>
|
||
<p>PokemonAbility.<strong>slot</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The ability slot, i.e. 1 or 2 for gen. IV</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonegggroup">
|
||
<h3>PokemonEggGroup<a class="headerlink" href="#dex-table-pokemonegggroup" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonEggGroup">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonEggGroup</code><a class="headerlink" href="#pokedex.db.tables.PokemonEggGroup" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps an Egg group to a species; each species belongs to one or two egg groups.</p>
|
||
<p>Table name: <em>pokemon_egg_groups</em></p>
|
||
<p>Primary key: <strong>species_id</strong>, <strong>egg_group_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonEggGroup.<strong>species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the species</div></blockquote>
|
||
<p>PokemonEggGroup.<strong>egg_group_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.EggGroup" title="pokedex.db.tables.EggGroup"><code class="xref py py-class docutils literal"><span class="pre">EggGroup</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the egg group</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonformpokeathlonstat">
|
||
<h3>PokemonFormPokeathlonStat<a class="headerlink" href="#dex-table-pokemonformpokeathlonstat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonFormPokeathlonStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonFormPokeathlonStat</code><a class="headerlink" href="#pokedex.db.tables.PokemonFormPokeathlonStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokémon form’s performance in one Pokéathlon stat.</p>
|
||
<p>Table name: <em>pokemon_form_pokeathlon_stats</em></p>
|
||
<p>Primary key: <strong>pokemon_form_id</strong>, <strong>pokeathlon_stat_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonFormPokeathlonStat.<strong>pokemon_form</strong> (pokemon_form_id → <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon form.</div></blockquote>
|
||
<p>PokemonFormPokeathlonStat.<strong>pokeathlon_stat</strong> (pokeathlon_stat_id → <a class="reference internal" href="#pokedex.db.tables.PokeathlonStat" title="pokedex.db.tables.PokeathlonStat"><code class="xref py py-class docutils literal"><span class="pre">PokeathlonStat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokéathlon stat.</div></blockquote>
|
||
<p>PokemonFormPokeathlonStat.<strong>minimum_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum value for this stat for this Pokémon form.</div></blockquote>
|
||
<p>PokemonFormPokeathlonStat.<strong>base_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The default value for this stat for this Pokémon form.</div></blockquote>
|
||
<p>PokemonFormPokeathlonStat.<strong>maximum_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The maximum value for this stat for this Pokémon form.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonhabitat">
|
||
<h3>PokemonHabitat<a class="headerlink" href="#dex-table-pokemonhabitat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonHabitat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonHabitat</code><a class="headerlink" href="#pokedex.db.tables.PokemonHabitat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The habitat of a Pokémon, as given in the FireRed/LeafGreen version Pokédex.</p>
|
||
<p>Table name: <em>pokemon_habitats</em>
|
||
(single: <em>pokemon_habitat</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>pokemon_habitat_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonHabitat.<strong>species</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonmove">
|
||
<h3>PokemonMove<a class="headerlink" href="#dex-table-pokemonmove" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonMove">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonMove</code><a class="headerlink" href="#pokedex.db.tables.PokemonMove" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Record of a move a Pokémon can learn.</p>
|
||
<p>Table name: <em>pokemon_moves</em></p>
|
||
<p>Primary key: <strong>pokemon_id</strong>, <strong>version_group_id</strong>, <strong>move_id</strong>, <strong>pokemon_move_method_id</strong>, <strong>level</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonMove.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon</div></blockquote>
|
||
<p>PokemonMove.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the version group this applies to</div></blockquote>
|
||
<p>PokemonMove.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the move</div></blockquote>
|
||
<p>PokemonMove.<strong>pokemon_move_method_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonMoveMethod" title="pokedex.db.tables.PokemonMoveMethod"><code class="xref py py-class docutils literal"><span class="pre">PokemonMoveMethod</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the method this move is learned by</div></blockquote>
|
||
<p>PokemonMove.<strong>level</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Level the move is learned at, if applicable</div></blockquote>
|
||
<p>PokemonMove.<strong>order</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The order which moves learned at the same level are learned in</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonMove.<strong>machine</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Machine" title="pokedex.db.tables.Machine"><code class="xref py py-class docutils literal"><span class="pre">Machine</span></code></a>)</p>
|
||
<p>PokemonMove.<strong>method</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonMoveMethod" title="pokedex.db.tables.PokemonMoveMethod"><code class="xref py py-class docutils literal"><span class="pre">PokemonMoveMethod</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonstat">
|
||
<h3>PokemonStat<a class="headerlink" href="#dex-table-pokemonstat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonStat</code><a class="headerlink" href="#pokedex.db.tables.PokemonStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A stat value of a Pokémon.</p>
|
||
<p>Table name: <em>pokemon_stats</em></p>
|
||
<p>Primary key: <strong>pokemon_id</strong>, <strong>stat_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonStat.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon</div></blockquote>
|
||
<p>PokemonStat.<strong>stat</strong> (stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><code class="xref py py-class docutils literal"><span class="pre">Stat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the stat</div></blockquote>
|
||
<p>PokemonStat.<strong>base_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base stat</div></blockquote>
|
||
<p>PokemonStat.<strong>effort</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The effort increase in this stat gained when this Pokémon is defeated</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonitem">
|
||
<h3>PokemonItem<a class="headerlink" href="#dex-table-pokemonitem" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonItem">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonItem</code><a class="headerlink" href="#pokedex.db.tables.PokemonItem" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Record of an item a Pokémon can hold in the wild.</p>
|
||
<p>Table name: <em>pokemon_items</em></p>
|
||
<p>Primary key: <strong>pokemon_id</strong>, <strong>version_id</strong>, <strong>item_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonItem.<strong>pokemon</strong> (pokemon_id → <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon</div></blockquote>
|
||
<p>PokemonItem.<strong>version</strong> (version_id → <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the version this applies to</div></blockquote>
|
||
<p>PokemonItem.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the item</div></blockquote>
|
||
<p>PokemonItem.<strong>rarity</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Chance of the Pokémon holding the item, in percent</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemontype">
|
||
<h3>PokemonType<a class="headerlink" href="#dex-table-pokemontype" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonType">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonType</code><a class="headerlink" href="#pokedex.db.tables.PokemonType" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps a type to a Pokémon. Each Pokémon has 1 or 2 types.</p>
|
||
<p>Table name: <em>pokemon_types</em></p>
|
||
<p>Primary key: <strong>pokemon_id</strong>, <strong>slot</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonType.<strong>pokemon_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the Pokémon</div></blockquote>
|
||
<p>PokemonType.<strong>type_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>ID of the type</div></blockquote>
|
||
<p>PokemonType.<strong>slot</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The type’s slot, 1 or 2, used to sort types if there are two of them</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-typeefficacy">
|
||
<h3>TypeEfficacy<a class="headerlink" href="#dex-table-typeefficacy" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.TypeEfficacy">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">TypeEfficacy</code><a class="headerlink" href="#pokedex.db.tables.TypeEfficacy" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The damage multiplier used when a move of a particular type damages a
|
||
Pokémon of a particular other type.</p>
|
||
<p>Table name: <em>type_efficacy</em></p>
|
||
<p>Primary key: <strong>damage_type_id</strong>, <strong>target_type_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>TypeEfficacy.<strong>damage_type</strong> (damage_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the damaging move’s type.</div></blockquote>
|
||
<p>TypeEfficacy.<strong>target_type</strong> (target_type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the defending Pokémon’s type.</div></blockquote>
|
||
<p>TypeEfficacy.<strong>damage_factor</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The multiplier, as a percentage of damage inflicted.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-versiongrouppokemonmovemethod">
|
||
<h3>VersionGroupPokemonMoveMethod<a class="headerlink" href="#dex-table-versiongrouppokemonmovemethod" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.VersionGroupPokemonMoveMethod">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">VersionGroupPokemonMoveMethod</code><a class="headerlink" href="#pokedex.db.tables.VersionGroupPokemonMoveMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps a version group to a move learn methods it supports.</p>
|
||
<p>“Supporting” means simply that the method appears in the game.
|
||
For example, Breeding didn’t exist in Gen.I, so it’s not in this table.</p>
|
||
<p>Table name: <em>version_group_pokemon_move_methods</em></p>
|
||
<p>Primary key: <strong>version_group_id</strong>, <strong>pokemon_move_method_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>VersionGroupPokemonMoveMethod.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the version group.</div></blockquote>
|
||
<p>VersionGroupPokemonMoveMethod.<strong>pokemon_move_method</strong> (pokemon_move_method_id → <a class="reference internal" href="#pokedex.db.tables.PokemonMoveMethod" title="pokedex.db.tables.PokemonMoveMethod"><code class="xref py py-class docutils literal"><span class="pre">PokemonMoveMethod</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the move method.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-versiongroupregion">
|
||
<h3>VersionGroupRegion<a class="headerlink" href="#dex-table-versiongroupregion" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.VersionGroupRegion">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">VersionGroupRegion</code><a class="headerlink" href="#pokedex.db.tables.VersionGroupRegion" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Maps a version group to a region that appears in it.</p>
|
||
<p>Table name: <em>version_group_regions</em></p>
|
||
<p>Primary key: <strong>version_group_id</strong>, <strong>region_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>VersionGroupRegion.<strong>version_group</strong> (version_group_id → <a class="reference internal" href="#pokedex.db.tables.VersionGroup" title="pokedex.db.tables.VersionGroup"><code class="xref py py-class docutils literal"><span class="pre">VersionGroup</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the version group.</div></blockquote>
|
||
<p>VersionGroupRegion.<strong>region</strong> (region_id → <a class="reference internal" href="#pokedex.db.tables.Region" title="pokedex.db.tables.Region"><code class="xref py py-class docutils literal"><span class="pre">Region</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the region.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="index-maps">
|
||
<h2>Index maps<a class="headerlink" href="#index-maps" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-itemgameindex">
|
||
<h3>ItemGameIndex<a class="headerlink" href="#dex-table-itemgameindex" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ItemGameIndex">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ItemGameIndex</code><a class="headerlink" href="#pokedex.db.tables.ItemGameIndex" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The internal ID number a game uses for an item.</p>
|
||
<p>Table name: <em>item_game_indices</em></p>
|
||
<p>Primary key: <strong>item_id</strong>, <strong>generation_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ItemGameIndex.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The database ID of the item</div></blockquote>
|
||
<p>ItemGameIndex.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the generation of games</div></blockquote>
|
||
<p>ItemGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Internal ID of the item in the generation</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-locationgameindex">
|
||
<h3>LocationGameIndex<a class="headerlink" href="#dex-table-locationgameindex" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.LocationGameIndex">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">LocationGameIndex</code><a class="headerlink" href="#pokedex.db.tables.LocationGameIndex" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>IDs the games use internally for locations.</p>
|
||
<p>Table name: <em>location_game_indices</em></p>
|
||
<p>Primary key: <strong>location_id</strong>, <strong>generation_id</strong>, <strong>game_index</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>LocationGameIndex.<strong>location</strong> (location_id → <a class="reference internal" href="#pokedex.db.tables.Location" title="pokedex.db.tables.Location"><code class="xref py py-class docutils literal"><span class="pre">Location</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>Database ID of the location</div></blockquote>
|
||
<p>LocationGameIndex.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the generation this entry to</div></blockquote>
|
||
<p>LocationGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Internal game ID of the location</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemondexnumber">
|
||
<h3>PokemonDexNumber<a class="headerlink" href="#dex-table-pokemondexnumber" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonDexNumber">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonDexNumber</code><a class="headerlink" href="#pokedex.db.tables.PokemonDexNumber" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The number of a species in a particular Pokédex (e.g. Jigglypuff is #138 in Hoenn’s ‘dex).</p>
|
||
<p>Table name: <em>pokemon_dex_numbers</em></p>
|
||
<p>Primary key: <strong>species_id</strong>, <strong>pokedex_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonDexNumber.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the species</div></blockquote>
|
||
<p>PokemonDexNumber.<strong>pokedex</strong> (pokedex_id → <a class="reference internal" href="#pokedex.db.tables.Pokedex" title="pokedex.db.tables.Pokedex"><code class="xref py py-class docutils literal"><span class="pre">Pokedex</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the Pokédex</div></blockquote>
|
||
<p>PokemonDexNumber.<strong>pokedex_number</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Number of the Pokémon in that the Pokédex</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemonformgeneration">
|
||
<h3>PokemonFormGeneration<a class="headerlink" href="#dex-table-pokemonformgeneration" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonFormGeneration">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonFormGeneration</code><a class="headerlink" href="#pokedex.db.tables.PokemonFormGeneration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Links Pokémon forms to the generations they exist in.</p>
|
||
<p>Table name: <em>pokemon_form_generations</em></p>
|
||
<p>Primary key: <strong>pokemon_form_id</strong>, <strong>generation_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonFormGeneration.<strong>pokemon_form_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon form.</div></blockquote>
|
||
<p>PokemonFormGeneration.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the generation.</div></blockquote>
|
||
<p>PokemonFormGeneration.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The internal ID the games use for this form.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>PokemonFormGeneration.<strong>form</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonForm" title="pokedex.db.tables.PokemonForm"><code class="xref py py-class docutils literal"><span class="pre">PokemonForm</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-pokemongameindex">
|
||
<h3>PokemonGameIndex<a class="headerlink" href="#dex-table-pokemongameindex" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PokemonGameIndex">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PokemonGameIndex</code><a class="headerlink" href="#pokedex.db.tables.PokemonGameIndex" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The number of a Pokémon a game uses internally.</p>
|
||
<p>Table name: <em>pokemon_game_indices</em></p>
|
||
<p>Primary key: <strong>pokemon_id</strong>, <strong>version_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PokemonGameIndex.<strong>pokemon_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Pokemon" title="pokedex.db.tables.Pokemon"><code class="xref py py-class docutils literal"><span class="pre">Pokemon</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>Database ID of the Pokémon</div></blockquote>
|
||
<p>PokemonGameIndex.<strong>version_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Version" title="pokedex.db.tables.Version"><code class="xref py py-class docutils literal"><span class="pre">Version</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>Database ID of the version</div></blockquote>
|
||
<p>PokemonGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Internal ID the version’s games use for the Pokémon</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-typegameindex">
|
||
<h3>TypeGameIndex<a class="headerlink" href="#dex-table-typegameindex" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.TypeGameIndex">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">TypeGameIndex</code><a class="headerlink" href="#pokedex.db.tables.TypeGameIndex" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The internal ID number a game uses for a type.</p>
|
||
<p>Table name: <em>type_game_indices</em></p>
|
||
<p>Primary key: <strong>type_id</strong>, <strong>generation_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>TypeGameIndex.<strong>type</strong> (type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The type</div></blockquote>
|
||
<p>TypeGameIndex.<strong>generation</strong> (generation_id → <a class="reference internal" href="#pokedex.db.tables.Generation" title="pokedex.db.tables.Generation"><code class="xref py py-class docutils literal"><span class="pre">Generation</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The generation</div></blockquote>
|
||
<p>TypeGameIndex.<strong>game_index</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Internal ID of the type in this generation</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="mics-tables">
|
||
<h2>Mics tables<a class="headerlink" href="#mics-tables" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-experience">
|
||
<h3>Experience<a class="headerlink" href="#dex-table-experience" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Experience">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Experience</code><a class="headerlink" href="#pokedex.db.tables.Experience" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>EXP needed for a certain level with a certain growth rate.</p>
|
||
<p>Table name: <em>experience</em></p>
|
||
<p>Primary key: <strong>growth_rate_id</strong>, <strong>level</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Experience.<strong>growth_rate</strong> (growth_rate_id → <a class="reference internal" href="#pokedex.db.tables.GrowthRate" title="pokedex.db.tables.GrowthRate"><code class="xref py py-class docutils literal"><span class="pre">GrowthRate</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the growth rate</div></blockquote>
|
||
<p>Experience.<strong>level</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The level</div></blockquote>
|
||
<p>Experience.<strong>experience</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The number of EXP points needed to get to that level</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-palpark">
|
||
<h3>PalPark<a class="headerlink" href="#dex-table-palpark" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.PalPark">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">PalPark</code><a class="headerlink" href="#pokedex.db.tables.PalPark" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Data for the Pal Park mini-game in Generation IV.</p>
|
||
<p>Table name: <em>pal_park</em>
|
||
(single: <em>pal_park</em>)</p>
|
||
<p>Primary key: <strong>species_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>PalPark.<strong>species</strong> (species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The Pokémon species this data pertains to</div></blockquote>
|
||
<p>PalPark.<strong>area</strong> (area_id → <a class="reference internal" href="#pokedex.db.tables.PalParkArea" title="pokedex.db.tables.PalParkArea"><code class="xref py py-class docutils literal"><span class="pre">PalParkArea</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The area in which this Pokémon is found</div></blockquote>
|
||
<p>PalPark.<strong>base_score</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Used in calculating the player’s score at the end of a Pal Park run</div></blockquote>
|
||
<p>PalPark.<strong>rate</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Base rate for encountering this Pokémon</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-characteristic">
|
||
<h3>Characteristic<a class="headerlink" href="#dex-table-characteristic" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.Characteristic">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">Characteristic</code><a class="headerlink" href="#pokedex.db.tables.Characteristic" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Flavor text hinting at genes that appears in a Pokémon’s summary.</p>
|
||
<p>Table name: <em>characteristics</em>
|
||
(single: <em>characteristic</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>Characteristic.<strong>stat</strong> (stat_id → <a class="reference internal" href="#pokedex.db.tables.Stat" title="pokedex.db.tables.Stat"><code class="xref py py-class docutils literal"><span class="pre">Stat</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>ID of the stat with the highest gene</div></blockquote>
|
||
<p>Characteristic.<strong>gene_mod_5</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>Value of the highest gene modulo 5</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>Characteristic.<strong>message</strong> (<em>unicode – plaintext</em>) via <em>characteristic_text</em></p>
|
||
<blockquote>
|
||
<div>The text displayed</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="section" id="conquest-tables">
|
||
<h2>Conquest tables<a class="headerlink" href="#conquest-tables" title="Permalink to this headline">¶</a></h2>
|
||
<div class="section" id="dex-table-conquestepisode">
|
||
<h3>ConquestEpisode<a class="headerlink" href="#dex-table-conquestepisode" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestEpisode">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestEpisode</code><a class="headerlink" href="#pokedex.db.tables.ConquestEpisode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An episode from Pokémon Conquest: one of a bunch of mini-stories
|
||
featuring a particular warrior.</p>
|
||
<p>The main story, “The Legend of Ransei”, also counts, even though it’s not
|
||
in the episode select menu and there’s no way to replay it.</p>
|
||
<p>Table name: <em>conquest_episodes</em>
|
||
(single: <em>episode</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_episode_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestEpisode.<strong>warriors</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">conquest_episode_warriors</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestepisodewarrior">
|
||
<h3>ConquestEpisodeWarrior<a class="headerlink" href="#dex-table-conquestepisodewarrior" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestEpisodeWarrior">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestEpisodeWarrior</code><a class="headerlink" href="#pokedex.db.tables.ConquestEpisodeWarrior" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A warrior featured in an episode in Pokémon Conquest.</p>
|
||
<p>This needs its own table because of the player having two episodes and
|
||
there being two players.</p>
|
||
<p>Table name: <em>conquest_episode_warriors</em></p>
|
||
<p>Primary key: <strong>episode_id</strong>, <strong>warrior_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestEpisodeWarrior.<strong>episode_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestEpisode" title="pokedex.db.tables.ConquestEpisode"><code class="xref py py-class docutils literal"><span class="pre">ConquestEpisode</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the episode.</div></blockquote>
|
||
<p>ConquestEpisodeWarrior.<strong>warrior_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestkingdom">
|
||
<h3>ConquestKingdom<a class="headerlink" href="#dex-table-conquestkingdom" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestKingdom">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestKingdom</code><a class="headerlink" href="#pokedex.db.tables.ConquestKingdom" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A kingdom in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_kingdoms</em>
|
||
(single: <em>kingdom</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_kingdom_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestKingdom.<strong>type</strong> (type_id → <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The type associated with this kingdom in-game.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestKingdom.<strong>evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestPokemonEvolution" title="pokedex.db.tables.ConquestPokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonEvolution</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestmaxlink">
|
||
<h3>ConquestMaxLink<a class="headerlink" href="#dex-table-conquestmaxlink" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestMaxLink">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestMaxLink</code><a class="headerlink" href="#pokedex.db.tables.ConquestMaxLink" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The maximum link a warrior rank can reach with a Pokémon in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_max_links</em></p>
|
||
<p>Primary key: <strong>warrior_rank_id</strong>, <strong>pokemon_species_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestMaxLink.<strong>warrior_rank</strong> (warrior_rank_id → <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRank" title="pokedex.db.tables.ConquestWarriorRank"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRank</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior rank.</div></blockquote>
|
||
<p>ConquestMaxLink.<strong>pokemon_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon species.</div></blockquote>
|
||
<p>ConquestMaxLink.<strong>max_link</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The maximum link percentage this warrior rank and Pokémon can reach.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestMaxLink.<strong>pokemon</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>)</p>
|
||
<hr><p>Association Proxies:</p>
|
||
<p>ConquestMaxLink.<strong>warrior</strong>:
|
||
<code class="docutils literal"><span class="pre">warrior</span></code> of <code class="docutils literal"><span class="pre">self.warrior_rank</span></code></p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestmovedata">
|
||
<h3>ConquestMoveData<a class="headerlink" href="#dex-table-conquestmovedata" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestMoveData">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestMoveData</code><a class="headerlink" href="#pokedex.db.tables.ConquestMoveData" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Data about a move in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_move_data</em></p>
|
||
<p>Primary key: <strong>move_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestMoveData.<strong>move</strong> (move_id → <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the move.</div></blockquote>
|
||
<p>ConquestMoveData.<strong>power</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The move’s power, null if it does no damage.</div></blockquote>
|
||
<p>ConquestMoveData.<strong>accuracy</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The move’s base accuracy, null if it is self-targeted or never misses.</div></blockquote>
|
||
<p>ConquestMoveData.<strong>effect_chance</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The chance as a percentage that the move’s secondary effect will trigger.</div></blockquote>
|
||
<p>ConquestMoveData.<strong>effect</strong> (effect_id → <a class="reference internal" href="#pokedex.db.tables.ConquestMoveEffect" title="pokedex.db.tables.ConquestMoveEffect"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveEffect</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the move’s effect.</div></blockquote>
|
||
<p>ConquestMoveData.<strong>range</strong> (range_id → <a class="reference internal" href="#pokedex.db.tables.ConquestMoveRange" title="pokedex.db.tables.ConquestMoveRange"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveRange</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the move’s range.</div></blockquote>
|
||
<p>ConquestMoveData.<strong>displacement</strong> (displacement_id → <a class="reference internal" href="#pokedex.db.tables.ConquestMoveDisplacement" title="pokedex.db.tables.ConquestMoveDisplacement"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveDisplacement</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the move’s displacement.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestMoveData.<strong>move_displacement</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestMoveDisplacement" title="pokedex.db.tables.ConquestMoveDisplacement"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveDisplacement</span></code></a>)</p>
|
||
<p>ConquestMoveData.<strong>move_effect</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestMoveEffect" title="pokedex.db.tables.ConquestMoveEffect"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveEffect</span></code></a>)</p>
|
||
<hr><p>Undocumented:</p>
|
||
<p>ConquestMoveData.<strong>effect_map</strong></p>
|
||
<p>ConquestMoveData.<strong>short_effect</strong></p>
|
||
<p>ConquestMoveData.<strong>short_effect_map</strong></p>
|
||
<hr><dl class="attribute">
|
||
<dt id="pokedex.db.tables.ConquestMoveData.star_rating">
|
||
<code class="descname">star_rating</code><a class="headerlink" href="#pokedex.db.tables.ConquestMoveData.star_rating" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Return the move’s in-game power rating as a number of stars.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestmovedisplacement">
|
||
<h3>ConquestMoveDisplacement<a class="headerlink" href="#dex-table-conquestmovedisplacement" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestMoveDisplacement">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestMoveDisplacement</code><a class="headerlink" href="#pokedex.db.tables.ConquestMoveDisplacement" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A way in which a move can cause the user or target to move to a
|
||
different tile.</p>
|
||
<p>If a move displaces its user, the move’s range is relative to the user’s
|
||
original position.</p>
|
||
<p>Table name: <em>conquest_move_displacements</em>
|
||
(single: <em>move_displacement</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_move_displacement_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestMoveDisplacement.<strong>affects_target</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff the move displaces its target(s) and not its user.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ConquestMoveDisplacement.<strong>short_effect</strong> (<em>unicode – markdown</em>) via <em>conquest_move_displacement_prose</em></p>
|
||
<blockquote>
|
||
<div>A short summary of how the displacement works, to be used in the move’s short effect.</div></blockquote>
|
||
<p>ConquestMoveDisplacement.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>conquest_move_displacement_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of how the displacement works, to be used alongside the move’s long effect.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestMoveDisplacement.<strong>move_data</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestMoveData" title="pokedex.db.tables.ConquestMoveData"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveData</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestmoveeffect">
|
||
<h3>ConquestMoveEffect<a class="headerlink" href="#dex-table-conquestmoveeffect" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestMoveEffect">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestMoveEffect</code><a class="headerlink" href="#pokedex.db.tables.ConquestMoveEffect" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An effect moves can have in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_move_effects</em>
|
||
(single: <em>conquest_move_effect</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ConquestMoveEffect.<strong>short_effect</strong> (<em>unicode – markdown</em>) via <em>conquest_move_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>A short summary of the effect</div></blockquote>
|
||
<p>ConquestMoveEffect.<strong>effect</strong> (<em>unicode – markdown</em>) via <em>conquest_move_effect_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of the effect</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestMoveEffect.<strong>move_data</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestMoveData" title="pokedex.db.tables.ConquestMoveData"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveData</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestmoverange">
|
||
<h3>ConquestMoveRange<a class="headerlink" href="#dex-table-conquestmoverange" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestMoveRange">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestMoveRange</code><a class="headerlink" href="#pokedex.db.tables.ConquestMoveRange" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A set of tiles moves can target in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_move_ranges</em>
|
||
(single: <em>conquest_move_range</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_move_range_prose</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestMoveRange.<strong>targets</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The number of tiles this range targets.</div></blockquote>
|
||
<hr><p>Internationalized strings:</p>
|
||
<p>ConquestMoveRange.<strong>description</strong> (<em>unicode – plaintext</em>) via <em>conquest_move_range_prose</em></p>
|
||
<blockquote>
|
||
<div>A detailed description of the range</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestMoveRange.<strong>move_data</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestMoveData" title="pokedex.db.tables.ConquestMoveData"><code class="xref py py-class docutils literal"><span class="pre">ConquestMoveData</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestpokemonability">
|
||
<h3>ConquestPokemonAbility<a class="headerlink" href="#dex-table-conquestpokemonability" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestPokemonAbility">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestPokemonAbility</code><a class="headerlink" href="#pokedex.db.tables.ConquestPokemonAbility" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An ability a Pokémon species has in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_pokemon_abilities</em></p>
|
||
<p>Primary key: <strong>pokemon_species_id</strong>, <strong>slot</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestPokemonAbility.<strong>pokemon_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon species with this ability.</div></blockquote>
|
||
<p>ConquestPokemonAbility.<strong>slot</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The order abilities are listed in. Upon evolution, if a Pokémon’s abilities change, it will receive the one in the same slot.</div></blockquote>
|
||
<p>ConquestPokemonAbility.<strong>ability_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Ability" title="pokedex.db.tables.Ability"><code class="xref py py-class docutils literal"><span class="pre">Ability</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the ability.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestpokemonevolution">
|
||
<h3>ConquestPokemonEvolution<a class="headerlink" href="#dex-table-conquestpokemonevolution" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestPokemonEvolution">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestPokemonEvolution</code><a class="headerlink" href="#pokedex.db.tables.ConquestPokemonEvolution" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The conditions under which a Pokémon must successfully complete an
|
||
action to evolve in Pokémon Conquest.</p>
|
||
<p>Any condition may be null if it does not apply for a particular Pokémon.</p>
|
||
<p>Table name: <em>conquest_pokemon_evolution</em></p>
|
||
<p>Primary key: <strong>evolved_species_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestPokemonEvolution.<strong>evolved_species</strong> (evolved_species_id → <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the post-evolution species.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>required_stat_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestStat" title="pokedex.db.tables.ConquestStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestStat</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the stat which minimum_stat applies to.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>minimum_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum value the Pokémon must have in a particular stat.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>minimum_link</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The minimum link percentage the Pokémon must have with its warrior.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>kingdom</strong> (kingdom_id → <a class="reference internal" href="#pokedex.db.tables.ConquestKingdom" title="pokedex.db.tables.ConquestKingdom"><code class="xref py py-class docutils literal"><span class="pre">ConquestKingdom</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the kingdom in which this Pokémon must complete an action after meeting all other requirements.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>warrior_gender_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Gender" title="pokedex.db.tables.Gender"><code class="xref py py-class docutils literal"><span class="pre">Gender</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the gender the Pokémon’s warrior must be.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>item</strong> (item_id → <a class="reference internal" href="#pokedex.db.tables.Item" title="pokedex.db.tables.Item"><code class="xref py py-class docutils literal"><span class="pre">Item</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the item the Pokémon’s warrior must have equipped.</div></blockquote>
|
||
<p>ConquestPokemonEvolution.<strong>recruiting_ko_required</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>If true, the Pokémon must KO a Pokémon under the right conditions to recruit that Pokémon’s warrior.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestPokemonEvolution.<strong>gender</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Gender" title="pokedex.db.tables.Gender"><code class="xref py py-class docutils literal"><span class="pre">Gender</span></code></a>)</p>
|
||
<p>ConquestPokemonEvolution.<strong>stat</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestStat" title="pokedex.db.tables.ConquestStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestStat</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestpokemonmove">
|
||
<h3>ConquestPokemonMove<a class="headerlink" href="#dex-table-conquestpokemonmove" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestPokemonMove">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestPokemonMove</code><a class="headerlink" href="#pokedex.db.tables.ConquestPokemonMove" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokémon’s move in Pokémon Conquest.</p>
|
||
<p>Yes, “move”; each Pokémon has exactly one.</p>
|
||
<p>Table name: <em>conquest_pokemon_moves</em></p>
|
||
<p>Primary key: <strong>pokemon_species_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestPokemonMove.<strong>pokemon_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon species.</div></blockquote>
|
||
<p>ConquestPokemonMove.<strong>move_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Move" title="pokedex.db.tables.Move"><code class="xref py py-class docutils literal"><span class="pre">Move</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the move.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestpokemonstat">
|
||
<h3>ConquestPokemonStat<a class="headerlink" href="#dex-table-conquestpokemonstat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestPokemonStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestPokemonStat</code><a class="headerlink" href="#pokedex.db.tables.ConquestPokemonStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokémon’s base stat in Pokémon Conquest.</p>
|
||
<p>The main four base stats in Conquest are derived from level 100 stats in
|
||
the main series (ignoring effort, genes, and natures). Attack matches
|
||
either Attack or Special Attack, and Defense matches the average of Defense
|
||
and Special Defense. HP and Speed are the same.</p>
|
||
<p>Table name: <em>conquest_pokemon_stats</em></p>
|
||
<p>Primary key: <strong>pokemon_species_id</strong>, <strong>conquest_stat_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestPokemonStat.<strong>pokemon_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon species.</div></blockquote>
|
||
<p>ConquestPokemonStat.<strong>conquest_stat_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestStat" title="pokedex.db.tables.ConquestStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestStat</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the stat.</div></blockquote>
|
||
<p>ConquestPokemonStat.<strong>base_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The base stat.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestPokemonStat.<strong>pokemon</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>)</p>
|
||
<p>ConquestPokemonStat.<strong>stat</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestStat" title="pokedex.db.tables.ConquestStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestStat</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conqueststat">
|
||
<h3>ConquestStat<a class="headerlink" href="#dex-table-conqueststat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestStat</code><a class="headerlink" href="#pokedex.db.tables.ConquestStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A stat Pokémon have in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_stats</em>
|
||
(single: <em>conquest_stat</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_stat_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestStat.<strong>is_base</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff this is one of the main stats, calculated for individual Pokémon.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestStat.<strong>evolutions</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestPokemonEvolution" title="pokedex.db.tables.ConquestPokemonEvolution"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonEvolution</span></code></a>])</p>
|
||
<p>ConquestStat.<strong>pokemon_stats</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestPokemonStat" title="pokedex.db.tables.ConquestPokemonStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestPokemonStat</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquesttransformationpokemon">
|
||
<h3>ConquestTransformationPokemon<a class="headerlink" href="#dex-table-conquesttransformationpokemon" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestTransformationPokemon">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestTransformationPokemon</code><a class="headerlink" href="#pokedex.db.tables.ConquestTransformationPokemon" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A Pokémon that satisfies a warrior transformation’s link condition.</p>
|
||
<p>If a warrior has one or more Pokémon listed here, they only need to raise
|
||
one of them to the required link.</p>
|
||
<p>Table name: <em>conquest_transformation_pokemon</em></p>
|
||
<p>Primary key: <strong>transformation_id</strong>, <strong>pokemon_species_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestTransformationPokemon.<strong>transformation_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorTransformation" title="pokedex.db.tables.ConquestWarriorTransformation"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorTransformation</span></code></a>.transformed_warrior_rank_id):</p>
|
||
<blockquote>
|
||
<div>The ID of the corresponding transformation, in turn a warrior rank ID.</div></blockquote>
|
||
<p>ConquestTransformationPokemon.<strong>pokemon_species_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the Pokémon species.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquesttransformationwarrior">
|
||
<h3>ConquestTransformationWarrior<a class="headerlink" href="#dex-table-conquesttransformationwarrior" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestTransformationWarrior">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestTransformationWarrior</code><a class="headerlink" href="#pokedex.db.tables.ConquestTransformationWarrior" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A warrior who must be present in the same nation as another warrior for
|
||
the latter to transform into their next rank.</p>
|
||
<p>If a warrior has one or more other warriors listed here, they <em>all</em> need to
|
||
gather in the same nation for the transformation to take place.</p>
|
||
<p>Table name: <em>conquest_transformation_warriors</em></p>
|
||
<p>Primary key: <strong>transformation_id</strong>, <strong>present_warrior_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestTransformationWarrior.<strong>transformation_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorTransformation" title="pokedex.db.tables.ConquestWarriorTransformation"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorTransformation</span></code></a>.transformed_warrior_rank_id):</p>
|
||
<blockquote>
|
||
<div>The ID of the corresponding transformation, in turn a warrior rank ID.</div></blockquote>
|
||
<p>ConquestTransformationWarrior.<strong>present_warrior_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the other warrior who must be present.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarrior">
|
||
<h3>ConquestWarrior<a class="headerlink" href="#dex-table-conquestwarrior" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarrior">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarrior</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarrior" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A warrior in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_warriors</em>
|
||
(single: <em>warrior</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_warrior_names</em>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestWarrior.<strong>gender_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Gender" title="pokedex.db.tables.Gender"><code class="xref py py-class docutils literal"><span class="pre">Gender</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior’s gender.</div></blockquote>
|
||
<p>ConquestWarrior.<strong>archetype</strong> (archetype_id → <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorArchetype" title="pokedex.db.tables.ConquestWarriorArchetype"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorArchetype</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of this warrior’s archetype. Null for unique warriors.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarrior.<strong>episodes</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestEpisode" title="pokedex.db.tables.ConquestEpisode"><code class="xref py py-class docutils literal"><span class="pre">ConquestEpisode</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Association table: <code class="docutils literal"><span class="pre">conquest_episode_warriors</span></code></div></blockquote>
|
||
<p>ConquestWarrior.<strong>ranks</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRank" title="pokedex.db.tables.ConquestWarriorRank"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRank</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">conquest_warrior_ranks.rank</span></code></div></blockquote>
|
||
<p>ConquestWarrior.<strong>types</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">conquest_warrior_specialties</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">conquest_warrior_specialties.slot</span></code></p>
|
||
</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriorarchetype">
|
||
<h3>ConquestWarriorArchetype<a class="headerlink" href="#dex-table-conquestwarriorarchetype" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorArchetype">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorArchetype</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorArchetype" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>An archetype that generic warriors in Pokémon Conquest can have. All
|
||
warriors of a particular archetype share sprites and dialogue.</p>
|
||
<p>Some of these are unused as warriors because they exist only as NPCs. They
|
||
should still be kept because we have their sprites and may eventually get
|
||
their dialogue.</p>
|
||
<p>Table name: <em>conquest_warrior_archetypes</em>
|
||
(single: <em>archetype</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong> and <strong>identifier</strong>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarriorArchetype.<strong>warriors</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriorrank">
|
||
<h3>ConquestWarriorRank<a class="headerlink" href="#dex-table-conquestwarriorrank" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorRank">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorRank</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorRank" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A warrior at a particular rank in Pokémon Conquest.</p>
|
||
<p>These are used for whatever changes between ranks, much like Pokémon forms.
|
||
Generic warriors who have only one rank are also represented here, with a
|
||
single row.</p>
|
||
<p>To clarify, each warrior’s ranks are individually called “warrior ranks”
|
||
here; for example, “Rank 2 Nobunaga” is an example of a warrior rank, not
|
||
just “Rank 2”.</p>
|
||
<p>Table name: <em>conquest_warrior_ranks</em>
|
||
(single: <em>warrior_rank</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestWarriorRank.<strong>warrior</strong> (warrior_id → <a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior.</div></blockquote>
|
||
<p>ConquestWarriorRank.<strong>rank</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The rank number.</div></blockquote>
|
||
<p>ConquestWarriorRank.<strong>skill</strong> (skill_id → <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorSkill" title="pokedex.db.tables.ConquestWarriorSkill"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorSkill</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of this warrior rank’s warrior skill.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarriorRank.<strong>max_links</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestMaxLink" title="pokedex.db.tables.ConquestMaxLink"><code class="xref py py-class docutils literal"><span class="pre">ConquestMaxLink</span></code></a>])</p>
|
||
<p>ConquestWarriorRank.<strong>stats</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRankStatMap" title="pokedex.db.tables.ConquestWarriorRankStatMap"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRankStatMap</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">conquest_warrior_rank_stat_map.warrior_stat_id</span></code></div></blockquote>
|
||
<p>ConquestWarriorRank.<strong>transformation</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorTransformation" title="pokedex.db.tables.ConquestWarriorTransformation"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorTransformation</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriorrankstatmap">
|
||
<h3>ConquestWarriorRankStatMap<a class="headerlink" href="#dex-table-conquestwarriorrankstatmap" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorRankStatMap">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorRankStatMap</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorRankStatMap" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Any of a warrior rank’s warrior stats in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_warrior_rank_stat_map</em></p>
|
||
<p>Primary key: <strong>warrior_rank_id</strong>, <strong>warrior_stat_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestWarriorRankStatMap.<strong>warrior_rank</strong> (warrior_rank_id → <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRank" title="pokedex.db.tables.ConquestWarriorRank"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRank</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior rank.</div></blockquote>
|
||
<p>ConquestWarriorRankStatMap.<strong>warrior_stat_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorStat" title="pokedex.db.tables.ConquestWarriorStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorStat</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior stat.</div></blockquote>
|
||
<p>ConquestWarriorRankStatMap.<strong>base_stat</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The stat.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarriorRankStatMap.<strong>stat</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorStat" title="pokedex.db.tables.ConquestWarriorStat"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorStat</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriorskill">
|
||
<h3>ConquestWarriorSkill<a class="headerlink" href="#dex-table-conquestwarriorskill" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorSkill">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorSkill</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorSkill" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A warrior skill in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_warrior_skills</em>
|
||
(single: <em>skill</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_warrior_skill_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarriorSkill.<strong>warrior_ranks</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRank" title="pokedex.db.tables.ConquestWarriorRank"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRank</span></code></a>])</p>
|
||
<blockquote>
|
||
<div>Ordered by: <code class="docutils literal"><span class="pre">conquest_warrior_ranks.id</span></code></div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriorspecialty">
|
||
<h3>ConquestWarriorSpecialty<a class="headerlink" href="#dex-table-conquestwarriorspecialty" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorSpecialty">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorSpecialty</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorSpecialty" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A warrior’s specialty types in Pokémon Conquest.</p>
|
||
<p>These have no actual effect on gameplay; they just indicate which types of
|
||
Pokémon each warrior generally has strong maximum links with.</p>
|
||
<p>Table name: <em>conquest_warrior_specialties</em></p>
|
||
<p>Primary key: <strong>warrior_id</strong>, <strong>type_id</strong>, <strong>slot</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestWarriorSpecialty.<strong>warrior_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the warrior.</div></blockquote>
|
||
<p>ConquestWarriorSpecialty.<strong>type_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the type.</div></blockquote>
|
||
<p>ConquestWarriorSpecialty.<strong>slot</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The order in which the warrior’s types are listed.</div></blockquote>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriorstat">
|
||
<h3>ConquestWarriorStat<a class="headerlink" href="#dex-table-conquestwarriorstat" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorStat">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorStat</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorStat" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A stat that warriors have in Pokémon Conquest.</p>
|
||
<p>Table name: <em>conquest_warrior_stats</em>
|
||
(single: <em>warrior_stat</em>)</p>
|
||
<p>Primary key: <strong>id</strong>.</p>
|
||
<p>Has
|
||
<strong>id</strong>, <strong>identifier</strong>, and <strong>name</strong> via <em>conquest_warrior_stat_names</em>.</p>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarriorStat.<strong>stat_map</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRankStatMap" title="pokedex.db.tables.ConquestWarriorRankStatMap"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRankStatMap</span></code></a>])</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="dex-table-conquestwarriortransformation">
|
||
<h3>ConquestWarriorTransformation<a class="headerlink" href="#dex-table-conquestwarriortransformation" title="Permalink to this headline">¶</a></h3>
|
||
<dl class="dex-table">
|
||
<dt id="pokedex.db.tables.ConquestWarriorTransformation">
|
||
<code class="descclassname">pokedex.db.tables.</code><code class="descname">ConquestWarriorTransformation</code><a class="headerlink" href="#pokedex.db.tables.ConquestWarriorTransformation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The conditions under which a warrior must perform an action in order
|
||
to transform to the next rank.</p>
|
||
<p>Or most of them, anyway. See also ConquestTransformationPokemon and
|
||
ConquestTransformationWarrior.</p>
|
||
<p>Table name: <em>conquest_warrior_transformation</em></p>
|
||
<p>Primary key: <strong>transformed_warrior_rank_id</strong>.</p>
|
||
<hr><p>Columns:</p>
|
||
<p>ConquestWarriorTransformation.<strong>transformed_warrior_rank_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRank" title="pokedex.db.tables.ConquestWarriorRank"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRank</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of the post-transformation warrior rank.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>is_automatic</strong> (<em>bool</em>):</p>
|
||
<blockquote>
|
||
<div>True iff the transformation happens automatically in the story with no further requirements.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>required_link</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The link percentage the warrior must reach with one of several specific Pokémon, if any.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>completed_episode</strong> (completed_episode_id → <a class="reference internal" href="#pokedex.db.tables.ConquestEpisode" title="pokedex.db.tables.ConquestEpisode"><code class="xref py py-class docutils literal"><span class="pre">ConquestEpisode</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the episode the player must have completed, if any.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>current_episode</strong> (current_episode_id → <a class="reference internal" href="#pokedex.db.tables.ConquestEpisode" title="pokedex.db.tables.ConquestEpisode"><code class="xref py py-class docutils literal"><span class="pre">ConquestEpisode</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of the episode the player must currently be playing, if any.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>distant_warrior</strong> (distant_warrior_id → <a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>.id)</p>
|
||
<blockquote>
|
||
<div>The ID of another warrior who must be in the army, but not in the same kingdom or in any adjacent kingdom.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>female_warlord_count</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The number of female warlords who must be in the same nation.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>pokemon_count</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The number of Pokémon that must be registered in the gallery.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>collection_type_id</strong> (→ <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>.id):</p>
|
||
<blockquote>
|
||
<div>The ID of a type all Pokémon of which must be registered in the gallery.</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>warrior_count</strong> (<em>int</em>):</p>
|
||
<blockquote>
|
||
<div>The number of warriors that must be registered in the gallery.</div></blockquote>
|
||
<hr><p>Relationships:</p>
|
||
<p>ConquestWarriorTransformation.<strong>pokemon</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.PokemonSpecies" title="pokedex.db.tables.PokemonSpecies"><code class="xref py py-class docutils literal"><span class="pre">PokemonSpecies</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">conquest_transformation_pokemon</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">pokemon_species.conquest_order</span></code></p>
|
||
</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>present_warriors</strong>
|
||
(→ [<a class="reference internal" href="#pokedex.db.tables.ConquestWarrior" title="pokedex.db.tables.ConquestWarrior"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarrior</span></code></a>])</p>
|
||
<blockquote>
|
||
<div><p>Association table: <code class="docutils literal"><span class="pre">conquest_transformation_warriors</span></code></p>
|
||
<p>Ordered by: <code class="docutils literal"><span class="pre">conquest_warriors.id</span></code></p>
|
||
</div></blockquote>
|
||
<p>ConquestWarriorTransformation.<strong>type</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.Type" title="pokedex.db.tables.Type"><code class="xref py py-class docutils literal"><span class="pre">Type</span></code></a>)</p>
|
||
<p>ConquestWarriorTransformation.<strong>warrior_rank</strong>
|
||
(→ <a class="reference internal" href="#pokedex.db.tables.ConquestWarriorRank" title="pokedex.db.tables.ConquestWarriorRank"><code class="xref py py-class docutils literal"><span class="pre">ConquestWarriorRank</span></code></a>)</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
||
<div class="sphinxsidebarwrapper">
|
||
<h3><a href="index.html">Table Of Contents</a></h3>
|
||
<ul>
|
||
<li><a class="reference internal" href="#">The pokédex tables</a><ul>
|
||
<li><a class="reference internal" href="#pokemon">Pokémon</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-pokemonspecies">PokemonSpecies</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemon">Pokemon</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonform">PokemonForm</a></li>
|
||
<li><a class="reference internal" href="#dex-table-evolutionchain">EvolutionChain</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonevolution">PokemonEvolution</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#moves">Moves</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-move">Move</a></li>
|
||
<li><a class="reference internal" href="#dex-table-moveeffect">MoveEffect</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movemeta">MoveMeta</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#items">Items</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-item">Item</a></li>
|
||
<li><a class="reference internal" href="#dex-table-berry">Berry</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#types">Types</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-type">Type</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#abilities">Abilities</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-ability">Ability</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#language">Language</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-language">Language</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#version-stuff">Version stuff</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-generation">Generation</a></li>
|
||
<li><a class="reference internal" href="#dex-table-versiongroup">VersionGroup</a></li>
|
||
<li><a class="reference internal" href="#dex-table-version">Version</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokedex">Pokedex</a></li>
|
||
<li><a class="reference internal" href="#dex-table-region">Region</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#encounters">Encounters</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-location">Location</a></li>
|
||
<li><a class="reference internal" href="#dex-table-locationarea">LocationArea</a></li>
|
||
<li><a class="reference internal" href="#dex-table-locationareaencounterrate">LocationAreaEncounterRate</a></li>
|
||
<li><a class="reference internal" href="#dex-table-encounter">Encounter</a></li>
|
||
<li><a class="reference internal" href="#dex-table-encountercondition">EncounterCondition</a></li>
|
||
<li><a class="reference internal" href="#dex-table-encounterconditionvalue">EncounterConditionValue</a></li>
|
||
<li><a class="reference internal" href="#dex-table-encountermethod">EncounterMethod</a></li>
|
||
<li><a class="reference internal" href="#dex-table-encounterslot">EncounterSlot</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#contests">Contests</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-contestcombo">ContestCombo</a></li>
|
||
<li><a class="reference internal" href="#dex-table-contesteffect">ContestEffect</a></li>
|
||
<li><a class="reference internal" href="#dex-table-supercontestcombo">SuperContestCombo</a></li>
|
||
<li><a class="reference internal" href="#dex-table-supercontesteffect">SuperContestEffect</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#enum-tables">Enum tables</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-berryfirmness">BerryFirmness</a></li>
|
||
<li><a class="reference internal" href="#dex-table-contesttype">ContestType</a></li>
|
||
<li><a class="reference internal" href="#dex-table-egggroup">EggGroup</a></li>
|
||
<li><a class="reference internal" href="#dex-table-evolutiontrigger">EvolutionTrigger</a></li>
|
||
<li><a class="reference internal" href="#dex-table-gender">Gender</a></li>
|
||
<li><a class="reference internal" href="#dex-table-growthrate">GrowthRate</a></li>
|
||
<li><a class="reference internal" href="#dex-table-itemcategory">ItemCategory</a></li>
|
||
<li><a class="reference internal" href="#dex-table-itemflingeffect">ItemFlingEffect</a></li>
|
||
<li><a class="reference internal" href="#dex-table-itempocket">ItemPocket</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movebattlestyle">MoveBattleStyle</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movedamageclass">MoveDamageClass</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movemetaailment">MoveMetaAilment</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movemetacategory">MoveMetaCategory</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movetarget">MoveTarget</a></li>
|
||
<li><a class="reference internal" href="#dex-table-nature">Nature</a></li>
|
||
<li><a class="reference internal" href="#dex-table-palparkarea">PalParkArea</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemoncolor">PokemonColor</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonmovemethod">PokemonMoveMethod</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonshape">PokemonShape</a></li>
|
||
<li><a class="reference internal" href="#dex-table-stat">Stat</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#changelogs">Changelogs</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-abilitychangelog">AbilityChangelog</a></li>
|
||
<li><a class="reference internal" href="#dex-table-moveeffectchangelog">MoveEffectChangelog</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movechangelog">MoveChangelog</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#flavor-text">Flavor text</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-itemflavortext">ItemFlavorText</a></li>
|
||
<li><a class="reference internal" href="#dex-table-abilityflavortext">AbilityFlavorText</a></li>
|
||
<li><a class="reference internal" href="#dex-table-moveflavortext">MoveFlavorText</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonspeciesflavortext">PokemonSpeciesFlavorText</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#association-tables">Association tables</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-berryflavor">BerryFlavor</a></li>
|
||
<li><a class="reference internal" href="#dex-table-encounterconditionvaluemap">EncounterConditionValueMap</a></li>
|
||
<li><a class="reference internal" href="#dex-table-itemflag">ItemFlag</a></li>
|
||
<li><a class="reference internal" href="#dex-table-itemflagmap">ItemFlagMap</a></li>
|
||
<li><a class="reference internal" href="#dex-table-machine">Machine</a></li>
|
||
<li><a class="reference internal" href="#dex-table-moveflag">MoveFlag</a></li>
|
||
<li><a class="reference internal" href="#dex-table-moveflagmap">MoveFlagMap</a></li>
|
||
<li><a class="reference internal" href="#dex-table-movemetastatchange">MoveMetaStatChange</a></li>
|
||
<li><a class="reference internal" href="#dex-table-naturebattlestylepreference">NatureBattleStylePreference</a></li>
|
||
<li><a class="reference internal" href="#dex-table-naturepokeathlonstat">NaturePokeathlonStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokeathlonstat">PokeathlonStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokedexversiongroup">PokedexVersionGroup</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonability">PokemonAbility</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonegggroup">PokemonEggGroup</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonformpokeathlonstat">PokemonFormPokeathlonStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonhabitat">PokemonHabitat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonmove">PokemonMove</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonstat">PokemonStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonitem">PokemonItem</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemontype">PokemonType</a></li>
|
||
<li><a class="reference internal" href="#dex-table-typeefficacy">TypeEfficacy</a></li>
|
||
<li><a class="reference internal" href="#dex-table-versiongrouppokemonmovemethod">VersionGroupPokemonMoveMethod</a></li>
|
||
<li><a class="reference internal" href="#dex-table-versiongroupregion">VersionGroupRegion</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#index-maps">Index maps</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-itemgameindex">ItemGameIndex</a></li>
|
||
<li><a class="reference internal" href="#dex-table-locationgameindex">LocationGameIndex</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemondexnumber">PokemonDexNumber</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemonformgeneration">PokemonFormGeneration</a></li>
|
||
<li><a class="reference internal" href="#dex-table-pokemongameindex">PokemonGameIndex</a></li>
|
||
<li><a class="reference internal" href="#dex-table-typegameindex">TypeGameIndex</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#mics-tables">Mics tables</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-experience">Experience</a></li>
|
||
<li><a class="reference internal" href="#dex-table-palpark">PalPark</a></li>
|
||
<li><a class="reference internal" href="#dex-table-characteristic">Characteristic</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a class="reference internal" href="#conquest-tables">Conquest tables</a><ul>
|
||
<li><a class="reference internal" href="#dex-table-conquestepisode">ConquestEpisode</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestepisodewarrior">ConquestEpisodeWarrior</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestkingdom">ConquestKingdom</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestmaxlink">ConquestMaxLink</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestmovedata">ConquestMoveData</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestmovedisplacement">ConquestMoveDisplacement</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestmoveeffect">ConquestMoveEffect</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestmoverange">ConquestMoveRange</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestpokemonability">ConquestPokemonAbility</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestpokemonevolution">ConquestPokemonEvolution</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestpokemonmove">ConquestPokemonMove</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestpokemonstat">ConquestPokemonStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conqueststat">ConquestStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquesttransformationpokemon">ConquestTransformationPokemon</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquesttransformationwarrior">ConquestTransformationWarrior</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarrior">ConquestWarrior</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriorarchetype">ConquestWarriorArchetype</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriorrank">ConquestWarriorRank</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriorrankstatmap">ConquestWarriorRankStatMap</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriorskill">ConquestWarriorSkill</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriorspecialty">ConquestWarriorSpecialty</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriorstat">ConquestWarriorStat</a></li>
|
||
<li><a class="reference internal" href="#dex-table-conquestwarriortransformation">ConquestWarriorTransformation</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
<h4>Previous topic</h4>
|
||
<p class="topless"><a href="schema.html"
|
||
title="previous chapter">The database schema</a></p>
|
||
<div role="note" aria-label="source link">
|
||
<h3>This Page</h3>
|
||
<ul class="this-page-menu">
|
||
<li><a href="_sources/main-tables.txt"
|
||
rel="nofollow">Show Source</a></li>
|
||
</ul>
|
||
</div>
|
||
<div id="searchbox" style="display: none" role="search">
|
||
<h3>Quick search</h3>
|
||
<form class="search" action="search.html" method="get">
|
||
<input type="text" name="q" />
|
||
<input type="submit" value="Go" />
|
||
<input type="hidden" name="check_keywords" value="yes" />
|
||
<input type="hidden" name="area" value="default" />
|
||
</form>
|
||
<p class="searchtip" style="font-size: 90%">
|
||
Enter search terms or a module, class or function name.
|
||
</p>
|
||
</div>
|
||
<script type="text/javascript">$('#searchbox').show(0);</script>
|
||
</div>
|
||
</div>
|
||
<div class="clearer"></div>
|
||
</div>
|
||
<div class="related" role="navigation" aria-label="related navigation">
|
||
<h3>Navigation</h3>
|
||
<ul>
|
||
<li class="right" style="margin-right: 10px">
|
||
<a href="genindex.html" title="General Index"
|
||
>index</a></li>
|
||
<li class="right" >
|
||
<a href="py-modindex.html" title="Python Module Index"
|
||
>modules</a> |</li>
|
||
<li class="right" >
|
||
<a href="schema.html" title="The database schema"
|
||
>previous</a> |</li>
|
||
<li class="nav-item nav-item-0"><a href="index.html">pokedex 0.1 documentation</a> »</li>
|
||
<li class="nav-item nav-item-1"><a href="schema.html" >The database schema</a> »</li>
|
||
</ul>
|
||
</div>
|
||
<div class="footer" role="contentinfo">
|
||
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.
|
||
</div>
|
||
</body>
|
||
</html> |