Core/Items: Implemented item upgrades

Closes #17432
This commit is contained in:
frozen4
2016-06-21 20:33:51 +02:00
committed by Shauren
parent 5f2c62392c
commit ed00534e7c
14 changed files with 194 additions and 5 deletions

View File

@@ -15,8 +15,8 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// DO NOT EDIT!
// Autogenerated from DB2Structure.h
// DO NOT EDIT!
// Autogenerated from DB2Structure.h
#include "HotfixDatabase.h"
@@ -300,6 +300,10 @@ void HotfixDatabaseConnection::DoPrepareStatements()
// ItemToBattlePetSpecies.db2
PrepareStatement(HOTFIX_SEL_ITEM_TO_BATTLE_PET_SPECIES, "SELECT ID, BattlePetSpeciesID FROM item_to_battle_pet_species ORDER BY ID DESC", CONNECTION_SYNCH);
// ItemUpgrade.db2
PrepareStatement(HOTFIX_SEL_ITEM_UPGRADE, "SELECT ID, ItemUpgradePathID, ItemLevelBonus, PrevItemUpgradeID, CurrencyID, CurrencyCost"
" FROM item_upgrade ORDER BY ID DESC", CONNECTION_SYNCH);
// ItemXBonusTree.db2
PrepareStatement(HOTFIX_SEL_ITEM_X_BONUS_TREE, "SELECT ID, ItemID, BonusTreeID FROM item_x_bonus_tree ORDER BY ID DESC", CONNECTION_SYNCH);
@@ -383,6 +387,9 @@ void HotfixDatabaseConnection::DoPrepareStatements()
// QuestXp.db2
PrepareStatement(HOTFIX_SEL_QUEST_XP, "SELECT ID, Exp1, Exp2, Exp3, Exp4, Exp5, Exp6, Exp7, Exp8, Exp9, Exp10 FROM quest_xp ORDER BY ID DESC", CONNECTION_SYNCH);
// RulesetItemUpgrade.db2
PrepareStatement(HOTFIX_SEL_RULESET_ITEM_UPGRADE, "SELECT ID, RulesetID, ItemUpgradeID, ItemID FROM ruleset_item_upgrade ORDER BY ID DESC", CONNECTION_SYNCH);
// ScalingStatDistribution.db2
PrepareStatement(HOTFIX_SEL_SCALING_STAT_DISTRIBUTION, "SELECT ID, MinLevel, MaxLevel, ItemLevelCurveID FROM scaling_stat_distribution"
" ORDER BY ID DESC", CONNECTION_SYNCH);

View File

@@ -15,8 +15,8 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// DO NOT EDIT!
// Autogenerated from DB2Structure.h
// DO NOT EDIT!
// Autogenerated from DB2Structure.h
#ifndef _HOTFIXDATABASE_H
#define _HOTFIXDATABASE_H
@@ -174,6 +174,8 @@ enum HotfixDatabaseStatements
HOTFIX_SEL_ITEM_TO_BATTLE_PET_SPECIES,
HOTFIX_SEL_ITEM_UPGRADE,
HOTFIX_SEL_ITEM_X_BONUS_TREE,
HOTFIX_SEL_KEY_CHAIN,
@@ -217,6 +219,8 @@ enum HotfixDatabaseStatements
HOTFIX_SEL_QUEST_XP,
HOTFIX_SEL_RULESET_ITEM_UPGRADE,
HOTFIX_SEL_SCALING_STAT_DISTRIBUTION,
HOTFIX_SEL_SOUND_ENTRIES,