Core/Spells: Implemented SpellReagentsCurrency.db2
Port From (https://github.com/TrinityCore/TrinityCore/commit/8492c273dd50227ca01ead785eda6c4de9361e74)
This commit is contained in:
@@ -2255,6 +2255,9 @@ namespace Game.Entities
|
||||
foreach (SpellReagentsRecord reagents in CliDB.SpellReagentsStorage.Values)
|
||||
GetLoadHelper(reagents.SpellID, 0).Reagents = reagents;
|
||||
|
||||
foreach (SpellReagentsCurrencyRecord reagentsCurrency in CliDB.SpellReagentsCurrencyStorage.Values)
|
||||
GetLoadHelper((uint)reagentsCurrency.SpellID, 0).ReagentsCurrency.Add(reagentsCurrency);
|
||||
|
||||
foreach (SpellScalingRecord scaling in CliDB.SpellScalingStorage.Values)
|
||||
GetLoadHelper(scaling.SpellID, 0).Scaling = scaling;
|
||||
|
||||
@@ -2336,6 +2339,9 @@ namespace Game.Entities
|
||||
if (data.Value.Reagents == null)
|
||||
data.Value.Reagents = fallbackData.Reagents;
|
||||
|
||||
if (data.Value.ReagentsCurrency.Empty())
|
||||
data.Value.ReagentsCurrency = fallbackData.ReagentsCurrency;
|
||||
|
||||
if (data.Value.Scaling == null)
|
||||
data.Value.Scaling = fallbackData.Scaling;
|
||||
|
||||
@@ -4672,6 +4678,7 @@ namespace Game.Entities
|
||||
public SpellMiscRecord Misc;
|
||||
public SpellPowerRecord[] Powers = new SpellPowerRecord[SpellConst.MaxPowersPerSpell];
|
||||
public SpellReagentsRecord Reagents;
|
||||
public List<SpellReagentsCurrencyRecord> ReagentsCurrency = new();
|
||||
public SpellScalingRecord Scaling;
|
||||
public SpellShapeshiftRecord Shapeshift;
|
||||
public SpellTargetRestrictionsRecord TargetRestrictions;
|
||||
|
||||
Reference in New Issue
Block a user