![]() |
TrinityCore
|
#include "Unit.h"#include "Creature.h"#include "Item.h"#include "Pet.h"#include "Player.h"#include "SharedDefines.h"#include "SpellAuras.h"#include "SpellAuraEffects.h"#include "SpellMgr.h"#include "World.h"#include <numeric>
Include dependency graph for StatSystem.cpp:Go to the source code of this file.
Macros | |
| #define | ENTRY_IMP 416 |
| #define | ENTRY_VOIDWALKER 1860 |
| #define | ENTRY_SUCCUBUS 1863 |
| #define | ENTRY_FELHUNTER 417 |
| #define | ENTRY_FELGUARD 17252 |
| #define | ENTRY_WATER_ELEMENTAL 510 |
| #define | ENTRY_TREANT 1964 |
| #define | ENTRY_FIRE_ELEMENTAL 15438 |
| #define | ENTRY_GHOUL 26125 |
| #define | ENTRY_BLOODWORM 28017 |
Functions | |
| bool | _ModifyUInt32 (bool apply, uint32 &baseValue, int32 &amount) |
| float | CalculateDiminishingReturns (float const (&capArray)[MAX_CLASSES], uint8 playerClass, float nonDiminishValue, float diminishValue) |
Variables | |
| float const | m_diminishing_k [MAX_CLASSES] |
| float const | miss_cap [MAX_CLASSES] |
| float const | parry_cap [MAX_CLASSES] |
| float const | dodge_cap [MAX_CLASSES] |
| static constexpr std::array< std::pair< float, Optional< Rates > >, MAX_POWERS > | PowerRegenInfo |
| #define ENTRY_BLOODWORM 28017 |
Definition at line 1232 of file StatSystem.cpp.
| #define ENTRY_FELGUARD 17252 |
Definition at line 1227 of file StatSystem.cpp.
| #define ENTRY_FELHUNTER 417 |
Definition at line 1226 of file StatSystem.cpp.
| #define ENTRY_FIRE_ELEMENTAL 15438 |
Definition at line 1230 of file StatSystem.cpp.
| #define ENTRY_GHOUL 26125 |
Definition at line 1231 of file StatSystem.cpp.
| #define ENTRY_IMP 416 |
Definition at line 1223 of file StatSystem.cpp.
| #define ENTRY_SUCCUBUS 1863 |
Definition at line 1225 of file StatSystem.cpp.
| #define ENTRY_TREANT 1964 |
Definition at line 1229 of file StatSystem.cpp.
| #define ENTRY_VOIDWALKER 1860 |
Definition at line 1224 of file StatSystem.cpp.
| #define ENTRY_WATER_ELEMENTAL 510 |
Definition at line 1228 of file StatSystem.cpp.
Definition at line 30 of file StatSystem.cpp.
Referenced by Player::ApplyFeralAPBonus(), Player::ApplyHealthRegenBonus(), Player::ApplyManaRegenBonus(), and Player::ApplySpellPowerBonus().
| float CalculateDiminishingReturns | ( | float const (&) | capArray[MAX_CLASSES], |
| uint8 | playerClass, | ||
| float | nonDiminishValue, | ||
| float | diminishValue | ||
| ) |
Definition at line 704 of file StatSystem.cpp.
References m_diminishing_k.
Referenced by Player::GetMissPercentageFromDefense(), Player::UpdateDodgePercentage(), and Player::UpdateParryPercentage().
| float const dodge_cap[MAX_CLASSES] |
Definition at line 794 of file StatSystem.cpp.
Referenced by Player::UpdateDodgePercentage().
| float const m_diminishing_k[MAX_CLASSES] |
Definition at line 688 of file StatSystem.cpp.
Referenced by CalculateDiminishingReturns().
| float const miss_cap[MAX_CLASSES] |
Definition at line 726 of file StatSystem.cpp.
Referenced by Player::GetMissPercentageFromDefense().
| float const parry_cap[MAX_CLASSES] |
Definition at line 752 of file StatSystem.cpp.
Referenced by Player::UpdateParryPercentage().
|
staticconstexpr |
Definition at line 924 of file StatSystem.cpp.
Referenced by Player::GetPowerRegen(), and Player::UpdatePowerRegen().