Core/Players: Implemented secondary stat diminishing
Port From (https://github.com/TrinityCore/TrinityCore/commit/cb47605235a49bb2c6065b2e6de69b657a9c905f)
This commit is contained in:
@@ -150,6 +150,7 @@ namespace Game.DataStorage
|
||||
GarrSiteLevelStorage = ReadDB2<GarrSiteLevelRecord>("GarrSiteLevel.db2", HotfixStatements.SEL_GARR_SITE_LEVEL);
|
||||
GarrSiteLevelPlotInstStorage = ReadDB2<GarrSiteLevelPlotInstRecord>("GarrSiteLevelPlotInst.db2", HotfixStatements.SEL_GARR_SITE_LEVEL_PLOT_INST);
|
||||
GemPropertiesStorage = ReadDB2<GemPropertiesRecord>("GemProperties.db2", HotfixStatements.SEL_GEM_PROPERTIES);
|
||||
GlobalCurveStorage = ReadDB2<GlobalCurveRecord>("GlobalCurve.db2", HotfixStatements.SEL_GLOBAL_CURVE);
|
||||
GlyphBindableSpellStorage = ReadDB2<GlyphBindableSpellRecord>("GlyphBindableSpell.db2", HotfixStatements.SEL_GLYPH_BINDABLE_SPELL);
|
||||
GlyphPropertiesStorage = ReadDB2<GlyphPropertiesRecord>("GlyphProperties.db2", HotfixStatements.SEL_GLYPH_PROPERTIES);
|
||||
GlyphRequiredSpecStorage = ReadDB2<GlyphRequiredSpecRecord>("GlyphRequiredSpec.db2", HotfixStatements.SEL_GLYPH_REQUIRED_SPEC);
|
||||
@@ -508,6 +509,7 @@ namespace Game.DataStorage
|
||||
public static DB6Storage<GarrSiteLevelRecord> GarrSiteLevelStorage;
|
||||
public static DB6Storage<GarrSiteLevelPlotInstRecord> GarrSiteLevelPlotInstStorage;
|
||||
public static DB6Storage<GemPropertiesRecord> GemPropertiesStorage;
|
||||
public static DB6Storage<GlobalCurveRecord> GlobalCurveStorage;
|
||||
public static DB6Storage<GlyphBindableSpellRecord> GlyphBindableSpellStorage;
|
||||
public static DB6Storage<GlyphPropertiesRecord> GlyphPropertiesStorage;
|
||||
public static DB6Storage<GlyphRequiredSpecRecord> GlyphRequiredSpecStorage;
|
||||
|
||||
@@ -1370,11 +1370,15 @@ namespace Game.DataStorage
|
||||
return _factionTeams.LookupByKey(faction);
|
||||
}
|
||||
|
||||
public HeirloomRecord GetHeirloomByItemId(uint itemId)
|
||||
public uint GetGlobalCurveId(GlobalCurve globalCurveType)
|
||||
{
|
||||
return _heirlooms.LookupByKey(itemId);
|
||||
}
|
||||
foreach (var globalCurveEntry in CliDB.GlobalCurveStorage.Values)
|
||||
if (globalCurveEntry.Type == globalCurveType)
|
||||
return globalCurveEntry.CurveID;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public List<uint> GetGlyphBindableSpells(uint glyphPropertiesId)
|
||||
{
|
||||
return _glyphBindableSpells.LookupByKey(glyphPropertiesId);
|
||||
@@ -1385,6 +1389,11 @@ namespace Game.DataStorage
|
||||
return _glyphRequiredSpecs.LookupByKey(glyphPropertiesId);
|
||||
}
|
||||
|
||||
public HeirloomRecord GetHeirloomByItemId(uint itemId)
|
||||
{
|
||||
return _heirlooms.LookupByKey(itemId);
|
||||
}
|
||||
|
||||
public List<ItemBonusRecord> GetItemBonusList(uint bonusListId)
|
||||
{
|
||||
return _itemBonusLists.LookupByKey(bonusListId);
|
||||
|
||||
@@ -21,7 +21,7 @@ using System;
|
||||
|
||||
namespace Game.DataStorage
|
||||
{
|
||||
public class AchievementRecord
|
||||
public sealed class AchievementRecord
|
||||
{
|
||||
public string Description;
|
||||
public string Title;
|
||||
|
||||
@@ -222,6 +222,13 @@ namespace Game.DataStorage
|
||||
public SocketColor Type;
|
||||
}
|
||||
|
||||
public sealed class GlobalCurveRecord
|
||||
{
|
||||
public uint Id;
|
||||
public uint CurveID;
|
||||
public GlobalCurve Type;
|
||||
}
|
||||
|
||||
public sealed class GlyphBindableSpellRecord
|
||||
{
|
||||
public uint Id;
|
||||
|
||||
Reference in New Issue
Block a user