Core/Players: Implemented secondary stat diminishing

Port From (https://github.com/TrinityCore/TrinityCore/commit/cb47605235a49bb2c6065b2e6de69b657a9c905f)
This commit is contained in:
hondacrx
2021-02-09 13:28:06 -05:00
parent 9a14cfe807
commit 926035b704
9 changed files with 114 additions and 7 deletions
+20
View File
@@ -2152,4 +2152,24 @@ namespace Framework.Constants
None = 0,
Disabled = 0x1
}
public enum GlobalCurve
{
CritDiminishing = 0,
MasteryDiminishing = 1,
HasteDiminishing = 2,
SpeedDiminishing = 3,
AvoidanceDiminishing = 4,
VersatilityDoneDiminishing = 5,
LifestealDiminishing = 6,
DodgeDiminishing = 7,
BlockDiminishing = 8,
ParryDiminishing = 9,
VersatilityTakenDiminishing = 11,
ContentTuningPvpItemLevelHealthScaling = 13,
ContentTuningPvpLevelDamageScaling = 14,
ContentTuningPvpItemLevelDamageScaling = 15,
}
}
@@ -461,6 +461,9 @@ namespace Framework.Database
// GemProperties.db2
PrepareStatement(HotfixStatements.SEL_GEM_PROPERTIES, "SELECT ID, EnchantId, Type FROM gem_properties");
// GlobalCurve.db2
PrepareStatement(HotfixStatements.SEL_GLOBAL_CURVE, "SELECT ID, CurveID, Type FROM global_curve");
// GlyphBindableSpell.db2
PrepareStatement(HotfixStatements.SEL_GLYPH_BINDABLE_SPELL, "SELECT ID, SpellID, GlyphPropertiesID FROM glyph_bindable_spell");
@@ -1379,6 +1382,8 @@ namespace Framework.Database
SEL_GEM_PROPERTIES,
SEL_GLOBAL_CURVE,
SEL_GLYPH_BINDABLE_SPELL,
SEL_GLYPH_PROPERTIES,