TrinityCore
StatSystem.cpp File Reference
#include "Unit.h"
#include "DB2Stores.h"
#include "Item.h"
#include "Player.h"
#include "Pet.h"
#include "GameTables.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]
 
float const parry_cap [MAX_CLASSES]
 
float const dodge_cap [MAX_CLASSES]
 

Macro Definition Documentation

◆ ENTRY_BLOODWORM

#define ENTRY_BLOODWORM   28017

Definition at line 1058 of file StatSystem.cpp.

◆ ENTRY_FELGUARD

#define ENTRY_FELGUARD   17252

Definition at line 1053 of file StatSystem.cpp.

◆ ENTRY_FELHUNTER

#define ENTRY_FELHUNTER   417

Definition at line 1052 of file StatSystem.cpp.

◆ ENTRY_FIRE_ELEMENTAL

#define ENTRY_FIRE_ELEMENTAL   15438

Definition at line 1056 of file StatSystem.cpp.

◆ ENTRY_GHOUL

#define ENTRY_GHOUL   26125

Definition at line 1057 of file StatSystem.cpp.

◆ ENTRY_IMP

#define ENTRY_IMP   416

Definition at line 1049 of file StatSystem.cpp.

◆ ENTRY_SUCCUBUS

#define ENTRY_SUCCUBUS   1863

Definition at line 1051 of file StatSystem.cpp.

◆ ENTRY_TREANT

#define ENTRY_TREANT   1964

Definition at line 1055 of file StatSystem.cpp.

◆ ENTRY_VOIDWALKER

#define ENTRY_VOIDWALKER   1860

Definition at line 1050 of file StatSystem.cpp.

◆ ENTRY_WATER_ELEMENTAL

#define ENTRY_WATER_ELEMENTAL   510

Definition at line 1054 of file StatSystem.cpp.

Function Documentation

◆ _ModifyUInt32()

bool _ModifyUInt32 ( bool  apply,
uint32 baseValue,
int32 amount 
)
inline

Definition at line 32 of file StatSystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateDiminishingReturns()

float CalculateDiminishingReturns ( float const (&)  capArray[MAX_CLASSES],
uint8  playerClass,
float  nonDiminishValue,
float  diminishValue 
)

Definition at line 615 of file StatSystem.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ dodge_cap

float const dodge_cap[MAX_CLASSES]
Initial value:
=
{
65.631440f,
65.631440f,
145.560408f,
145.560408f,
150.375940f,
65.631440f,
145.560408f,
150.375940f,
150.375940f,
145.560408f,
116.890707f,
145.560408f,
145.560408f,
0.0f,
}

Definition at line 678 of file StatSystem.cpp.

◆ m_diminishing_k

float const m_diminishing_k[MAX_CLASSES]
Initial value:
=
{
0.9560f,
0.9560f,
0.9880f,
0.9880f,
0.9830f,
0.9560f,
0.9880f,
0.9830f,
0.9830f,
0.9830f,
0.9720f,
0.9830f,
0.9880f,
1.0f,
}

Definition at line 596 of file StatSystem.cpp.

◆ parry_cap

float const parry_cap[MAX_CLASSES]
Initial value:
=
{
65.631440f,
65.631440f,
145.560408f,
145.560408f,
0.0f,
65.631440f,
145.560408f,
0.0f,
0.0f,
90.6425f,
0.0f,
65.631440f,
0.0f,
0.0f,
}

Definition at line 637 of file StatSystem.cpp.