Module:Pet/Data/doc

Module:Pet/Data is a storage module used by Module:Pet.

Data Structure Description
Every pet should contain a field. It should be a string of text containing first letters of each rarity of the pet. Not case sensitive. Letters can be separated with anything. Do not use %, it gets added afterwards.
 * -|Rarities=
 * Example
 * If a pet comes in only and  rarities:

If a pet has stats, this field should be used. Each stat can come in two forms: Its structure looks like this:
 * -|Stats=
 * Leveling stat (one that increases every level)
 * Base stat (one that does not change, leveling stat gets added to it)

stat should be replaced with proper stat code (every stat is supported, see Statname for further reference), while per_lvl and base should be replaced with a numeric value (not string!). base value is not required, and can be deleted if not used.
 * Example
 * For a pet with base strength of 10 and max strength of 60 (which comes to 0.5 strength per level)


 * -|Abilities=

The variables field adds data for each rarity of the pet. The layout for variables on one rarity ( in this example) is as follows:
 * -|Variables=

Rarity-based Variables
rarity-based variable fields should be replaced with the following fields (if any): Note: One of ability_count or ability_indices must exist.

Ability Variables
Each indexed variable field [n] is used to replace a variable within ability variable info should have the following fields:


 * Abilities with no variables
 * Then you don't need any indexed values for your ability table.


 * Rarity doesn't exist
 * If a certain rarity doesn't exist, remove it completely from the variables table.