Core/Items: Updated heart of azeroth level cap and knowledge starting date for 8.3

This commit is contained in:
Shauren
2020-04-24 22:16:25 +02:00
parent 60b338881d
commit ac671cc7ec
4 changed files with 6 additions and 4 deletions

View File

@@ -3770,7 +3770,8 @@ INSERT INTO `updates` VALUES
('2019_11_30_00_characters.sql','D0678E62B651AECA60C2DD6989BF80BD999AD12B','RELEASED','2019-11-29 22:42:01',0),
('2019_12_05_00_characters.sql','EA381C9634A5646A3168F15DF4E06A708A622762','RELEASED','2019-12-05 20:56:58',0),
('2020_02_17_00_characters.sql','E1519A81D35F19B48B3C75A83A270CB4BA0B84F2','RELEASED','2020-02-17 21:55:17',0),
('2020_04_20_00_characters.sql','977B5E0C894E0A7E80B2A9626F17CA636A69BD22','RELEASED','2020-04-20 19:08:18',0);
('2020_04_20_00_characters.sql','977B5E0C894E0A7E80B2A9626F17CA636A69BD22','RELEASED','2020-04-20 19:08:18',0),
('2020_04_24_00_characters.sql','85E2E0395A9457A53D73A9E0A7BB39B7E4C429BF','RELEASED','2020-04-24 22:04:59',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;

View File

@@ -0,0 +1 @@
UPDATE `item_instance_azerite` SET `knowledgeLevel`=15;

View File

@@ -212,9 +212,9 @@ void AzeriteItem::DeleteFromDB(CharacterDatabaseTransaction& trans)
uint32 AzeriteItem::GetCurrentKnowledgeLevel()
{
// count weeks from 26.06.2019
// count weeks from 14.01.2020
boost::gregorian::date now = boost::posix_time::from_time_t(GameTime::GetGameTime()).date();
boost::gregorian::week_iterator itr(boost::gregorian::date(2019, boost::date_time::Jun, 26));
boost::gregorian::week_iterator itr(boost::gregorian::date(2020, boost::date_time::Jan, 14));
uint32 knowledge = 0;
while (*itr < now && knowledge < MAX_AZERITE_ITEM_KNOWLEDGE_LEVEL)
{

View File

@@ -21,7 +21,7 @@
#include "Item.h"
constexpr uint32 ITEM_ID_HEART_OF_AZEROTH = 158075;
constexpr uint32 MAX_AZERITE_ITEM_LEVEL = 70;
constexpr uint32 MAX_AZERITE_ITEM_LEVEL = 129;
constexpr uint32 MAX_AZERITE_ITEM_KNOWLEDGE_LEVEL = 30;
constexpr uint32 PLAYER_CONDITION_ID_UNLOCKED_AZERITE_ESSENCES = 69048;
constexpr uint32 SPELL_ID_HEART_ESSENCE_ACTION_BAR_OVERRIDE = 298554;