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

References armorMod, and armorMod2.

Referenced by Player::_ApplyItemBonuses().

◆ getDPSMod()

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

References dpsMod.

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

◆ getFeralBonus()

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

Referenced by Player::_ApplyItemBonuses().

◆ getSpellBonus()

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

References spellPower.

Referenced by Player::_ApplyItemBonuses().

◆ getssdMultiplier()

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

References ssdMultiplier, ssdMultiplier2, and ssdMultiplier3.

Referenced by Player::_ApplyItemBonuses().

◆ IsTwoHand()

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

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