Core/Maps: implement map based world states and implemented support for required world states in achievement criterias

*converted Erduax' conditional achievement to world state based handling as example
This commit is contained in:
Ovahlord committed 2021-06-13 10:48:41 +02:00
1 parent ea85a0031c
commit be239e4458
11 files changed
+82 -56

No files matched your search

@@ -9204,6 +9204,10 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
break;
}
// insert map world states
if (Map* map = GetMap())
map->AppendWorldStates(packet.Worldstates);
SendDirectMessage(packet.Write());
SendBGWeekendWorldStates();
SendBattlefieldWorldStates();