Core/Items: Removed obsolete field from ItemTemplate

This commit is contained in:
Shauren
2011-11-26 12:02:26 +01:00
parent 846870bf6c
commit d4de587036
2 changed files with 10 additions and 11 deletions
@@ -591,7 +591,6 @@ struct ItemTemplate
uint32 Quality;
uint32 Flags;
uint32 Flags2;
uint32 BuyCount;
int32 BuyPrice;
uint32 SellPrice;
uint32 InventoryType;
@@ -609,18 +608,12 @@ struct ItemTemplate
int32 MaxCount; // <= 0: no limit
int32 Stackable; // 0: not allowed, -1: put in player coin info tab and don't limit stacking (so 1 slot)
uint32 ContainerSlots;
uint32 StatsCount;
_ItemStat ItemStat[MAX_ITEM_PROTO_STATS];
uint32 ScalingStatDistribution; // id from ScalingStatDistribution.dbc
float DamageMin;
float DamageMax;
uint32 DamageType; // id from Resistances.dbc
float DPS;
uint32 Armor;
uint32 Delay;
float RangedModRange;
_Spell Spells[MAX_ITEM_PROTO_SPELLS];
float SpellPPMRate;
uint32 Bonding;
std::string Description;
uint32 PageText;
@@ -641,7 +634,6 @@ struct ItemTemplate
_Socket Socket[MAX_ITEM_PROTO_SOCKETS];
uint32 socketBonus; // id from SpellItemEnchantment.dbc
uint32 GemProperties; // id from GemProperties.dbc
uint32 RequiredDisenchantSkill;
float ArmorDamageModifier;
int32 Duration; // negative = realtime, positive = ingame time
uint32 ItemLimitCategory; // id from ItemLimitCategory.dbc
@@ -649,8 +641,17 @@ struct ItemTemplate
float StatScalingFactor;
int32 Field130;
int32 Field131;
// extra fields, not part of db2 files
uint32 BuyCount;
float DamageMin;
float DamageMax;
float DPS;
uint32 Armor;
float SpellPPMRate;
uint32 ScriptId;
uint32 DisenchantID;
uint32 RequiredDisenchantSkill;
uint32 FoodType;
uint32 MinMoneyLoot;
uint32 MaxMoneyLoot;
@@ -7825,8 +7825,6 @@ void Player::_ApplyItemBonuses(ItemTemplate const* proto, uint8 slot, bool apply
}
else
{
if (i >= proto->StatsCount)
continue;
statType = proto->ItemStat[i].ItemStatType;
val = proto->ItemStat[i].ItemStatValue;
}