forked from aly/qstbak
1423 lines
59 KiB
C#
1423 lines
59 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Diagnostics;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Dalamud.Game;
|
|
using Dalamud.Game.Text.SeStringHandling;
|
|
using Dalamud.Plugin.Services;
|
|
using Dalamud.Utility;
|
|
using Lumina.Excel;
|
|
using Lumina.Excel.Sheets;
|
|
using Lumina.Text.ReadOnly;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Model.Questing;
|
|
using SmartNav;
|
|
|
|
namespace Questionable.Data;
|
|
|
|
internal sealed class TerritoryData : ITerritoryInfo
|
|
{
|
|
public readonly record struct ZoneAccessRequirement(byte RequirementType, uint QuestRowId, uint RequiredSequence)
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
public override string ToString()
|
|
{
|
|
StringBuilder stringBuilder = _200B_202D_202A_206D_200B_206B_200E_206D_200F_202E_206F_202D_206D_200E_206E_202C_200F_206D_200F_200F_202A_202C_200B_206C_206B_202B_202A_200D_202A_206D_206A_206E_200D_206F_202D_206F_200E_200E_206A_206F_202E();
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(stringBuilder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-937976859));
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(stringBuilder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(117284107));
|
|
int num = ((!PrintMembers(stringBuilder)) ? (-993371309) : (-993371312));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -993371311;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
_200B_202C_200F_202D_202C_206C_202E_206E_200D_200F_206B_206D_202C_206A_202C_206E_206D_200B_206B_200C_200C_200D_200F_202A_206A_206A_202E_200E_202C_200F_200C_202B_206F_202C_200F_206A_202B_206E_206C_206B_202E(stringBuilder, '}');
|
|
return _206C_200E_200C_200D_202A_206E_200E_200D_200D_202B_200B_200E_202C_200B_200D_202C_206C_206A_206D_200F_206B_200E_202A_206D_202A_200B_202D_206B_206C_206F_206D_206D_202A_200E_200C_200B_206F_206B_202A_202D_202E((object)stringBuilder);
|
|
case 1:
|
|
_200B_202C_200F_202D_202C_206C_202E_206E_200D_200F_206B_206D_202C_206A_202C_206E_206D_200B_206B_200C_200C_200D_200F_202A_206A_206A_202E_200E_202C_200F_200C_202B_206F_202C_200F_206A_202B_206E_206C_206B_202E(stringBuilder, ' ');
|
|
num = -993371309;
|
|
break;
|
|
case 0:
|
|
num = -993371312;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(builder, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(1954192503));
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(builder, RequirementType.ToString());
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-713705911));
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(builder, QuestRowId.ToString());
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-978414308));
|
|
_202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(builder, RequiredSequence.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(ZoneAccessRequirement other)
|
|
{
|
|
int num = ((!EqualityComparer<byte>.Default.Equals(RequirementType, other.RequirementType)) ? (-1739069183) : (-1739069182));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1739069181;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
return false;
|
|
case 3:
|
|
return EqualityComparer<uint>.Default.Equals(RequiredSequence, other.RequiredSequence);
|
|
case 1:
|
|
num = ((!EqualityComparer<uint>.Default.Equals(QuestRowId, other.QuestRowId)) ? (-1739069183) : (-1739069184));
|
|
break;
|
|
case 0:
|
|
num = -1739069182;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<ZoneAccessRequirement>.Equals(ZoneAccessRequirement other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static StringBuilder _200B_202D_202A_206D_200B_206B_200E_206D_200F_202E_206F_202D_206D_200E_206E_202C_200F_206D_200F_200F_202A_202C_200B_206C_206B_202B_202A_200D_202A_206D_206A_206E_200D_206F_202D_206F_200E_200E_206A_206F_202E()
|
|
{
|
|
return new StringBuilder();
|
|
}
|
|
|
|
static StringBuilder _202E_206B_202D_206C_200C_206B_202E_202C_206E_202A_200D_202A_202E_202D_200D_206C_206C_200B_200B_206E_202B_200C_206C_200C_206A_200E_200B_206E_206F_206B_206C_200B_206C_202D_206D_200E_202C_200B_206E_202E_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _200B_202C_200F_202D_202C_206C_202E_206E_200D_200F_206B_206D_202C_206A_202C_206E_206D_200B_206B_200C_200C_200D_200F_202A_206A_206A_202E_200E_202C_200F_200C_202B_206F_202C_200F_206A_202B_206E_206C_206B_202E(StringBuilder P_0, char P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static string _206C_200E_200C_200D_202A_206E_200E_200D_200D_202B_200B_200E_202C_200B_200D_202C_206C_206A_206D_200F_206B_200E_202A_206D_202A_200B_202D_206B_206C_206F_206D_206D_202A_200E_200C_200B_206F_206B_202A_202D_202E(object P_0)
|
|
{
|
|
return P_0.ToString();
|
|
}
|
|
}
|
|
|
|
public sealed record ContentFinderConditionData(uint ContentFinderConditionId, string Name, uint TerritoryId, ushort RequiredItemLevel, byte ClassJobLevelSync, bool AllowUndersized, bool IsDungeon)
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202A_200D_202E_206D_206A_202D_206B_206A_206C_206F_206D_202C_206B_202A_206A_200F_200E_206D_202A_202B_200F_206E_200B_206F_200F_206F_206B_206D_200C_202C_206D_200F_202E_200E_206E_202C_206B_200F_202B_206E_202E(typeof(ContentFinderConditionData).TypeHandle);
|
|
}
|
|
}
|
|
|
|
public ContentFinderConditionData(ContentFinderCondition condition, ClientLanguage clientLanguage)
|
|
: this(condition.RowId, FixName(_206F_202A_206D_202D_202B_206E_206A_202C_206F_200E_202A_200F_200C_206A_202D_202B_202A_206E_200C_206D_200B_202E_200C_200D_202D_200E_202D_206C_202B_206D_200C_202C_206A_200B_200E_202D_200C_200C_200B_200D_202E((object)_200C_206D_206D_206C_206A_200E_206D_202E_206A_206E_206F_206B_200C_202E_200D_202D_206D_200C_206B_206B_206C_206E_200E_202D_206B_206B_202C_200B_202B_200D_202C_200F_202B_206C_200F_206B_200E_202E_206A_202D_202E(condition.Name)), clientLanguage), condition.TerritoryType.RowId, condition.ItemLevelRequired, condition.ClassJobLevelSync, condition.AllowUndersized, condition.ContentType.RowId == 2)
|
|
{
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
public override string ToString()
|
|
{
|
|
StringBuilder stringBuilder = _202E_206B_206D_200B_200E_200B_206B_200B_202E_206D_206A_206C_200E_206E_206D_202C_200E_202C_200C_202B_202C_206E_200D_202C_206F_206F_206B_202E_202A_202B_200F_206C_206B_202C_206C_202D_200B_202E_200F_200C_202E();
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(stringBuilder, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(547092396));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(stringBuilder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(117284107));
|
|
int num = ((!PrintMembers(stringBuilder)) ? (-2102036049) : (-2102036052));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -2102036051;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
_206E_206F_200C_200B_200F_206D_202B_200F_202C_202E_206C_206E_206B_200B_202C_202A_206A_200B_202D_200F_202A_200B_200B_206E_206D_206A_200D_206C_200D_206C_200B_200F_200B_202D_202D_200D_206F_202A_202A_202C_202E(stringBuilder, '}');
|
|
return _206F_202A_206D_202D_202B_206E_206A_202C_206F_200E_202A_200F_200C_206A_202D_202B_202A_206E_200C_206D_200B_202E_200C_200D_202D_200E_202D_206C_202B_206D_200C_202C_206A_200B_200E_202D_200C_200C_200B_200D_202E((object)stringBuilder);
|
|
case 1:
|
|
_206E_206F_200C_200B_200F_206D_202B_200F_202C_202E_206C_206E_206B_200B_202C_202A_206A_200B_202D_200F_202A_200B_200B_206E_206D_206A_200D_206C_200D_206C_200B_200F_200B_202D_202D_200D_206F_202A_202A_202C_202E(stringBuilder, ' ');
|
|
num = -2102036049;
|
|
break;
|
|
case 0:
|
|
num = -2102036052;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_206D_206E_200B_202C_202A_206B_206F_202D_200B_202E_206E_202B_202B_206F_202B_206E_200E_202C_202E_200C_206A_200D_202E_206E_200D_202B_206F_206A_200C_206F_200F_206C_202C_200F_202E_202A_202D_202A_206D_202C_202E();
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-547124860));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, ContentFinderConditionId.ToString());
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-838515035));
|
|
_206A_200E_202B_200B_202B_200B_200E_202B_202A_202E_206B_202A_200F_202E_206C_200E_202D_206D_202C_200B_200F_200E_206A_200C_200C_200B_202D_200B_200F_206D_202A_200B_206B_202B_206E_206B_200C_202E_206E_202D_202E(builder, (object)Name);
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1428648191));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, TerritoryId.ToString());
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1772539499));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, RequiredItemLevel.ToString());
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(2071172515));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, ClassJobLevelSync.ToString());
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1993011003));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, AllowUndersized.ToString());
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-1691981228));
|
|
_206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(builder, IsDungeon.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(ContentFinderConditionData? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1635239574) : (-1635239580));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1635239582;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
num = ((!EqualityComparer<uint>.Default.Equals(TerritoryId, other.TerritoryId)) ? (-1635239573) : (-1635239581));
|
|
break;
|
|
case 5:
|
|
num = ((!_206B_202E_202E_200D_200C_202B_200F_200B_206D_202E_206B_206D_202E_206E_200D_206D_200B_202B_202B_206A_200D_200F_206F_206D_206D_206C_202E_200F_202D_200D_206F_206F_206B_206D_200E_202B_206F_202A_202C_206C_202E(EqualityContract, other.EqualityContract)) ? (-1635239573) : (-1635239575));
|
|
break;
|
|
case 10:
|
|
num = ((!EqualityComparer<bool>.Default.Equals(AllowUndersized, other.AllowUndersized)) ? (-1635239573) : (-1635239578));
|
|
break;
|
|
case 7:
|
|
num = ((!EqualityComparer<string>.Default.Equals(Name, other.Name)) ? (-1635239573) : (-1635239584));
|
|
break;
|
|
case 11:
|
|
num = ((!EqualityComparer<uint>.Default.Equals(ContentFinderConditionId, other.ContentFinderConditionId)) ? (-1635239573) : (-1635239579));
|
|
break;
|
|
case 4:
|
|
return EqualityComparer<bool>.Default.Equals(IsDungeon, other.IsDungeon);
|
|
case 0:
|
|
num = -1635239580;
|
|
break;
|
|
case 3:
|
|
num = ((!EqualityComparer<byte>.Default.Equals(ClassJobLevelSync, other.ClassJobLevelSync)) ? (-1635239573) : (-1635239576));
|
|
break;
|
|
case 9:
|
|
return false;
|
|
case 1:
|
|
num = ((!EqualityComparer<ushort>.Default.Equals(RequiredItemLevel, other.RequiredItemLevel)) ? (-1635239573) : (-1635239583));
|
|
break;
|
|
case 8:
|
|
return true;
|
|
case 6:
|
|
num = (((object)other == null) ? (-1635239573) : (-1635239577));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<ContentFinderConditionData>.Equals(ContentFinderConditionData? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202A_200D_202E_206D_206A_202D_206B_206A_206C_206F_206D_202C_206B_202A_206A_200F_200E_206D_202A_202B_200F_206E_200B_206F_200F_206F_206B_206D_200C_202C_206D_200F_202E_200E_206E_202C_206B_200F_202B_206E_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static SeString _200C_206D_206D_206C_206A_200E_206D_202E_206A_206E_206F_206B_200C_202E_200D_202D_206D_200C_206B_206B_206C_206E_200E_202D_206B_206B_202C_200B_202B_200D_202C_200F_202B_206C_200F_206B_200E_202E_206A_202D_202E(ReadOnlySeString P_0)
|
|
{
|
|
return P_0.ToDalamudString();
|
|
}
|
|
|
|
static string _206F_202A_206D_202D_202B_206E_206A_202C_206F_200E_202A_200F_200C_206A_202D_202B_202A_206E_200C_206D_200B_202E_200C_200D_202D_200E_202D_206C_202B_206D_200C_202C_206A_200B_200E_202D_200C_200C_200B_200D_202E(object P_0)
|
|
{
|
|
return P_0.ToString();
|
|
}
|
|
|
|
static StringBuilder _202E_206B_206D_200B_200E_200B_206B_200B_202E_206D_206A_206C_200E_206E_206D_202C_200E_202C_200C_202B_202C_206E_200D_202C_206F_206F_206B_202E_202A_202B_200F_206C_206B_202C_206C_202D_200B_202E_200F_200C_202E()
|
|
{
|
|
return new StringBuilder();
|
|
}
|
|
|
|
static StringBuilder _206B_202C_200D_206D_202D_200C_200D_200C_206B_206E_202C_200C_206A_206C_206D_206A_202A_200E_202E_202C_202A_206C_206A_206E_200D_200D_206F_206F_202D_206C_206D_206A_206C_206E_206A_202C_202D_200C_200B_206D_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _206E_206F_200C_200B_200F_206D_202B_200F_202C_202E_206C_206E_206B_200B_202C_202A_206A_200B_202D_200F_202A_200B_200B_206E_206D_206A_200D_206C_200D_206C_200B_200F_200B_202D_202D_200D_206F_202A_202A_202C_202E(StringBuilder P_0, char P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static void _206D_206E_200B_202C_202A_206B_206F_202D_200B_202E_206E_202B_202B_206F_202B_206E_200E_202C_202E_200C_206A_200D_202E_206E_200D_202B_206F_206A_200C_206F_200F_206C_202C_200F_202E_202A_202D_202A_206D_202C_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _206A_200E_202B_200B_202B_200B_200E_202B_202A_202E_206B_202A_200F_202E_206C_200E_202D_206D_202C_200B_200F_200E_206A_200C_200C_200B_202D_200B_200F_206D_202A_200B_206B_202B_206E_206B_200C_202E_206E_202D_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _206B_202E_202E_200D_200C_202B_200F_200B_206D_202E_206B_206D_202E_206E_200D_206D_200B_202B_202B_206A_200D_200F_206F_206D_206D_206C_202E_200F_202D_200D_206F_206F_206B_206D_200E_202B_206F_202A_202C_206C_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
[CompilerGenerated]
|
|
private sealed class _003C_003Ec
|
|
{
|
|
public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec();
|
|
|
|
public static Func<ZoneSharedGroup, bool> _003C_003E9__9_0;
|
|
|
|
public static Func<ZoneSharedGroup, uint> _003C_003E9__9_1;
|
|
|
|
public static Func<ZoneSharedGroup, ZoneAccessRequirement> _003C_003E9__9_2;
|
|
|
|
public static Func<ContentFinderCondition, bool> _003C_003E9__9_3;
|
|
|
|
public static Func<ContentFinderCondition, uint> _003C_003E9__9_4;
|
|
|
|
public static Func<IGrouping<uint, ContentFinderCondition>, uint> _003C_003E9__9_5;
|
|
|
|
public static Func<IGrouping<uint, ContentFinderCondition>, string> _003C_003E9__9_6;
|
|
|
|
public static Func<ContentFinderCondition, bool> _003C_003E9__9_7;
|
|
|
|
public static Func<ContentFinderConditionData, uint> _003C_003E9__9_9;
|
|
|
|
public static Func<ContentFinderConditionData, ContentFinderConditionData> _003C_003E9__9_10;
|
|
|
|
public static Func<ContentFinderCondition, bool> _003C_003E9__9_11;
|
|
|
|
public static Func<ContentFinderCondition, uint> _003C_003E9__9_12;
|
|
|
|
public static Func<IGrouping<uint, ContentFinderCondition>, uint> _003C_003E9__9_13;
|
|
|
|
public static Func<IGrouping<uint, ContentFinderCondition>, uint> _003C_003E9__9_14;
|
|
|
|
public static Func<Quest, bool> _003C_003E9__9_15;
|
|
|
|
public static Func<(ElementId QuestId, byte Index, uint CfcId), (ElementId QuestId, byte Index)> _003C_003E9__9_17;
|
|
|
|
public static Func<(ElementId QuestId, byte Index, uint CfcId), uint> _003C_003E9__9_18;
|
|
|
|
internal bool _003C_002Ector_003Eb__9_0(ZoneSharedGroup x)
|
|
{
|
|
bool flag = x.SubrowId == 0;
|
|
int num = ((!flag) ? (-581539066) : (-581539068));
|
|
bool flag2 = default(bool);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -581539067;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
flag = flag2;
|
|
num = -581539066;
|
|
break;
|
|
case 1:
|
|
{
|
|
byte b = x.RequirementType[0];
|
|
num3 = 1;
|
|
num4 = b;
|
|
num = (((uint)(~(~num4 + num3)) > 1u) ? (-581539065) : (-581539072));
|
|
break;
|
|
}
|
|
case 5:
|
|
flag2 = true;
|
|
num = -581539071;
|
|
break;
|
|
case 3:
|
|
return flag;
|
|
case 0:
|
|
num = -581539068;
|
|
break;
|
|
case 2:
|
|
flag2 = false;
|
|
num = -581539071;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_1(ZoneSharedGroup x)
|
|
{
|
|
return x.RowId;
|
|
}
|
|
|
|
internal ZoneAccessRequirement _003C_002Ector_003Eb__9_2(ZoneSharedGroup x)
|
|
{
|
|
return new ZoneAccessRequirement(x.RequirementType[0], x.RequirementRow[0].RowId, x.RequirementQuestSequence[0]);
|
|
}
|
|
|
|
internal bool _003C_002Ector_003Eb__9_3(ContentFinderCondition x)
|
|
{
|
|
int num = ((x.RowId == 0) ? 2089716118 : 2089716116);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 2089716118;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
return false;
|
|
case 2:
|
|
num = ((x.Content.RowId == 0) ? 2089716118 : 2089716119);
|
|
break;
|
|
case 1:
|
|
num = ((x.ContentLinkType != 1) ? 2089716118 : 2089716114);
|
|
break;
|
|
case 4:
|
|
return x.ContentType.RowId != 6;
|
|
case 3:
|
|
num = 2089716116;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_4(ContentFinderCondition x)
|
|
{
|
|
return x.Content.RowId;
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_5(IGrouping<uint, ContentFinderCondition> g)
|
|
{
|
|
return g.Key;
|
|
}
|
|
|
|
internal string _003C_002Ector_003Eb__9_6(IGrouping<uint, ContentFinderCondition> g)
|
|
{
|
|
return _206E_200B_202A_206F_206F_206B_206C_202E_202E_206A_206F_206F_206A_202E_206D_202D_206B_200F_206D_200F_202E_200F_202E_200E_206A_206C_200D_200D_200F_202E_206C_200C_202E_202B_200B_206C_200E_202D_206E_206A_202E((object)_200C_202C_200C_206E_202B_202B_206F_202A_202C_206B_206C_206A_202D_206A_200C_200D_200F_202E_200B_200C_206A_206A_206E_202B_206B_206A_206C_200C_200C_200B_202C_206C_200C_202E_206C_202B_200C_200B_206F_206F_202E(g.First().Name));
|
|
}
|
|
|
|
internal bool _003C_002Ector_003Eb__9_7(ContentFinderCondition x)
|
|
{
|
|
int num = ((x.RowId == 0) ? (-1636098886) : (-1636098884));
|
|
byte contentLinkType = default(byte);
|
|
bool flag = default(bool);
|
|
bool flag2 = default(bool);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1636098882;
|
|
int num4 = num2;
|
|
int num5;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 3:
|
|
contentLinkType = x.ContentLinkType;
|
|
num = ((contentLinkType == 1) ? (-1636098890) : (-1636098888));
|
|
break;
|
|
case 6:
|
|
num = ((contentLinkType != 5) ? (-1636098889) : (-1636098890));
|
|
break;
|
|
case 10:
|
|
return x.ContentType.RowId != 6;
|
|
case 1:
|
|
return false;
|
|
case 9:
|
|
flag = false;
|
|
num = -1636098887;
|
|
break;
|
|
case 2:
|
|
num5 = ((x.Content.RowId != 0) ? 1 : 0);
|
|
goto IL_0110;
|
|
case 7:
|
|
flag2 = flag;
|
|
num = -1636098885;
|
|
break;
|
|
case 4:
|
|
num5 = 0;
|
|
goto IL_0110;
|
|
case 5:
|
|
num = ((!flag2) ? (-1636098881) : (-1636098892));
|
|
break;
|
|
case 8:
|
|
flag = true;
|
|
num = -1636098887;
|
|
break;
|
|
case 0:
|
|
{
|
|
num = -1636098884;
|
|
break;
|
|
}
|
|
IL_0110:
|
|
flag2 = (byte)num5 != 0;
|
|
num = ((!flag2) ? (-1636098885) : (-1636098883));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_9(ContentFinderConditionData x)
|
|
{
|
|
return x.ContentFinderConditionId;
|
|
}
|
|
|
|
internal ContentFinderConditionData _003C_002Ector_003Eb__9_10(ContentFinderConditionData x)
|
|
{
|
|
return x;
|
|
}
|
|
|
|
internal bool _003C_002Ector_003Eb__9_11(ContentFinderCondition x)
|
|
{
|
|
int num = ((x.RowId == 0) ? (-1478857039) : (-1478857038));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1478857037;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_0048;
|
|
case 2:
|
|
return false;
|
|
case 1:
|
|
return x.TerritoryType.RowId != 0;
|
|
}
|
|
continue;
|
|
IL_0048:
|
|
num = -1478857038;
|
|
}
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_12(ContentFinderCondition x)
|
|
{
|
|
return x.TerritoryType.RowId;
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_13(IGrouping<uint, ContentFinderCondition> g)
|
|
{
|
|
return g.Key;
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_14(IGrouping<uint, ContentFinderCondition> g)
|
|
{
|
|
return g.First().RowId;
|
|
}
|
|
|
|
internal bool _003C_002Ector_003Eb__9_15(Quest x)
|
|
{
|
|
int num = ((x.RowId == 0) ? (-1185353339) : (-1185353338));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1185353337;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_0048;
|
|
case 1:
|
|
return x.IssuerLocation.RowId != 0;
|
|
case 2:
|
|
return false;
|
|
}
|
|
continue;
|
|
IL_0048:
|
|
num = -1185353338;
|
|
}
|
|
}
|
|
|
|
internal (ElementId QuestId, byte Index) _003C_002Ector_003Eb__9_17((ElementId QuestId, byte Index, uint CfcId) x)
|
|
{
|
|
return (QuestId: x.QuestId, Index: x.Index);
|
|
}
|
|
|
|
internal uint _003C_002Ector_003Eb__9_18((ElementId QuestId, byte Index, uint CfcId) x)
|
|
{
|
|
return x.CfcId;
|
|
}
|
|
|
|
static SeString _200C_202C_200C_206E_202B_202B_206F_202A_202C_206B_206C_206A_202D_206A_200C_200D_200F_202E_200B_200C_206A_206A_206E_202B_206B_206A_206C_200C_200C_200B_202C_206C_200C_202E_206C_202B_200C_200B_206F_206F_202E(ReadOnlySeString P_0)
|
|
{
|
|
return P_0.ToDalamudString();
|
|
}
|
|
|
|
static string _206E_200B_202A_206F_206F_206B_206C_202E_202E_206A_206F_206F_206A_202E_206D_202D_206B_200F_206D_200F_202E_200F_202E_200E_206A_206C_200D_200D_200F_202E_206C_200C_202E_202B_200B_206C_200E_202D_206E_206A_202E(object P_0)
|
|
{
|
|
return P_0.ToString();
|
|
}
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
private sealed class _003C_003Ec__DisplayClass9_0
|
|
{
|
|
public IDataManager dataManager;
|
|
|
|
internal ContentFinderConditionData _003C_002Ector_003Eb__8(ContentFinderCondition x)
|
|
{
|
|
return new ContentFinderConditionData(x, _202C_206E_200D_200E_206C_202E_206C_200B_206F_202E_206C_200E_200F_206F_206A_200D_200F_202A_202A_206F_202B_200D_206B_202E_202D_200E_202E_200D_200E_202D_200D_200C_200D_200E_200E_206B_200E_202B_206D_206F_202E(dataManager));
|
|
}
|
|
|
|
internal (ElementId QuestId, byte Index, uint CfcId) _003C_002Ector_003Eb__16((ElementId QuestId, byte Index, uint QuestBattleId) x)
|
|
{
|
|
return (QuestId: x.QuestId, Index: x.Index, CfcId: LookupContentFinderConditionForQuestBattle(dataManager, x.QuestBattleId));
|
|
}
|
|
|
|
static ClientLanguage _202C_206E_200D_200E_206C_202E_206C_200B_206F_202E_206C_200E_200F_206F_206A_200D_200F_202A_202A_206F_202B_200D_206B_202E_202D_200E_202E_200D_200E_202D_200D_200C_200D_200E_200E_206B_200E_202B_206D_206F_202E(IDataManager P_0)
|
|
{
|
|
return P_0.Language;
|
|
}
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
private sealed class _003CGetQuestBattles_003Ed__24 : IEnumerable<(ElementId QuestId, byte Index, uint QuestBattleId)>, IEnumerable, IEnumerator<(ElementId QuestId, byte Index, uint QuestBattleId)>, IEnumerator, IDisposable
|
|
{
|
|
private int _003C_003E1__state;
|
|
|
|
private (ElementId QuestId, byte Index, uint QuestBattleId) _003C_003E2__current;
|
|
|
|
private int _003C_003El__initialThreadId;
|
|
|
|
private Quest quest;
|
|
|
|
public Quest _003C_003E3__quest;
|
|
|
|
private Collection<Quest.QuestParamsStruct>.Enumerator _003C_003E7__wrap1;
|
|
|
|
(ElementId QuestId, byte Index, uint QuestBattleId) IEnumerator<(ElementId, byte, uint)>.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
object IEnumerator.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
public _003CGetQuestBattles_003Ed__24(int _003C_003E1__state)
|
|
{
|
|
this._003C_003E1__state = _003C_003E1__state;
|
|
_003C_003El__initialThreadId = _202D_206D_206C_206C_206F_206E_206E_206D_206F_200C_206F_200F_202B_200D_200F_200E_200D_200B_206B_200B_200F_202A_202D_202B_200C_200F_200F_206E_200F_200C_202B_202A_202C_200B_202A_202D_200F_206C_202E_202A_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IDisposable.Dispose()
|
|
{
|
|
int num = _003C_003E1__state;
|
|
int num2 = ((num == -3) ? (-1116870683) : (-1116870682));
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -1116870681;
|
|
int num5 = num3;
|
|
switch ((num5 | num4) - (num5 & num4))
|
|
{
|
|
default:
|
|
continue;
|
|
case 0:
|
|
num2 = -1116870682;
|
|
continue;
|
|
case 1:
|
|
num4 = 1;
|
|
num5 = num;
|
|
if ((uint)(~(~num5 + num4)) <= 1u)
|
|
{
|
|
num2 = -1116870683;
|
|
continue;
|
|
}
|
|
break;
|
|
case 2:
|
|
try
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally1();
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
_003C_003E7__wrap1 = default(Collection<Quest.QuestParamsStruct>.Enumerator);
|
|
_003C_003E1__state = -2;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private bool MoveNext()
|
|
{
|
|
try
|
|
{
|
|
int num;
|
|
Quest.QuestParamsStruct current = default(Quest.QuestParamsStruct);
|
|
switch (_003C_003E1__state)
|
|
{
|
|
default:
|
|
num = 883752623;
|
|
goto IL_0025;
|
|
case 1:
|
|
_003C_003E1__state = -3;
|
|
num = 883752617;
|
|
goto IL_0025;
|
|
case 0:
|
|
goto IL_0089;
|
|
case 2:
|
|
goto IL_0129;
|
|
IL_0025:
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 883752619;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 7:
|
|
goto end_IL_0025;
|
|
case 6:
|
|
goto IL_0089;
|
|
case 2:
|
|
goto IL_00bd;
|
|
case 5:
|
|
goto IL_00e5;
|
|
case 10:
|
|
goto IL_0129;
|
|
case 1:
|
|
_003C_003E2__current = (QuestId: _202C_206C_206C_206A_206D_200B_200D_200D_200C_206A_202E_200B_206A_200E_206B_200F_206F_200D_200B_202A_202C_202D_200E_206B_200E_206A_200E_200E_206D_200E_200B_200D_206A_202C_202C_206E_202E_202D_200D_202C_202E(quest.RowId), Index: 1, QuestBattleId: current.ScriptArg);
|
|
_003C_003E1__state = 2;
|
|
return true;
|
|
case 8:
|
|
_003C_003E2__current = (QuestId: _202C_206C_206C_206A_206D_200B_200D_200D_200C_206A_202E_200B_206A_200E_206B_200F_206F_200D_200B_202A_202C_202D_200E_206B_200E_206A_200E_200E_206D_200E_200B_200D_206A_202C_202C_206E_202E_202D_200D_202C_202E(quest.RowId), Index: 0, QuestBattleId: current.ScriptArg);
|
|
_003C_003E1__state = 1;
|
|
return true;
|
|
case 3:
|
|
goto IL_01b7;
|
|
case 9:
|
|
goto IL_01e4;
|
|
case 11:
|
|
num = 883752623;
|
|
break;
|
|
case 4:
|
|
return false;
|
|
case 0:
|
|
_003C_003Em__Finally1();
|
|
_003C_003E7__wrap1 = default(Collection<Quest.QuestParamsStruct>.Enumerator);
|
|
return false;
|
|
}
|
|
continue;
|
|
IL_01e4:
|
|
num = ((!(current.ScriptInstruction == global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(1229719588))) ? 883752616 : 883752618);
|
|
continue;
|
|
IL_00e5:
|
|
current = _003C_003E7__wrap1.Current;
|
|
num = ((!(current.ScriptInstruction == global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(632409858))) ? 883752610 : 883752611);
|
|
continue;
|
|
IL_00bd:
|
|
num = (_003C_003E7__wrap1.MoveNext() ? 883752622 : 883752619);
|
|
continue;
|
|
IL_01b7:
|
|
num = (current.ScriptInstruction.IsEmpty ? 883752619 : 883752617);
|
|
continue;
|
|
end_IL_0025:
|
|
break;
|
|
}
|
|
goto case 1;
|
|
IL_0129:
|
|
_003C_003E1__state = -3;
|
|
num = 883752617;
|
|
goto IL_0025;
|
|
IL_0089:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E7__wrap1 = quest.QuestParams.GetEnumerator();
|
|
_003C_003E1__state = -3;
|
|
num = 883752617;
|
|
goto IL_0025;
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
//try-fault
|
|
((IDisposable)this).Dispose();
|
|
throw;
|
|
}
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
|
return this.MoveNext();
|
|
}
|
|
|
|
private void _003C_003Em__Finally1()
|
|
{
|
|
_003C_003E1__state = -1;
|
|
((IDisposable)_003C_003E7__wrap1/*cast due to .constrained prefix*/).Dispose();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IEnumerator.Reset()
|
|
{
|
|
throw _202C_206C_200F_202C_202A_206D_206E_206F_202D_206C_206A_206B_206B_200E_202D_206B_202B_202B_206F_202A_206D_202C_206C_200C_200C_202A_206A_202A_200B_206D_202C_200D_200F_206C_206E_200B_202C_200D_206F_202E_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator<(ElementId QuestId, byte Index, uint QuestBattleId)> IEnumerable<(ElementId, byte, uint)>.GetEnumerator()
|
|
{
|
|
int num = ((_003C_003E1__state != -2) ? 609345982 : 609345977);
|
|
_003CGetQuestBattles_003Ed__24 _003CGetQuestBattles_003Ed__ = default(_003CGetQuestBattles_003Ed__24);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 609345978;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 4:
|
|
_003CGetQuestBattles_003Ed__ = new _003CGetQuestBattles_003Ed__24(0);
|
|
num = 609345976;
|
|
break;
|
|
case 3:
|
|
num = ((_003C_003El__initialThreadId != _202D_206D_206C_206C_206F_206E_206E_206D_206F_200C_206F_200F_202B_200D_200F_200E_200D_200B_206B_200B_200F_202A_202D_202B_200C_200F_200F_206E_200F_200C_202B_202A_202C_200B_202A_202D_200F_206C_202E_202A_202E()) ? 609345982 : 609345979);
|
|
break;
|
|
case 2:
|
|
_003CGetQuestBattles_003Ed__.quest = _003C_003E3__quest;
|
|
return _003CGetQuestBattles_003Ed__;
|
|
case 0:
|
|
num = 609345977;
|
|
break;
|
|
case 1:
|
|
_003C_003E1__state = 0;
|
|
_003CGetQuestBattles_003Ed__ = this;
|
|
num = 609345976;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return ((IEnumerable<(ElementId, byte, uint)>)this).GetEnumerator();
|
|
}
|
|
|
|
static int _202D_206D_206C_206C_206F_206E_206E_206D_206F_200C_206F_200F_202B_200D_200F_200E_200D_200B_206B_200B_200F_202A_202D_202B_200C_200F_200F_206E_200F_200C_202B_202A_202C_200B_202A_202D_200F_206C_202E_202A_202E()
|
|
{
|
|
return Environment.CurrentManagedThreadId;
|
|
}
|
|
|
|
static QuestId _202C_206C_206C_206A_206D_200B_200D_200D_200C_206A_202E_200B_206A_200E_206B_200F_206F_200D_200B_202A_202C_202D_200E_206B_200E_206A_200E_200E_206D_200E_200B_200D_206A_202C_202C_206E_202E_202D_200D_202C_202E(uint P_0)
|
|
{
|
|
return QuestId.FromRowId(P_0);
|
|
}
|
|
|
|
static NotSupportedException _202C_206C_200F_202C_202A_206D_206E_206F_202D_206C_206A_206B_206B_200E_202D_206B_202B_202B_206F_202A_206D_202C_206C_200C_200C_202A_206A_202A_200B_206D_202C_200D_200F_206C_206E_200B_202C_200D_206F_202E_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|
|
|
|
private readonly ImmutableDictionary<uint, string> _territoryNames;
|
|
|
|
private readonly ImmutableHashSet<uint> _territoriesWithMount;
|
|
|
|
private readonly ImmutableDictionary<uint, byte> _territoryExVersions;
|
|
|
|
private readonly ImmutableDictionary<uint, ZoneAccessRequirement> _territoryZoneAccessRequirements;
|
|
|
|
private readonly ImmutableDictionary<uint, uint> _dutyTerritories;
|
|
|
|
private readonly ImmutableDictionary<uint, string> _instanceNames;
|
|
|
|
private readonly ImmutableDictionary<uint, ContentFinderConditionData> _contentFinderConditions;
|
|
|
|
private readonly ImmutableDictionary<uint, uint> _territoryToContentFinderCondition;
|
|
|
|
private readonly ImmutableDictionary<(ElementId QuestId, byte Index), uint> _questBattlesToContentFinderCondition;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public TerritoryData(IDataManager dataManager, ILogger<TerritoryData> logger)
|
|
{
|
|
Dictionary<uint, ZoneAccessRequirement> dictionary = dataManager.GetSubrowExcelSheet<ZoneSharedGroup>().Flatten().Where(delegate(ZoneSharedGroup x)
|
|
{
|
|
bool flag = x.SubrowId == 0;
|
|
int num = ((!flag) ? (-581539066) : (-581539068));
|
|
bool flag2 = default(bool);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -581539067;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 4:
|
|
flag = flag2;
|
|
num = -581539066;
|
|
break;
|
|
case 1:
|
|
{
|
|
byte b = x.RequirementType[0];
|
|
num3 = 1;
|
|
num4 = b;
|
|
num = (((uint)(~(~num4 + num3)) > 1u) ? (-581539065) : (-581539072));
|
|
break;
|
|
}
|
|
case 5:
|
|
flag2 = true;
|
|
num = -581539071;
|
|
break;
|
|
case 3:
|
|
return flag;
|
|
case 0:
|
|
num = -581539068;
|
|
break;
|
|
case 2:
|
|
flag2 = false;
|
|
num = -581539071;
|
|
break;
|
|
}
|
|
}
|
|
})
|
|
.ToDictionary((ZoneSharedGroup x) => x.RowId, (ZoneSharedGroup x) => new ZoneAccessRequirement(x.RequirementType[0], x.RequirementRow[0].RowId, x.RequirementQuestSequence[0]));
|
|
ImmutableDictionary<uint, string>.Builder builder = ImmutableDictionary.CreateBuilder<uint, string>();
|
|
ImmutableHashSet<uint>.Builder builder2 = ImmutableHashSet.CreateBuilder<uint>();
|
|
ImmutableDictionary<uint, byte>.Builder builder3 = ImmutableDictionary.CreateBuilder<uint, byte>();
|
|
ImmutableDictionary<uint, ZoneAccessRequirement>.Builder builder4 = ImmutableDictionary.CreateBuilder<uint, ZoneAccessRequirement>();
|
|
ImmutableDictionary<uint, uint>.Builder builder5 = ImmutableDictionary.CreateBuilder<uint, uint>();
|
|
List<uint> list = new List<uint>();
|
|
foreach (TerritoryType item in dataManager.GetExcelSheet<TerritoryType>())
|
|
{
|
|
if (item.RowId == 0)
|
|
{
|
|
continue;
|
|
}
|
|
string text = item.PlaceName.ValueNullable?.Name.ToString() ?? item.PlaceNameZone.ValueNullable?.Name.ToString();
|
|
if (!_206A_206D_202D_206E_200B_202B_200B_200C_200D_206F_206A_202E_206E_202A_200F_200F_200F_206E_202A_206E_206F_200E_206B_202C_202E_206E_206E_202E_206A_202A_200F_206F_206A_200D_206F_206B_206E_206E_200E_206B_202E(text))
|
|
{
|
|
builder[item.RowId] = text;
|
|
}
|
|
if (item.Mount)
|
|
{
|
|
builder2.Add(item.RowId);
|
|
}
|
|
if (item.ExVersion.RowId != 0)
|
|
{
|
|
builder3[item.RowId] = (byte)item.ExVersion.RowId;
|
|
}
|
|
if (item.ZoneSharedGroup.RowId != 0 && dictionary.TryGetValue(item.ZoneSharedGroup.RowId, out var value))
|
|
{
|
|
if ((dataManager.GetExcelSheet<Quest>().GetRowOrDefault(value.QuestRowId)?.Expansion.RowId ?? 0) > item.ExVersion.RowId)
|
|
{
|
|
list.Add(item.RowId);
|
|
}
|
|
else
|
|
{
|
|
builder4[item.RowId] = value;
|
|
}
|
|
}
|
|
RowRef<ContentFinderCondition> contentFinderCondition = item.ContentFinderCondition;
|
|
if (contentFinderCondition.RowId != 0)
|
|
{
|
|
ContentFinderCondition? valueNullable = contentFinderCondition.ValueNullable;
|
|
if (valueNullable.HasValue)
|
|
{
|
|
ContentFinderCondition valueOrDefault = valueNullable.GetValueOrDefault();
|
|
builder5[item.RowId] = valueOrDefault.ContentType.RowId;
|
|
}
|
|
}
|
|
}
|
|
_territoryNames = builder.ToImmutable();
|
|
_territoriesWithMount = builder2.ToImmutable();
|
|
_territoryExVersions = builder3.ToImmutable();
|
|
_territoryZoneAccessRequirements = builder4.ToImmutable();
|
|
_dutyTerritories = builder5.ToImmutable();
|
|
if (list.Count > 0)
|
|
{
|
|
_202E_200C_202B_200E_200D_200C_206F_200E_202A_202B_206E_206B_200F_206B_202B_202B_202A_202A_200F_200E_200B_206D_200B_200E_202A_202B_202E_206F_206F_200D_200B_206F_200E_202A_202C_202A_206C_202E_200F_202A_202E((ILogger)logger, global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(-446199229), new object[2]
|
|
{
|
|
list.Count,
|
|
_202D_200F_200C_206D_202B_206A_200B_200E_202B_206F_202A_202B_202E_206A_200C_200D_200F_206B_202D_206B_202D_202A_202E_200C_202A_202E_202B_202C_206B_200F_206E_200C_200C_200F_202C_206B_206E_206F_202E(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(1577352017), list.Select(GetNameAndId))
|
|
});
|
|
}
|
|
_instanceNames = (from x in dataManager.GetExcelSheet<ContentFinderCondition>().Where(delegate(ContentFinderCondition x)
|
|
{
|
|
int num = ((x.RowId == 0) ? 2089716118 : 2089716116);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 2089716118;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
return false;
|
|
case 2:
|
|
num = ((x.Content.RowId == 0) ? 2089716118 : 2089716119);
|
|
break;
|
|
case 1:
|
|
num = ((x.ContentLinkType != 1) ? 2089716118 : 2089716114);
|
|
break;
|
|
case 4:
|
|
return x.ContentType.RowId != 6;
|
|
case 3:
|
|
num = 2089716116;
|
|
break;
|
|
}
|
|
}
|
|
})
|
|
group x by x.Content.RowId).ToImmutableDictionary((IGrouping<uint, ContentFinderCondition> g) => g.Key, (IGrouping<uint, ContentFinderCondition> g) => _003C_003Ec._206E_200B_202A_206F_206F_206B_206C_202E_202E_206A_206F_206F_206A_202E_206D_202D_206B_200F_206D_200F_202E_200F_202E_200E_206A_206C_200D_200D_200F_202E_206C_200C_202E_202B_200B_206C_200E_202D_206E_206A_202E((object)_003C_003Ec._200C_202C_200C_206E_202B_202B_206F_202A_202C_206B_206C_206A_202D_206A_200C_200D_200F_202E_200B_200C_206A_206A_206E_202B_206B_206A_206C_200C_200C_200B_202C_206C_200C_202E_206C_202B_200C_200B_206F_206F_202E(g.First().Name)));
|
|
_contentFinderConditions = (from x in dataManager.GetExcelSheet<ContentFinderCondition>().Where(delegate(ContentFinderCondition x)
|
|
{
|
|
int num = ((x.RowId == 0) ? (-1636098886) : (-1636098884));
|
|
byte contentLinkType = default(byte);
|
|
bool flag = default(bool);
|
|
bool flag2 = default(bool);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1636098882;
|
|
int num4 = num2;
|
|
int num5;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 3:
|
|
contentLinkType = x.ContentLinkType;
|
|
num = ((contentLinkType == 1) ? (-1636098890) : (-1636098888));
|
|
break;
|
|
case 6:
|
|
num = ((contentLinkType != 5) ? (-1636098889) : (-1636098890));
|
|
break;
|
|
case 10:
|
|
return x.ContentType.RowId != 6;
|
|
case 1:
|
|
return false;
|
|
case 9:
|
|
flag = false;
|
|
num = -1636098887;
|
|
break;
|
|
case 2:
|
|
num5 = ((x.Content.RowId != 0) ? 1 : 0);
|
|
goto IL_0110;
|
|
case 7:
|
|
flag2 = flag;
|
|
num = -1636098885;
|
|
break;
|
|
case 4:
|
|
num5 = 0;
|
|
goto IL_0110;
|
|
case 5:
|
|
num = ((!flag2) ? (-1636098881) : (-1636098892));
|
|
break;
|
|
case 8:
|
|
flag = true;
|
|
num = -1636098887;
|
|
break;
|
|
case 0:
|
|
{
|
|
num = -1636098884;
|
|
break;
|
|
}
|
|
IL_0110:
|
|
flag2 = (byte)num5 != 0;
|
|
num = ((!flag2) ? (-1636098885) : (-1636098883));
|
|
break;
|
|
}
|
|
}
|
|
})
|
|
select new ContentFinderConditionData(x, _003C_003Ec__DisplayClass9_0._202C_206E_200D_200E_206C_202E_206C_200B_206F_202E_206C_200E_200F_206F_206A_200D_200F_202A_202A_206F_202B_200D_206B_202E_202D_200E_202E_200D_200E_202D_200D_200C_200D_200E_200E_206B_200E_202B_206D_206F_202E(dataManager))).ToImmutableDictionary((ContentFinderConditionData x) => x.ContentFinderConditionId, (ContentFinderConditionData x) => x);
|
|
_territoryToContentFinderCondition = (from x in dataManager.GetExcelSheet<ContentFinderCondition>().Where(delegate(ContentFinderCondition x)
|
|
{
|
|
int num = ((x.RowId == 0) ? (-1478857039) : (-1478857038));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1478857037;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_0048;
|
|
case 2:
|
|
return false;
|
|
case 1:
|
|
return x.TerritoryType.RowId != 0;
|
|
}
|
|
continue;
|
|
IL_0048:
|
|
num = -1478857038;
|
|
}
|
|
})
|
|
group x by x.TerritoryType.RowId).ToImmutableDictionary((IGrouping<uint, ContentFinderCondition> g) => g.Key, (IGrouping<uint, ContentFinderCondition> g) => g.First().RowId);
|
|
_questBattlesToContentFinderCondition = (from x in dataManager.GetExcelSheet<Quest>().Where(delegate(Quest x)
|
|
{
|
|
int num = ((x.RowId == 0) ? (-1185353339) : (-1185353338));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1185353337;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_0048;
|
|
case 1:
|
|
return x.IssuerLocation.RowId != 0;
|
|
case 2:
|
|
return false;
|
|
}
|
|
continue;
|
|
IL_0048:
|
|
num = -1185353338;
|
|
}
|
|
}).SelectMany(GetQuestBattles)
|
|
select (QuestId: x.QuestId, Index: x.Index, CfcId: LookupContentFinderConditionForQuestBattle(dataManager, x.QuestBattleId))).ToImmutableDictionary<(ElementId, byte, uint), (ElementId, byte), uint>(((ElementId QuestId, byte Index, uint CfcId) x) => (QuestId: x.QuestId, Index: x.Index), ((ElementId QuestId, byte Index, uint CfcId) x) => x.CfcId);
|
|
}
|
|
|
|
public string? GetName(uint territoryId)
|
|
{
|
|
return _territoryNames.GetValueOrDefault(territoryId);
|
|
}
|
|
|
|
string? ITerritoryInfo.GetName(uint territoryId)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in GetName
|
|
return this.GetName(territoryId);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public string GetNameAndId(uint territoryId)
|
|
{
|
|
string name = GetName(territoryId);
|
|
int num = ((name == null) ? (-644306227) : (-644306226));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -644306228;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
return territoryId.ToString(_202C_200C_200F_206C_202E_202A_206D_206C_206C_206F_200E_202E_200F_202C_202A_206D_202B_200E_206E_206C_206D_200F_200D_200D_202A_202C_200B_206C_206A_200B_202E_200B_200F_202E_202E_200B_202C_206A_202A_200D_202E());
|
|
case 2:
|
|
{
|
|
IFormatProvider formatProvider = _202C_200C_200F_206C_202E_202A_206D_206C_206C_206F_200E_202E_200F_202C_202A_206D_202B_200E_206E_206C_206D_200F_200D_200D_202A_202C_200B_206C_206A_200B_202E_200B_200F_202E_202E_200B_202C_206A_202A_200D_202E();
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(3, 2, formatProvider);
|
|
defaultInterpolatedStringHandler.AppendFormatted(name);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(588901087));
|
|
defaultInterpolatedStringHandler.AppendFormatted(territoryId);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(555647321));
|
|
return _206B_200F_202E_202B_206C_200D_200D_206C_202D_200B_206A_200C_200E_200C_202B_200C_202C_200C_206B_206A_202D_200B_206F_202B_206C_202A_206A_202D_202E_200C_200C_202B_202B_202E_202E_202C_202A_200F_200C_202D_202E(formatProvider, ref defaultInterpolatedStringHandler);
|
|
}
|
|
case 0:
|
|
goto IL_00a9;
|
|
}
|
|
continue;
|
|
IL_00a9:
|
|
num = -644306226;
|
|
}
|
|
}
|
|
|
|
string ITerritoryInfo.GetNameAndId(uint territoryId)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in GetNameAndId
|
|
return this.GetNameAndId(territoryId);
|
|
}
|
|
|
|
public bool CanUseMount(uint territoryId)
|
|
{
|
|
return _territoriesWithMount.Contains(territoryId);
|
|
}
|
|
|
|
bool ITerritoryInfo.CanUseMount(uint territoryId)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in CanUseMount
|
|
return this.CanUseMount(territoryId);
|
|
}
|
|
|
|
public byte GetExVersion(uint territoryId)
|
|
{
|
|
byte value;
|
|
int num = (_territoryExVersions.TryGetValue(territoryId, out value) ? 2048951031 : 2048951028);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 2048951029;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_004e;
|
|
case 2:
|
|
return value;
|
|
case 1:
|
|
return 0;
|
|
}
|
|
continue;
|
|
IL_004e:
|
|
num = 2048951028;
|
|
}
|
|
}
|
|
|
|
byte ITerritoryInfo.GetExVersion(uint territoryId)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in GetExVersion
|
|
return this.GetExVersion(territoryId);
|
|
}
|
|
|
|
public ZoneAccessRequirement? GetZoneAccessRequirement(uint territoryId)
|
|
{
|
|
ZoneAccessRequirement value;
|
|
int num = (_territoryZoneAccessRequirements.TryGetValue(territoryId, out value) ? 1350019505 : 1350019506);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1350019507;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
goto IL_0053;
|
|
case 1:
|
|
return null;
|
|
case 2:
|
|
return value;
|
|
}
|
|
continue;
|
|
IL_0053:
|
|
num = 1350019506;
|
|
}
|
|
}
|
|
|
|
public bool IsDutyInstance(uint territoryId)
|
|
{
|
|
return _dutyTerritories.ContainsKey(territoryId);
|
|
}
|
|
|
|
public bool IsQuestBattleInstance(uint territoryId)
|
|
{
|
|
uint value;
|
|
int num = ((!_dutyTerritories.TryGetValue(territoryId, out value)) ? 555422992 : 555422995);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 555422993;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
goto IL_0050;
|
|
case 2:
|
|
return value == 7;
|
|
case 1:
|
|
return false;
|
|
}
|
|
continue;
|
|
IL_0050:
|
|
num = 555422995;
|
|
}
|
|
}
|
|
|
|
public string? GetInstanceName(uint instanceId)
|
|
{
|
|
return _instanceNames.GetValueOrDefault(instanceId);
|
|
}
|
|
|
|
public ContentFinderConditionData? GetContentFinderCondition(uint cfcId)
|
|
{
|
|
return _contentFinderConditions.GetValueOrDefault(cfcId);
|
|
}
|
|
|
|
public bool TryGetContentFinderCondition(uint cfcId, [NotNullWhen(true)] out ContentFinderConditionData? contentFinderConditionData)
|
|
{
|
|
return _contentFinderConditions.TryGetValue(cfcId, out contentFinderConditionData);
|
|
}
|
|
|
|
public bool TryGetContentFinderConditionForSoloInstance(ElementId questId, byte index, [NotNullWhen(true)] out ContentFinderConditionData? contentFinderConditionData)
|
|
{
|
|
uint value;
|
|
int num = ((!_questBattlesToContentFinderCondition.TryGetValue((questId, index), out value)) ? (-1412736691) : (-1412736690));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1412736689;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
contentFinderConditionData = null;
|
|
return false;
|
|
case 1:
|
|
return _contentFinderConditions.TryGetValue(value, out contentFinderConditionData);
|
|
case 0:
|
|
goto IL_0067;
|
|
}
|
|
continue;
|
|
IL_0067:
|
|
num = -1412736690;
|
|
}
|
|
}
|
|
|
|
public bool TryGetContentFinderConditionIdForTerritory(uint territoryId, out uint cfcId)
|
|
{
|
|
return _territoryToContentFinderCondition.TryGetValue(territoryId, out cfcId);
|
|
}
|
|
|
|
public IEnumerable<(ElementId QuestId, byte Index, ContentFinderConditionData Data)> GetAllQuestsWithQuestBattles()
|
|
{
|
|
return _questBattlesToContentFinderCondition.Select<KeyValuePair<(ElementId, byte), uint>, (ElementId, byte, ContentFinderConditionData)>((KeyValuePair<(ElementId QuestId, byte Index), uint> x) => (QuestId: x.Key.QuestId, Index: x.Key.Index, _contentFinderConditions[x.Value]));
|
|
}
|
|
|
|
private static string FixName(string name, ClientLanguage language)
|
|
{
|
|
int num = (_206A_206D_202D_206E_200B_202B_200B_200C_200D_206F_206A_202E_206E_202A_200F_200F_200F_206E_202A_206E_206F_200E_206B_202C_202E_206E_206E_202E_206A_202A_200F_206F_206A_200D_206F_206B_206E_206E_200E_206B_202E(name) ? 1084979106 : 1084979105);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1084979104;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
return _202E_200B_200E_206D_200E_200B_206F_200E_200E_200D_206C_200F_202C_202B_202E_206F_200B_202A_202A_206B_200E_202E_202C_206D_206A_206A_206E_202D_206C_206E_200C_202A_202D_206D_202A_206D_200B_202A_206A_200C_202E(_206C_206D_206F_206E_206C_200D_206A_200E_200D_200B_206C_202B_202B_206D_200F_200C_202E_206D_200E_202A_206B_202C_200E_206A_206B_200F_200D_202D_202B_202B_202A_202B_206B_202E_206C_200F_202D_202C_202B_206A_202E(_200C_206D_206B_200B_206C_206F_202D_202C_202D_200F_206B_202C_200D_200F_202E_202B_202B_200B_202E_202B_206F_202C_200C_206F_200F_206B_206C_206F_206E_206C_202E_200D_206B_202D_200B_202B_202A_202A_202D_202D_202E(_206E_206F_200E_202A_200D_200E_206D_206E_206D_202E_206F_206A_200C_206F_200B_202C_202A_206B_202E_202C_206D_200B_200E_200D_200F_206D_206F_206E_202B_206D_202B_206D_206F_202E_200F_206C_206F_206C_202D_202C_202E(name, 0).ToString(), _202C_200C_200F_206C_202E_202A_206D_206C_206C_206F_200E_202E_200F_202C_202A_206D_202B_200E_206E_206C_206D_200F_200D_200D_202A_202C_200B_206C_206A_200B_202E_200B_200F_202E_202E_200B_202C_206A_202A_200D_202E())), _206C_202B_202E_202D_202A_202E_206D_202A_206C_200D_200D_206F_206F_202D_200D_206F_206F_202E_202D_206C_206D_206D_202B_200C_200E_202D_200C_206C_202E_202E_206A_206F_202B_206B_202B_200F_206E_200B_202B_200E_202E(name, 1));
|
|
case 1:
|
|
num = ((language == ClientLanguage.English) ? 1084979104 : 1084979106);
|
|
break;
|
|
case 2:
|
|
return name;
|
|
case 3:
|
|
num = 1084979105;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[IteratorStateMachine(typeof(_003CGetQuestBattles_003Ed__24))]
|
|
private static IEnumerable<(ElementId QuestId, byte Index, uint QuestBattleId)> GetQuestBattles(Quest quest)
|
|
{
|
|
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
|
return new _003CGetQuestBattles_003Ed__24(-2)
|
|
{
|
|
_003C_003E3__quest = quest
|
|
};
|
|
}
|
|
|
|
private static uint LookupContentFinderConditionForQuestBattle(IDataManager dataManager, uint questBattleId)
|
|
{
|
|
int num = ((questBattleId < 5000) ? 152242132 : 152242135);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 152242134;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_004f;
|
|
case 1:
|
|
return dataManager.GetExcelSheet<InstanceContent>().GetRow(questBattleId).ContentFinderCondition.RowId;
|
|
case 2:
|
|
return dataManager.GetExcelSheet<QuestBattleResident>().GetRow(questBattleId).SoloDuty.RowId;
|
|
}
|
|
continue;
|
|
IL_004f:
|
|
num = 152242135;
|
|
}
|
|
}
|
|
|
|
static bool _206A_206D_202D_206E_200B_202B_200B_200C_200D_206F_206A_202E_206E_202A_200F_200F_200F_206E_202A_206E_206F_200E_206B_202C_202E_206E_206E_202E_206A_202A_200F_206F_206A_200D_206F_206B_206E_206E_200E_206B_202E(string P_0)
|
|
{
|
|
return string.IsNullOrEmpty(P_0);
|
|
}
|
|
|
|
static string _202D_200F_200C_206D_202B_206A_200B_200E_202B_206F_202A_202B_202E_206A_200C_200D_200F_206B_202D_206B_202D_202A_202E_200C_202A_202E_202B_202C_206B_200F_206E_200C_200C_200F_202C_206B_206E_206F_202E(string P_0, IEnumerable<string> P_1)
|
|
{
|
|
return string.Join(P_0, P_1);
|
|
}
|
|
|
|
static void _202E_200C_202B_200E_200D_200C_206F_200E_202A_202B_206E_206B_200F_206B_202B_202B_202A_202A_200F_200E_200B_206D_200B_200E_202A_202B_202E_206F_206F_200D_200B_206F_200E_202A_202C_202A_206C_202E_200F_202A_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static CultureInfo _202C_200C_200F_206C_202E_202A_206D_206C_206C_206F_200E_202E_200F_202C_202A_206D_202B_200E_206E_206C_206D_200F_200D_200D_202A_202C_200B_206C_206A_200B_202E_200B_200F_202E_202E_200B_202C_206A_202A_200D_202E()
|
|
{
|
|
return CultureInfo.InvariantCulture;
|
|
}
|
|
|
|
static string _206B_200F_202E_202B_206C_200D_200D_206C_202D_200B_206A_200C_200E_200C_202B_200C_202C_200C_206B_206A_202D_200B_206F_202B_206C_202A_206A_202D_202E_200C_200C_202B_202B_202E_202E_202C_202A_200F_200C_202D_202E(IFormatProvider P_0, ref DefaultInterpolatedStringHandler P_1)
|
|
{
|
|
return string.Create(P_0, ref P_1);
|
|
}
|
|
|
|
static char _206E_206F_200E_202A_200D_200E_206D_206E_206D_202E_206F_206A_200C_206F_200B_202C_202A_206B_202E_202C_206D_200B_200E_200D_200F_206D_206F_206E_202B_206D_202B_206D_206F_202E_200F_206C_206F_206C_202D_202C_202E(string P_0, int P_1)
|
|
{
|
|
return P_0[P_1];
|
|
}
|
|
|
|
static string _200C_206D_206B_200B_206C_206F_202D_202C_202D_200F_206B_202C_200D_200F_202E_202B_202B_200B_202E_202B_206F_202C_200C_206F_200F_206B_206C_206F_206E_206C_202E_200D_206B_202D_200B_202B_202A_202A_202D_202D_202E(string P_0, CultureInfo P_1)
|
|
{
|
|
return P_0.ToUpper(P_1);
|
|
}
|
|
|
|
static ReadOnlySpan<char> _206C_206D_206F_206E_206C_200D_206A_200E_200D_200B_206C_202B_202B_206D_200F_200C_202E_206D_200E_202A_206B_202C_200E_206A_206B_200F_200D_202D_202B_202B_202A_202B_206B_202E_206C_200F_202D_202C_202B_206A_202E(string P_0)
|
|
{
|
|
return P_0.AsSpan();
|
|
}
|
|
|
|
static ReadOnlySpan<char> _206C_202B_202E_202D_202A_202E_206D_202A_206C_200D_200D_206F_206F_202D_200D_206F_206F_202E_202D_206C_206D_206D_202B_200C_200E_202D_200C_206C_202E_202E_206A_206F_202B_206B_202B_200F_206E_200B_202B_200E_202E(string P_0, int P_1)
|
|
{
|
|
return P_0.AsSpan(P_1);
|
|
}
|
|
|
|
static string _202E_200B_200E_206D_200E_200B_206F_200E_200E_200D_206C_200F_202C_202B_202E_206F_200B_202A_202A_206B_200E_202E_202C_206D_206A_206A_206E_202D_206C_206E_200C_202A_202D_206D_202A_206D_200B_202A_206A_200C_202E(ReadOnlySpan<char> P_0, ReadOnlySpan<char> P_1)
|
|
{
|
|
return string.Concat(P_0, P_1);
|
|
}
|
|
}
|