mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
[Expeditions] Store members on dynamic zone (#1358)
This moves members from expeditions so other systems can use them Replace expedition_members table with dynamic_zone_members Move 'EnableInDynamicZoneStatus' rule to DynamicZone namespace Modify #dz list to show dz members (not instance players) and type name Move various queries to repository methods
This commit is contained in:
@@ -25,11 +25,12 @@ DynamicZone* DynamicZone::FindDynamicZoneByID(uint32_t dz_id)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DynamicZoneStatus DynamicZone::Process(bool force_expire)
|
||||
DynamicZoneStatus DynamicZone::Process()
|
||||
{
|
||||
DynamicZoneStatus status = DynamicZoneStatus::Normal;
|
||||
|
||||
if (force_expire || IsExpired())
|
||||
// force expire if no members
|
||||
if (!HasMembers() || IsExpired())
|
||||
{
|
||||
status = DynamicZoneStatus::Expired;
|
||||
|
||||
@@ -38,7 +39,7 @@ DynamicZoneStatus DynamicZone::Process(bool force_expire)
|
||||
{
|
||||
status = DynamicZoneStatus::ExpiredEmpty;
|
||||
|
||||
if (force_expire && !m_is_pending_early_shutdown && RuleB(DynamicZone, EmptyShutdownEnabled))
|
||||
if (!HasMembers() && !m_is_pending_early_shutdown && RuleB(DynamicZone, EmptyShutdownEnabled))
|
||||
{
|
||||
SetSecondsRemaining(RuleI(DynamicZone, EmptyShutdownDelaySeconds));
|
||||
m_is_pending_early_shutdown = true;
|
||||
|
||||
Reference in New Issue
Block a user