update instance code
This commit is contained in:
parent
1e36eb3419
commit
c23e8627f6
@ -25,7 +25,7 @@ public class Instances {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Medium Thargoid combat zone
|
/// Medium Thargoid combat zone
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly string WarzoneThargoidMed = "$Warzone_TG_Med";
|
public static readonly string WarzoneThargoidMedium = "$Warzone_TG_Med";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// High Thargoid combat zone
|
/// High Thargoid combat zone
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -35,6 +35,27 @@ public class Instances {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly string WarzoneThargoidVeryHigh = "$Warzone_TG_VeryHigh";
|
public static readonly string WarzoneThargoidVeryHigh = "$Warzone_TG_VeryHigh";
|
||||||
|
|
||||||
|
public static bool IsThargoidWarzone(string type) {
|
||||||
|
return
|
||||||
|
IsInstance(type, WarzoneThargoidLow) ||
|
||||||
|
IsInstance(type, WarzoneThargoidMedium) ||
|
||||||
|
IsInstance(type, WarzoneThargoidHigh) ||
|
||||||
|
IsInstance(type, WarzoneThargoidVeryHigh)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool IsHumanWarzone(string type) {
|
||||||
|
return
|
||||||
|
IsInstance(type, WarzoneLow) ||
|
||||||
|
IsInstance(type, WarzoneMedium) ||
|
||||||
|
IsInstance(type, WarzoneHigh)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool IsWarzone(string type) {
|
||||||
|
return IsHumanWarzone(type) || IsThargoidWarzone(type);
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsInstance(string type, string instance) {
|
public static bool IsInstance(string type, string instance) {
|
||||||
if (string.IsNullOrEmpty(type) || string.IsNullOrEmpty(instance)) {
|
if (string.IsNullOrEmpty(type) || string.IsNullOrEmpty(instance)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user