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
1505 {
1506 if (mask & 0x00F801E0)
1507 {
1508 if (mask & 0x00000020) return armorMod[0]; // Cloth shoulder
1509 if (mask & 0x00000040) return armorMod[1]; // Leather shoulder
1510 if (mask & 0x00000080) return armorMod[2]; // Mail shoulder
1511 if (mask & 0x00000100) return armorMod[3]; // Plate shoulder
1512
1513 if (mask & 0x00080000) return armorMod2[0]; // cloak
1514 if (mask & 0x00100000) return armorMod2[1]; // cloth
1515 if (mask & 0x00200000) return armorMod2[2]; // leather
1516 if (mask & 0x00400000) return armorMod2[3]; // mail
1517 if (mask & 0x00800000) return armorMod2[4]; // plate
1518 }
1519 return 0;
1520 }
uint32 armorMod2[5]
Definition: DBCStructure.h:1488
uint32 armorMod[4]
Definition: DBCStructure.h:1483

References armorMod, and armorMod2.

Referenced by Player::_ApplyItemBonuses().

◆ getDPSMod()

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

References dpsMod.

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

◆ getFeralBonus()

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

Referenced by Player::_ApplyItemBonuses().

◆ getSpellBonus()

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

References spellPower.

Referenced by Player::_ApplyItemBonuses().

◆ getssdMultiplier()

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

References ssdMultiplier, ssdMultiplier2, and ssdMultiplier3.

Referenced by Player::_ApplyItemBonuses().

◆ IsTwoHand()

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

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().