summaryrefslogtreecommitdiff
path: root/docs/player_race_stats.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/player_race_stats.md')
-rw-r--r--docs/player_race_stats.md59
1 files changed, 59 insertions, 0 deletions
diff --git a/docs/player_race_stats.md b/docs/player_race_stats.md
new file mode 100644
index 0000000..c7d0774
--- /dev/null
+++ b/docs/player_race_stats.md
@@ -0,0 +1,59 @@
+# player\_race\_stats
+
+[<-Back-to:World](database-world.md)
+
+**The \`player\_race\_stats\` table**
+
+This table holds information on modifiers for stat values applied to characters. All of the values in this table signify only the stat value modifiers based on the race of a character.
+
+**Structure**
+
+| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
+|----------------|---------|------------|-----|------|---------|-------|---------|
+| [Race][1] | TINYINT | UNSIGNED | PRI | NO | | | |
+| [Strength][2] | INT | UNSIGNED | | NO | 0 | | |
+| [Agility][3] | INT | UNSIGNED | | NO | 0 | | |
+| [Stamina][4] | INT | UNSIGNED | | NO | 0 | | |
+| [Intellect][5] | INT | UNSIGNED | | NO | 0 | | |
+| [Spirit][6] | INT | UNSIGNED | | NO | 0 | | |
+
+[1]: #Race
+[2]: #Strength
+[3]: #Agility
+[4]: #Stamina
+[5]: #Intellect
+[6]: #Spirit
+
+**Description of the fields**
+
+### Race
+
+The character race. This field defines what values to apply to the stats of a character. This value is taken from [`ChrRaces.dbc`](chrraces).
+
+### Strength
+
+The strength modifier to apply to a character's base stat.
+
+### Agility
+
+The agility modifier to apply to a character's base stat.
+
+### Stamina
+
+The stamina modifier to apply to a character's base stat.
+
+### Intellect
+
+The intellect modifier to apply to a character's base stat.
+
+### Spirit
+
+The spirit modifier to apply to a character's base stat.
+
+**Relation to [\`player\_class\_stats\`](player_class_stats)**
+
+This table alone does not define the stats of a character. The values from this table are combined with the values found in the `player\_class\_stats` table to apply the final stats to a character at any level.
+
+The way the final stat can be calculated is as follows: Take the base stat from `player\_class\_stats` and add the modifier for that stat from this table.
+
+For example, a druid at level forty has a base strength stat of forty-six. Combining that with a night elf's strength modifier of negative four, you get a final value of forty-two.