diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/DataStores/DBCStores.cpp | 10 | ||||
| -rwxr-xr-x | src/server/game/DataStores/DBCStructure.h | 21 | ||||
| -rwxr-xr-x | src/server/game/DataStores/DBCfmt.h | 3 | ||||
| -rwxr-xr-x | src/server/game/Entities/Player/Player.cpp | 2 | 
4 files changed, 1 insertions, 35 deletions
diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp index 05c067046ac..4ce5454f2c3 100755 --- a/src/server/game/DataStores/DBCStores.cpp +++ b/src/server/game/DataStores/DBCStores.cpp @@ -113,7 +113,6 @@ DBCStorage <ItemArmorQualityEntry>        sItemArmorQualityStore(ItemArmorQualit  DBCStorage <ItemArmorShieldEntry>         sItemArmorShieldStore(ItemArmorShieldfmt);  DBCStorage <ItemArmorTotalEntry>          sItemArmorTotalStore(ItemArmorTotalfmt);  DBCStorage <ItemBagFamilyEntry>           sItemBagFamilyStore(ItemBagFamilyfmt); -//DBCStorage <ItemCondExtCostsEntry> sItemCondExtCostsStore(ItemCondExtCostsEntryfmt);  DBCStorage <ItemDamageEntry>              sItemDamageAmmoStore(ItemDamagefmt);  DBCStorage <ItemDamageEntry>              sItemDamageOneHandStore(ItemDamagefmt);  DBCStorage <ItemDamageEntry>              sItemDamageOneHandCasterStore(ItemDamagefmt); @@ -124,7 +123,6 @@ DBCStorage <ItemDamageEntry>              sItemDamageTwoHandCasterStore(ItemDama  DBCStorage <ItemDamageEntry>              sItemDamageWandStore(ItemDamagefmt);  DBCStorage <ItemDisenchantLootEntry>      sItemDisenchantLootStore(ItemDisenchantLootfmt);  //DBCStorage <ItemDisplayInfoEntry> sItemDisplayInfoStore(ItemDisplayTemplateEntryfmt); -- not used currently -//DBCStorage <ItemExtendedCostEntry> sItemExtendedCostStore(ItemExtendedCostEntryfmt);  DBCStorage <ItemLimitCategoryEntry> sItemLimitCategoryStore(ItemLimitCategoryEntryfmt);  DBCStorage <ItemRandomPropertiesEntry> sItemRandomPropertiesStore(ItemRandomPropertiesfmt);  DBCStorage <ItemRandomSuffixEntry> sItemRandomSuffixStore(ItemRandomSuffixfmt); @@ -385,18 +383,13 @@ void LoadDBCStores(const std::string& dataPath)      LoadDBC(availableDbcLocales, bad_dbc_files, sGtRegenMPPerSptStore,        dbcPath, "gtRegenMPPerSpt.dbc");//14545      LoadDBC(availableDbcLocales, bad_dbc_files, sHolidaysStore,               dbcPath, "Holidays.dbc");//14545 - -//    LoadDBC(availableDbcLocales, bad_dbc_files, sItemStore,                   dbcPath, "Item.dbc");      LoadDBC(availableDbcLocales, bad_dbc_files, sItemBagFamilyStore,          dbcPath, "ItemBagFamily.dbc");//14545      //LoadDBC(dbcCount, availableDbcLocales, bad_dbc_files, sItemDisplayInfoStore,        dbcPath, "ItemDisplayInfo.dbc");     -- not used currently -    //LoadDBC(dbcCount, availableDbcLocales, bad_dbc_files, sItemCondExtCostsStore,       dbcPath, "ItemCondExtCosts.dbc"); -//    LoadDBC(availableDbcLocales, bad_dbc_files, sItemExtendedCostStore,       dbcPath, "ItemExtendedCost.dbc");      LoadDBC(availableDbcLocales, bad_dbc_files, sItemLimitCategoryStore,      dbcPath, "ItemLimitCategory.dbc");//14545      LoadDBC(availableDbcLocales, bad_dbc_files, sItemRandomPropertiesStore,   dbcPath, "ItemRandomProperties.dbc");//14545      LoadDBC(availableDbcLocales, bad_dbc_files, sItemRandomSuffixStore,       dbcPath, "ItemRandomSuffix.dbc");//14545      LoadDBC(availableDbcLocales, bad_dbc_files, sItemSetStore,                dbcPath, "ItemSet.dbc");//14545 -      LoadDBC(availableDbcLocales, bad_dbc_files, sItemArmorQualityStore,       dbcPath, "ItemArmorQuality.dbc");//14545      LoadDBC(availableDbcLocales, bad_dbc_files, sItemArmorShieldStore,        dbcPath, "ItemArmorShield.dbc");//14545      LoadDBC(availableDbcLocales, bad_dbc_files, sItemArmorTotalStore,         dbcPath, "ItemArmorTotal.dbc");//14545 @@ -714,8 +707,6 @@ void LoadDBCStores(const std::string& dataPath)      if (!sAreaStore.LookupEntry(3617)              ||       // last area (areaflag) added in 3.3.5a          !sCharTitlesStore.LookupEntry(177)         ||       // last char title added in 3.3.5a          !sGemPropertiesStore.LookupEntry(1629)     ||       // last added spell in 3.3.5a -        //!sItemStore.LookupEntry(56806)             ||       // last gem property added in 3.3.5a -        //!sItemExtendedCostStore.LookupEntry(2997)  ||       // last item extended cost added in 3.3.5a          !sMapStore.LookupEntry(724)                ||       // last map added in 3.3.5a          !sSpellStore.LookupEntry(80864)            )        // last client known item added in 3.3.5a      { @@ -1144,7 +1135,6 @@ uint32 ScalingStatValuesEntry::GetDPSAndDamageMultiplier(uint32 subClass, bool i   DBCStorage <SoundEntriesEntry>  const* GetSoundEntriesStore()   { return &sSoundEntriesStore;   }   DBCStorage <SpellRangeEntry>    const* GetSpellRangeStore()     { return &sSpellRangeStore;     }   DBCStorage <FactionEntry>       const* GetFactionStore()        { return &sFactionStore;        } -// DBCStorage <ItemEntry>          const* GetItemDisplayStore()    { return &sItemStore;           }   DBCStorage <CreatureDisplayInfoEntry> const* GetCreatureDisplayStore() { return &sCreatureDisplayInfoStore; }   DBCStorage <EmotesEntry>        const* GetEmotesStore()         { return &sEmotesStore;         }   DBCStorage <EmotesTextEntry>    const* GetEmotesTextStore()     { return &sEmotesTextStore;     } diff --git a/src/server/game/DataStores/DBCStructure.h b/src/server/game/DataStores/DBCStructure.h index 2bf1a9a1291..cbf7c7ad77d 100755 --- a/src/server/game/DataStores/DBCStructure.h +++ b/src/server/game/DataStores/DBCStructure.h @@ -1223,27 +1223,6 @@ struct ItemDisenchantLootEntry      uint32 RequiredDisenchantSkill;  }; -//struct ItemCondExtCostsEntry -//{ -//    uint32      ID; -//    uint32      condExtendedCost;                         // ItemTemplate::CondExtendedCost -//    uint32      itemextendedcostentry;                    // ItemTemplate::ExtendedCost -//    uint32      arenaseason;                              // arena season number(1-4) -//}; - -#define MAX_ITEM_EXTENDED_COST_REQUIREMENTS 5 - -/*struct ItemExtendedCostEntry -{ -    uint32      ID;                                                 // 0 extended-cost entry id -    uint32      reqhonorpoints;                                     // 1 required honor points -    uint32      reqarenapoints;                                     // 2 required arena points -    uint32      reqarenaslot;                                       // 3 arena slot restrctions (min slot value) -    uint32      reqitem[MAX_ITEM_EXTENDED_COST_REQUIREMENTS];       // 4-8 required item id -    uint32      reqitemcount[MAX_ITEM_EXTENDED_COST_REQUIREMENTS];  // 9-14 required count of 1st item -    uint32      reqpersonalarenarating;                             // 15 required personal arena rating}; -};*/ -  struct ItemLimitCategoryEntry  {      uint32      ID;                                         // 0 Id diff --git a/src/server/game/DataStores/DBCfmt.h b/src/server/game/DataStores/DBCfmt.h index 0dfca379d8a..058b05718de 100755 --- a/src/server/game/DataStores/DBCfmt.h +++ b/src/server/game/DataStores/DBCfmt.h @@ -76,7 +76,6 @@ const char GtRegenHPPerSptfmt[]="f";  const char GtRegenMPPerSptfmt[]="xf";  const char Holidaysfmt[]="nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; -const char Itemfmt[]="niiiiiii";  const char ItemBagFamilyfmt[]="nx";  const char ItemArmorQualityfmt[]="nfffffffi";  const char ItemArmorShieldfmt[]="nifffffff"; @@ -84,8 +83,6 @@ const char ItemArmorTotalfmt[]="niffff";  const char ItemDamagefmt[]="nfffffffi";  const char ItemDisenchantLootfmt[]="niiiiii";  //const char ItemDisplayTemplateEntryfmt[]="nxxxxxxxxxxixxxxxxxxxxx"; -//const char ItemCondExtCostsEntryfmt[]="xiii"; -const char ItemExtendedCostEntryfmt[]="niiiiiiiiiiiiiix";  const char ItemLimitCategoryEntryfmt[]="nxii";  const char ItemRandomPropertiesfmt[]="nxiiixxs";  const char ItemRandomSuffixfmt[]="nsxiiiiiiiiii"; diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d2552fbe8cb..a83e637a038 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -24670,7 +24670,7 @@ void Player::RefundItem(Item* item)      }      bool store_error = false; -    for (uint8 i = 0; i < MAX_ITEM_EXTENDED_COST_REQUIREMENTS; ++i) +    for (uint8 i = 0; i < MAX_ITEM_EXT_COST_ITEMS; ++i)      {          uint32 count = iece->RequiredItemCount[i];          uint32 itemid = iece->RequiredItem[i];  | 
