[Expansions] Zone expansion consistency changes (#2380)

* [Expansions] Zone expansion consistency changes

* Add expansion check exclusions

* Update 2022_08_19_zone_expansion_consistency.sql
This commit is contained in:
Chris Miles
2022-08-21 18:36:21 -07:00
committed by GitHub
parent 6637e2c59f
commit c0d4dd4176
5 changed files with 624 additions and 4 deletions
+3 -3
View File
@@ -347,7 +347,7 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
for (auto &z: zone_store.zones) {
if (z.short_name == target_zone_name && z.version == 0) {
found_zone = true;
if (z.expansion <= (content_service.GetCurrentExpansion() + 1)) {
if (z.expansion <= content_service.GetCurrentExpansion() || z.bypass_expansion_check) {
meets_zone_expansion_check = true;
break;
}
@@ -362,7 +362,7 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
auto zones = ZoneRepository::GetWhere(content_db,
fmt::format(
"expansion <= {} AND short_name = '{}' and version = 0",
(content_service.GetCurrentExpansion() + 1),
(content_service.GetCurrentExpansion()),
target_zone_name
)
);
@@ -373,7 +373,7 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
LogInfo(
"Checking zone request [{}] for expansion [{}] ({}) success [{}]",
target_zone_name,
(content_service.GetCurrentExpansion() + 1),
(content_service.GetCurrentExpansion()),
content_service.GetCurrentExpansionName(),
meets_zone_expansion_check ? "true" : "false"
);