Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
StatSystem.cpp File Reference
#include "Creature.h"
#include "Pet.h"
#include "Player.h"
#include "SharedDefines.h"
#include "SpellAuraEffects.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "Unit.h"
#include "World.h"
#include <numeric>
Include dependency graph for StatSystem.cpp:

Go to the source code of this file.

Macros

#define ENTRY_BLOODWORM   28017
#define ENTRY_FELGUARD   17252
#define ENTRY_FELHUNTER   417
#define ENTRY_FIRE_ELEMENTAL   15438
#define ENTRY_GHOUL   26125
#define ENTRY_IMP   416
#define ENTRY_SUCCUBUS   1863
#define ENTRY_TREANT   1964
#define ENTRY_VOIDWALKER   1860
#define ENTRY_WATER_ELEMENTAL   510

Functions

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

Variables

const float m_diminishing_k [MAX_CLASSES]

Macro Definition Documentation

◆ ENTRY_BLOODWORM

#define ENTRY_BLOODWORM   28017

Definition at line 978 of file StatSystem.cpp.

Referenced by Guardian::UpdateMaxHealth().

◆ ENTRY_FELGUARD

#define ENTRY_FELGUARD   17252

Definition at line 973 of file StatSystem.cpp.

Referenced by Guardian::UpdateMaxHealth(), and Guardian::UpdateMaxPower().

◆ ENTRY_FELHUNTER

#define ENTRY_FELHUNTER   417

Definition at line 972 of file StatSystem.cpp.

Referenced by Guardian::UpdateMaxHealth(), and Guardian::UpdateMaxPower().

◆ ENTRY_FIRE_ELEMENTAL

#define ENTRY_FIRE_ELEMENTAL   15438

Definition at line 976 of file StatSystem.cpp.

Referenced by Guardian::UpdateDamagePhysical().

◆ ENTRY_GHOUL

#define ENTRY_GHOUL   26125

Definition at line 977 of file StatSystem.cpp.

◆ ENTRY_IMP

#define ENTRY_IMP   416

◆ ENTRY_SUCCUBUS

#define ENTRY_SUCCUBUS   1863

Definition at line 971 of file StatSystem.cpp.

Referenced by Guardian::UpdateMaxHealth(), and Guardian::UpdateMaxPower().

◆ ENTRY_TREANT

#define ENTRY_TREANT   1964

Definition at line 975 of file StatSystem.cpp.

Referenced by Guardian::UpdateDamagePhysical().

◆ ENTRY_VOIDWALKER

#define ENTRY_VOIDWALKER   1860

Definition at line 970 of file StatSystem.cpp.

Referenced by Guardian::UpdateMaxHealth(), and Guardian::UpdateMaxPower().

◆ ENTRY_WATER_ELEMENTAL

#define ENTRY_WATER_ELEMENTAL   510

Definition at line 974 of file StatSystem.cpp.

Referenced by Guardian::UpdateAttackPowerAndDamage().

Function Documentation

◆ _ModifyUInt32()

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

Variable Documentation

◆ m_diminishing_k

const float 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.9880f,
0.9720f
}

Definition at line 554 of file StatSystem.cpp.

Referenced by Player::UpdateDodgePercentage(), and Player::UpdateParryPercentage().