Difference between revisions of "Template:SpeciesStats"

From Cassette Beasts
(Try to fix max move slots lookup)
(Fix move slots range not being compressed if upper and lower values are the same)
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
<table class="wikitable datatable">
 
<table class="wikitable datatable">
 
<tr><th>Max&nbsp;AP</th><td>{{#invoke:Database|get_species|{{{id}}}|stats|max_ap}} / 10</td></tr>
 
<tr><th>Max&nbsp;AP</th><td>{{#invoke:Database|get_species|{{{id}}}|stats|max_ap}} / 10</td></tr>
<tr><th>Move&nbsp;Slots</th><td>{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}} to {{SpeciesMaxMoveSlots|{{#invoke:Database|get_species|{{{id}}}|bestiary_index}}}} / 8</td></tr>
+
<tr><th>Move&nbsp;Slots</th><td>{{#ifeq:{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}}|{{SpeciesMaxMoveSlots|{{{id}}}}}|{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}}|{{#invoke:Database|get_species|{{{id}}}|stats|move_slots}} to {{SpeciesMaxMoveSlots|{{{id}}}}}}} / 8</td></tr>
 
</table>
 
</table>

Latest revision as of 16:38, 6 October 2023

Base Form Stats

Max HP
0
M. Atk
0
M. Def
0
R. Atk
0
R. Def
0
Speed
0

Additional Stats

Max AP0 / 10
Move Slots0 to Unknown / 8