From 8492c273dd50227ca01ead785eda6c4de9361e74 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 10 Oct 2021 19:12:17 +0200 Subject: Core/Spells: Implemented SpellReagentsCurrency.db2 --- src/server/database/Database/Implementation/HotfixDatabase.cpp | 5 +++++ src/server/database/Database/Implementation/HotfixDatabase.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src/server/database/Database') diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp index 67420de9325..4ec6219cb45 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.cpp +++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp @@ -1423,6 +1423,11 @@ void HotfixDatabaseConnection::DoPrepareStatements() " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_REAGENTS, "SELECT MAX(ID) + 1 FROM spell_reagents", CONNECTION_SYNCH); + // SpellReagentsCurrency.db2 + PrepareStatement(HOTFIX_SEL_SPELL_REAGENTS_CURRENCY, "SELECT ID, SpellID, CurrencyTypesID, CurrencyCount FROM spell_reagents_currency" + " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_REAGENTS_CURRENCY, "SELECT MAX(ID) + 1 FROM spell_reagents_currency", CONNECTION_SYNCH); + // SpellScaling.db2 PrepareStatement(HOTFIX_SEL_SPELL_SCALING, "SELECT ID, SpellID, MinScalingLevel, MaxScalingLevel, ScalesFromItemLevel FROM spell_scaling" " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); diff --git a/src/server/database/Database/Implementation/HotfixDatabase.h b/src/server/database/Database/Implementation/HotfixDatabase.h index 431dfef994b..e11c93a7fb7 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.h +++ b/src/server/database/Database/Implementation/HotfixDatabase.h @@ -826,6 +826,9 @@ enum HotfixDatabaseStatements : uint32 HOTFIX_SEL_SPELL_REAGENTS, HOTFIX_SEL_SPELL_REAGENTS_MAX_ID, + HOTFIX_SEL_SPELL_REAGENTS_CURRENCY, + HOTFIX_SEL_SPELL_REAGENTS_CURRENCY_MAX_ID, + HOTFIX_SEL_SPELL_SCALING, HOTFIX_SEL_SPELL_SCALING_MAX_ID, -- cgit v1.2.3