![]() |
TrinityCore
|
#include "Unit.h"#include "DB2Stores.h"#include "Item.h"#include "Player.h"#include "Pet.h"#include "GameTables.h"#include "GameTime.h"#include "ObjectMgr.h"#include "SharedDefines.h"#include "SpellAuras.h"#include "SpellAuraEffects.h"#include "World.h"#include <G3D/g3dmath.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] |
| constexpr float | parry_cap [MAX_CLASSES] |
| constexpr float | dodge_cap [MAX_CLASSES] |
| static constexpr std::array< Optional< Rates >, MAX_POWERS > | PowerRegenInfo |
| #define ENTRY_BLOODWORM 28017 |
Definition at line 1160 of file StatSystem.cpp.
| #define ENTRY_FELGUARD 17252 |
Definition at line 1155 of file StatSystem.cpp.
| #define ENTRY_FELHUNTER 417 |
Definition at line 1154 of file StatSystem.cpp.
| #define ENTRY_FIRE_ELEMENTAL 15438 |
Definition at line 1158 of file StatSystem.cpp.
| #define ENTRY_GHOUL 26125 |
Definition at line 1159 of file StatSystem.cpp.
| #define ENTRY_IMP 416 |
Definition at line 1151 of file StatSystem.cpp.
| #define ENTRY_SUCCUBUS 1863 |
Definition at line 1153 of file StatSystem.cpp.
| #define ENTRY_TREANT 1964 |
Definition at line 1157 of file StatSystem.cpp.
| #define ENTRY_VOIDWALKER 1860 |
Definition at line 1152 of file StatSystem.cpp.
| #define ENTRY_WATER_ELEMENTAL 510 |
Definition at line 1156 of file StatSystem.cpp.
Definition at line 33 of file StatSystem.cpp.
Referenced by Player::ApplyHealthRegenBonus(), Player::ApplyManaRegenBonus(), and Player::ApplySpellPowerBonus().
| float CalculateDiminishingReturns | ( | float const (&) | capArray[MAX_CLASSES], |
| uint8 | playerClass, | ||
| float | nonDiminishValue, | ||
| float | diminishValue | ||
| ) |
Definition at line 616 of file StatSystem.cpp.
References m_diminishing_k.
Referenced by Player::UpdateDodgePercentage(), and Player::UpdateParryPercentage().
|
constexpr |
Definition at line 680 of file StatSystem.cpp.
Referenced by Player::UpdateDodgePercentage().
| float const m_diminishing_k[MAX_CLASSES] |
Definition at line 596 of file StatSystem.cpp.
Referenced by CalculateDiminishingReturns().
|
constexpr |
Definition at line 638 of file StatSystem.cpp.
Referenced by Player::UpdateParryPercentage().
|
staticconstexpr |
Definition at line 817 of file StatSystem.cpp.
Referenced by Player::UpdatePowerRegen().