add PvP as additional ZoneType

This commit is contained in:
2023-01-15 14:24:28 +01:00
parent ea9732b81f
commit 753dabfcd1
2 changed files with 22 additions and 17 deletions

View File

@@ -54,10 +54,13 @@ namespace Pilz.Dalamud.ActivityContexts
}
else
{
// Check for ActivityContext
if (content.PvP)
{
newActivityContext = ActivityType.PvpDuty;
newZoneType = ZoneType.Pvp;
}
else
{
newActivityContext = ActivityType.PveDuty;
// Find correct member type
@@ -77,6 +80,7 @@ namespace Pilz.Dalamud.ActivityContexts
_ => ZoneType.Dungeon,
};
}
}
CurrentActivityContext = new(newActivityContext, newZoneType);
ActivityContextChanged?.Invoke(this, CurrentActivityContext);

View File

@@ -15,6 +15,7 @@ namespace Pilz.Dalamud.ActivityContexts
Dungeon,
Raid,
AllianceRaid,
Foray
Foray,
Pvp
}
}