Skip to content

Commit

Permalink
Core/Achievements: Implemented CriteriaType::ReachMaxLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Dec 13, 2024
1 parent 4ddf42c commit f92b531
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/base/characters_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3751,7 +3751,8 @@ INSERT INTO `updates` VALUES
('2024_09_23_00_characters.sql','D8491BCEE728F40D55D47E3A4BC5A5F083EBD02E','ARCHIVED','2024-09-23 22:48:10',0),
('2024_10_03_00_characters.sql','408249A6992999A36EB94089D184972E8E0767A3','ARCHIVED','2024-10-03 11:10:18',0),
('2024_11_04_00_characters.sql','F7980E0CEE728FF866703693690F76F932E7C764','ARCHIVED','2024-11-04 17:14:03',0),
('2024_11_16_00_characters.sql','9D9D87FB8DEB99F074EB499A5BD230FD9C993669','ARCHIVED','2024-11-16 21:57:39',0);
('2024_11_16_00_characters.sql','9D9D87FB8DEB99F074EB499A5BD230FD9C993669','ARCHIVED','2024-11-16 21:57:39',0),
('2024_12_13_00_characters.sql','4A00C51BA33639F5555AAE40EC672AE47126F7B6','RELEASED','2024-12-13 00:17:03',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
1 change: 1 addition & 0 deletions sql/updates/characters/master/2024_12_13_00_characters.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM `character_achievement_progress` WHERE `criteria` IN (55223,55224,55225,57642,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,66145,66146);
4 changes: 4 additions & 0 deletions src/server/game/Achievements/CriteriaHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,10 @@ bool CriteriaHandler::RequirementsSatisfied(Criteria const* criteria, uint64 mis
if (!miscValue1 || miscValue1 != uint32(criteria->Entry->Asset.AreaTriggerActionSetID))
return false;
break;
case CriteriaType::ReachMaxLevel:
if (!referencePlayer->IsMaxLevel())
return false;
break;
case CriteriaType::LearnTaxiNode:
if (miscValue1 != uint32(criteria->Entry->Asset.TaxiNodesID))
return false;
Expand Down

0 comments on commit f92b531

Please sign in to comment.