Core/Items: Implemented corruption and corruption resistance stats
Port From (https://github.com/TrinityCore/TrinityCore/commit/6533de31005fc9680d9f2b61a4d8ea4958fc8edc)
This commit is contained in:
@@ -1810,6 +1810,15 @@ namespace Game.Entities
|
||||
public int GetItemStatValue(uint index, Player owner)
|
||||
{
|
||||
Cypher.Assert(index < ItemConst.MaxStats);
|
||||
switch ((ItemModType)GetItemStatType(index))
|
||||
{
|
||||
case ItemModType.Corruption:
|
||||
case ItemModType.CorruptionResistance:
|
||||
return _bonusData.ItemStatAllocation[index];
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
uint itemLevel = GetItemLevel(owner);
|
||||
uint randomPropPoints = ItemEnchantmentManager.GetRandomPropertyPoints(itemLevel, GetQuality(), GetTemplate().GetInventoryType(), GetTemplate().GetSubClass());
|
||||
if (randomPropPoints != 0)
|
||||
|
||||
Reference in New Issue
Block a user