add PvP as additional ZoneType
This commit is contained in:
@@ -54,10 +54,13 @@ namespace Pilz.Dalamud.ActivityContexts
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Check for ActivityContext
|
|
||||||
if (content.PvP)
|
if (content.PvP)
|
||||||
|
{
|
||||||
newActivityContext = ActivityType.PvpDuty;
|
newActivityContext = ActivityType.PvpDuty;
|
||||||
|
newZoneType = ZoneType.Pvp;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
newActivityContext = ActivityType.PveDuty;
|
newActivityContext = ActivityType.PveDuty;
|
||||||
|
|
||||||
// Find correct member type
|
// Find correct member type
|
||||||
@@ -77,6 +80,7 @@ namespace Pilz.Dalamud.ActivityContexts
|
|||||||
_ => ZoneType.Dungeon,
|
_ => ZoneType.Dungeon,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CurrentActivityContext = new(newActivityContext, newZoneType);
|
CurrentActivityContext = new(newActivityContext, newZoneType);
|
||||||
ActivityContextChanged?.Invoke(this, CurrentActivityContext);
|
ActivityContextChanged?.Invoke(this, CurrentActivityContext);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ namespace Pilz.Dalamud.ActivityContexts
|
|||||||
Dungeon,
|
Dungeon,
|
||||||
Raid,
|
Raid,
|
||||||
AllianceRaid,
|
AllianceRaid,
|
||||||
Foray
|
Foray,
|
||||||
|
Pvp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user