AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ScalingStatValuesEntry Struct Reference

#include "DBCStructure.h"

Public Member Functions

uint32 getssdMultiplier (uint32 mask) const
 
uint32 getArmorMod (uint32 mask) const
 
uint32 getDPSMod (uint32 mask) const
 
bool IsTwoHand (uint32 mask) const
 
uint32 getSpellBonus (uint32 mask) const
 
uint32 getFeralBonus (uint32 mask) const
 

Public Attributes

uint32 Id
 
uint32 Level
 
uint32 ssdMultiplier [4]
 
uint32 armorMod [4]
 
uint32 dpsMod [6]
 
uint32 spellPower
 
uint32 ssdMultiplier2
 
uint32 ssdMultiplier3
 
uint32 armorMod2 [5]
 

Detailed Description

Member Function Documentation

◆ getArmorMod()

uint32 ScalingStatValuesEntry::getArmorMod ( uint32  mask) const
inline
1507 {
1508 if (mask & 0x00F801E0)
1509 {
1510 if (mask & 0x00000020) return armorMod[0]; // Cloth shoulder
1511 if (mask & 0x00000040) return armorMod[1]; // Leather shoulder
1512 if (mask & 0x00000080) return armorMod[2]; // Mail shoulder
1513 if (mask & 0x00000100) return armorMod[3]; // Plate shoulder
1514
1515 if (mask & 0x00080000) return armorMod2[0]; // cloak
1516 if (mask & 0x00100000) return armorMod2[1]; // cloth
1517 if (mask & 0x00200000) return armorMod2[2]; // leather
1518 if (mask & 0x00400000) return armorMod2[3]; // mail
1519 if (mask & 0x00800000) return armorMod2[4]; // plate
1520 }
1521 return 0;
1522 }
uint32 armorMod2[5]
Definition: DBCStructure.h:1490
uint32 armorMod[4]
Definition: DBCStructure.h:1485

References armorMod, and armorMod2.

Referenced by Player::_ApplyItemBonuses().

◆ getDPSMod()

uint32 ScalingStatValuesEntry::getDPSMod ( uint32  mask) const
inline
1525 {
1526 if (mask & 0x7E00)
1527 {
1528 if (mask & 0x00000200) return dpsMod[0]; // Weapon 1h
1529 if (mask & 0x00000400) return dpsMod[1]; // Weapon 2h
1530 if (mask & 0x00000800) return dpsMod[2]; // Caster dps 1h
1531 if (mask & 0x00001000) return dpsMod[3]; // Caster dps 2h
1532 if (mask & 0x00002000) return dpsMod[4]; // Ranged
1533 if (mask & 0x00004000) return dpsMod[5]; // Wand
1534 }
1535 return 0;
1536 }
uint32 dpsMod[6]
Definition: DBCStructure.h:1486

References dpsMod.

Referenced by Player::_ApplyItemBonuses(), and Player::_ApplyWeaponDamage().

◆ getFeralBonus()

uint32 ScalingStatValuesEntry::getFeralBonus ( uint32  mask) const
inline
1555 {
1556 if (mask & 0x00010000) return 0; // not used?
1557 return 0;
1558 }

Referenced by Player::_ApplyItemBonuses().

◆ getSpellBonus()

uint32 ScalingStatValuesEntry::getSpellBonus ( uint32  mask) const
inline
1549 {
1550 if (mask & 0x00008000) return spellPower;
1551 return 0;
1552 }
uint32 spellPower
Definition: DBCStructure.h:1487

References spellPower.

Referenced by Player::_ApplyItemBonuses().

◆ getssdMultiplier()

uint32 ScalingStatValuesEntry::getssdMultiplier ( uint32  mask) const
inline
1493 {
1494 if (mask & 0x4001F)
1495 {
1496 if (mask & 0x00000001) return ssdMultiplier[0]; // Shoulder
1497 if (mask & 0x00000002) return ssdMultiplier[1]; // Trinket
1498 if (mask & 0x00000004) return ssdMultiplier[2]; // Weapon1H
1499 if (mask & 0x00000008) return ssdMultiplier2;
1500 if (mask & 0x00000010) return ssdMultiplier[3]; // Ranged
1501 if (mask & 0x00040000) return ssdMultiplier3;
1502 }
1503 return 0;
1504 }
uint32 ssdMultiplier2
Definition: DBCStructure.h:1488
uint32 ssdMultiplier[4]
Definition: DBCStructure.h:1484
uint32 ssdMultiplier3
Definition: DBCStructure.h:1489

References ssdMultiplier, ssdMultiplier2, and ssdMultiplier3.

Referenced by Player::_ApplyItemBonuses().

◆ IsTwoHand()

bool ScalingStatValuesEntry::IsTwoHand ( uint32  mask) const
inline
1539 {
1540 if (mask & 0x7E00)
1541 {
1542 if (mask & 0x00000400) return true;
1543 if (mask & 0x00001000) return true;
1544 }
1545 return false;
1546 }

Referenced by Player::_ApplyWeaponDamage().

Member Data Documentation

◆ armorMod

uint32 ScalingStatValuesEntry::armorMod[4]

Referenced by getArmorMod().

◆ armorMod2

uint32 ScalingStatValuesEntry::armorMod2[5]

Referenced by getArmorMod().

◆ dpsMod

uint32 ScalingStatValuesEntry::dpsMod[6]

Referenced by getDPSMod().

◆ Id

uint32 ScalingStatValuesEntry::Id

◆ Level

uint32 ScalingStatValuesEntry::Level

◆ spellPower

uint32 ScalingStatValuesEntry::spellPower

Referenced by getSpellBonus().

◆ ssdMultiplier

uint32 ScalingStatValuesEntry::ssdMultiplier[4]

Referenced by getssdMultiplier().

◆ ssdMultiplier2

uint32 ScalingStatValuesEntry::ssdMultiplier2

Referenced by getssdMultiplier().

◆ ssdMultiplier3

uint32 ScalingStatValuesEntry::ssdMultiplier3

Referenced by getssdMultiplier().