forked from aly/qstbak
muffin v7.5.6
This commit is contained in:
parent
6266f9e6b7
commit
addf2d530f
619 changed files with 264792 additions and 446022 deletions
|
|
@ -0,0 +1,54 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class BeforeDutyCondition : StopCondition
|
||||
{
|
||||
public override bool IsSession => false;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.BeforeDuty;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
EInteractionType? upcomingInteractionType = context.UpcomingInteractionType;
|
||||
int num = ((!upcomingInteractionType.HasValue) ? (-1887031172) : (-1887031170));
|
||||
bool result = default(bool);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1887031171;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 1:
|
||||
result = false;
|
||||
num = -1887031171;
|
||||
break;
|
||||
case 4:
|
||||
result = true;
|
||||
num = -1887031171;
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
EInteractionType valueOrDefault = upcomingInteractionType.GetValueOrDefault();
|
||||
num = (((uint)(valueOrDefault - 19) > 1u) ? (-1887031172) : (-1887031175));
|
||||
break;
|
||||
}
|
||||
case 0:
|
||||
return result;
|
||||
case 2:
|
||||
num = -1887031170;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
return 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>(-2024271967);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal enum EStopConditionMode
|
||||
{
|
||||
Off,
|
||||
Pause,
|
||||
Stop
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal enum EStopConditionType
|
||||
{
|
||||
QuestComplete,
|
||||
QuestAccept,
|
||||
Level,
|
||||
GlobalSequence,
|
||||
TimePlayed,
|
||||
InventoryFull,
|
||||
QuestCount,
|
||||
BeforeDuty,
|
||||
GilThreshold
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class GilThresholdCondition : StopCondition
|
||||
{
|
||||
public required int MinGil { get; set; }
|
||||
|
||||
public override bool IsSession => false;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.GilThreshold;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return context.Gil < MinGil;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(10, 1);
|
||||
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>(-789256971));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(MinGil, 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>(-1282575127));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class GlobalSequenceCondition : StopCondition
|
||||
{
|
||||
public required int TargetSequence { get; set; }
|
||||
|
||||
public override bool IsSession => false;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.GlobalSequence;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return context.CurrentSequence >= TargetSequence;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(9, 1);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(48652591));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(TargetSequence);
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class InventoryFullCondition : StopCondition
|
||||
{
|
||||
public override bool IsSession => false;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.InventoryFull;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return context.FreeInventorySlots == 0;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
return 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>(915709300);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class LevelCondition : StopCondition
|
||||
{
|
||||
public required int TargetLevel { get; set; }
|
||||
|
||||
public override bool IsSession => false;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.Level;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return context.PlayerLevel >= TargetLevel;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(6, 1);
|
||||
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>(1980344015));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(TargetLevel);
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class QuestAcceptCondition : StopCondition
|
||||
{
|
||||
private bool _isSession;
|
||||
|
||||
public required ElementId QuestId { get; set; }
|
||||
|
||||
public override bool IsSession => _isSession;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.QuestAccept;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return ((QuestAcceptCondition)(object)context.AcceptedQuestId)?._200B_206A_200B_200C_206C_200C_200B_206A_202E_206F_202A_206B_202B_206C_202E_200C_202B_206B_202A_202D_206B_206C_206F_206E_206A_206E_202A_206A_206C_200F_206C_200B_206E_200B_200C_200B_206B_200F_206A_206D_202E(QuestId) ?? false;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(15, 1);
|
||||
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>(-145606806));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(QuestId);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(1158663954));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
|
||||
public static QuestAcceptCondition CreateSession(ElementId questId)
|
||||
{
|
||||
return new QuestAcceptCondition
|
||||
{
|
||||
QuestId = questId,
|
||||
_isSession = true,
|
||||
Mode = EStopConditionMode.Stop
|
||||
};
|
||||
}
|
||||
|
||||
bool _200B_206A_200B_200C_206C_200C_200B_206A_202E_206F_202A_206B_202B_206C_202E_200C_202B_206B_202A_202D_206B_206C_206F_206E_206A_206E_202A_206A_206C_200F_206C_200B_206E_200B_200C_200B_206B_200F_206A_206D_202E(ElementId P_0)
|
||||
{
|
||||
return ((ElementId)(object)this).Equals(P_0);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,112 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class QuestCompleteCondition : StopCondition
|
||||
{
|
||||
private bool _isSession;
|
||||
|
||||
public required ElementId QuestId { get; set; }
|
||||
|
||||
public int? Sequence { get; set; }
|
||||
|
||||
public override bool IsSession => _isSession;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.QuestComplete;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
int? sequence = Sequence;
|
||||
int num = ((!sequence.HasValue) ? 1923712411 : 1923712409);
|
||||
int valueOrDefault = default(int);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1923712408;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
return false;
|
||||
case 0:
|
||||
return context.CurrentSequence >= valueOrDefault;
|
||||
case 1:
|
||||
{
|
||||
valueOrDefault = sequence.GetValueOrDefault();
|
||||
ElementId? currentQuestId = context.CurrentQuestId;
|
||||
num = (((object)currentQuestId == null || !((QuestCompleteCondition)(object)currentQuestId)._206F_202D_200C_200B_200F_200D_200D_202B_206B_206D_202B_200D_202D_200D_206A_202C_202C_206D_206C_202D_206C_206A_202B_202E_202E_206C_206F_200D_206A_202A_200F_206B_206F_202E_206C_206F_200E_200F_202B_200D_202E(QuestId)) ? 1923712410 : 1923712408);
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
num = 1923712409;
|
||||
break;
|
||||
case 3:
|
||||
return ((QuestCompleteCondition)(object)context.CompletedQuestId)?._206F_202D_200C_200B_200F_200D_200D_202B_206B_206D_202B_200D_202D_200D_206A_202C_202C_206D_206C_202D_206C_206A_202B_202E_202E_206C_206F_200D_206A_202A_200F_206B_206F_202E_206C_206F_200E_200F_202B_200D_202E(QuestId) ?? false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
string text = _206C_202B_200F_200F_206A_206D_200D_206E_202C_202B_202C_206A_206F_200B_206A_206B_200C_202A_206B_200D_206E_202A_206D_206C_200F_202B_202A_206C_206A_202C_206D_202B_206B_202B_202B_206E_206F_206C_200E_202B_202E((object)QuestId);
|
||||
int? sequence = Sequence;
|
||||
int num = ((!sequence.HasValue) ? (-1343890336) : (-1343890335));
|
||||
int valueOrDefault = default(int);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1343890336;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 3:
|
||||
num = -1343890335;
|
||||
break;
|
||||
case 1:
|
||||
valueOrDefault = sequence.GetValueOrDefault();
|
||||
num = -1343890334;
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(19, 2);
|
||||
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>(18748268));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(text);
|
||||
defaultInterpolatedStringHandler.AppendLiteral(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>(-1980091129));
|
||||
defaultInterpolatedStringHandler.AppendFormatted(valueOrDefault);
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
case 0:
|
||||
return _202B_202D_206E_206D_202D_206D_202C_206C_206D_206D_200F_206E_206F_206F_202D_200B_202A_202A_202D_206E_202E_200D_200F_206D_200B_202A_206A_200C_206F_206F_206F_202A_202A_200E_202C_202A_206B_200B_202A_200C_202E(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>(-1754422725), text, 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>(-729035300));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static QuestCompleteCondition CreateSession(ElementId questId)
|
||||
{
|
||||
return new QuestCompleteCondition
|
||||
{
|
||||
QuestId = questId,
|
||||
_isSession = true,
|
||||
Mode = EStopConditionMode.Stop
|
||||
};
|
||||
}
|
||||
|
||||
bool _206F_202D_200C_200B_200F_200D_200D_202B_206B_206D_202B_200D_202D_200D_206A_202C_202C_206D_206C_202D_206C_206A_202B_202E_202E_206C_206F_200D_206A_202A_200F_206B_206F_202E_206C_206F_200E_200F_202B_200D_202E(ElementId P_0)
|
||||
{
|
||||
return ((ElementId)(object)this).Equals(P_0);
|
||||
}
|
||||
|
||||
static string _206C_202B_200F_200F_206A_206D_200D_206E_202C_202B_202C_206A_206F_200B_206A_206B_200C_202A_206B_200D_206E_202A_206D_206C_200F_202B_202A_206C_206A_202C_206D_202B_206B_202B_202B_206E_206F_206C_200E_202B_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static string _202B_202D_206E_206D_202D_206D_202C_206C_206D_206D_200F_206E_206F_206F_202D_200B_202A_202A_202D_206E_202E_200D_200F_206D_200B_202A_206A_200C_206F_206F_206F_202A_202A_200E_202C_202A_206B_200B_202A_200C_202E(string P_0, string P_1, string P_2)
|
||||
{
|
||||
return P_0 + P_1 + P_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class QuestCountCondition : StopCondition
|
||||
{
|
||||
public required int Count { get; set; }
|
||||
|
||||
public override bool IsSession => true;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.QuestCount;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return context.QuestsCompletedThisSession >= Count;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(17, 1);
|
||||
defaultInterpolatedStringHandler.AppendFormatted(Count);
|
||||
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>(1579947935));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
[JsonConverter(typeof(StopConditionConverter))]
|
||||
internal abstract class StopCondition
|
||||
{
|
||||
public EStopConditionMode Mode { get; set; } = EStopConditionMode.Stop;
|
||||
|
||||
public abstract bool IsSession { get; }
|
||||
|
||||
public abstract EStopConditionType Type { get; }
|
||||
|
||||
public abstract bool Evaluate(StopEvaluationContext context);
|
||||
|
||||
public abstract string GetDescription();
|
||||
}
|
||||
|
|
@ -0,0 +1,434 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class StopConditionConverter : JsonConverter<StopCondition>
|
||||
{
|
||||
public override StopCondition? ReadJson(JsonReader reader, Type objectType, StopCondition? existingValue, bool hasExistingValue, JsonSerializer serializer)
|
||||
{
|
||||
try
|
||||
{
|
||||
return ReadJsonCore(reader);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private static StopCondition? ReadJsonCore(JsonReader reader)
|
||||
{
|
||||
JObject jObject = _206C_200E_206F_200F_202C_202D_200B_200E_200D_200D_200F_202E_206B_206E_202C_206B_206F_200E_206C_202D_200E_202E_206D_206E_202C_202E_206D_200C_206E_202E_206F_200C_202E_206D_206E_202D_206E_202C_206B_200D_202E(reader);
|
||||
string text = _200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(52233837))?.Value<string>();
|
||||
int num = ((text == null) ? (-2010192551) : (-2010192556));
|
||||
ElementId elementId2 = default(ElementId);
|
||||
StopCondition stopCondition2 = default(StopCondition);
|
||||
ElementId elementId = default(ElementId);
|
||||
StopCondition stopCondition = default(StopCondition);
|
||||
int? num7 = default(int?);
|
||||
char c = default(char);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -2010192547;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 10:
|
||||
elementId2 = DeserializeElementId(_200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(795152114)));
|
||||
num = (((object)elementId2 == null) ? (-2010192551) : (-2010192558));
|
||||
break;
|
||||
case 5:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(1603904649)) ? (-2010192557) : (-2010192562));
|
||||
break;
|
||||
case 4:
|
||||
goto IL_0152;
|
||||
case 3:
|
||||
stopCondition2 = new QuestAcceptCondition
|
||||
{
|
||||
QuestId = elementId
|
||||
};
|
||||
num = -2010192575;
|
||||
break;
|
||||
case 28:
|
||||
stopCondition = stopCondition2;
|
||||
num = ((stopCondition == null) ? (-2010192572) : (-2010192548));
|
||||
break;
|
||||
case 6:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(436457362)) ? (-2010192553) : (-2010192563));
|
||||
break;
|
||||
case 25:
|
||||
return stopCondition;
|
||||
case 14:
|
||||
elementId = DeserializeElementId(_200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(795152114)));
|
||||
num = (((object)elementId == null) ? (-2010192551) : (-2010192546));
|
||||
break;
|
||||
case 0:
|
||||
stopCondition2 = new BeforeDutyCondition();
|
||||
num = -2010192575;
|
||||
break;
|
||||
case 19:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 15:
|
||||
{
|
||||
QuestCompleteCondition obj = new QuestCompleteCondition
|
||||
{
|
||||
QuestId = elementId2
|
||||
};
|
||||
JToken jToken = _200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(5286166));
|
||||
int? sequence;
|
||||
if (jToken == null)
|
||||
{
|
||||
num7 = null;
|
||||
sequence = num7;
|
||||
}
|
||||
else
|
||||
{
|
||||
sequence = jToken.Value<int?>();
|
||||
}
|
||||
obj.Sequence = sequence;
|
||||
stopCondition2 = obj;
|
||||
num = -2010192575;
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
goto IL_026d;
|
||||
case 31:
|
||||
stopCondition2 = new GilThresholdCondition
|
||||
{
|
||||
MinGil = (_200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(-1170513832))?.Value<int>() ?? 1000)
|
||||
};
|
||||
num = -2010192575;
|
||||
break;
|
||||
case 7:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 29:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 24:
|
||||
goto IL_02f2;
|
||||
case 22:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 9:
|
||||
{
|
||||
int num8 = _206F_202A_200E_206F_206E_206C_206D_206A_202D_202B_202B_206C_206B_206B_202B_200C_200F_200C_202D_202E_206B_206E_200B_200D_202C_206E_206C_202A_202D_200E_206F_202C_200D_206E_202A_202D_202B_200C_206D_206A_202E(text);
|
||||
num3 = 5;
|
||||
num4 = num8;
|
||||
switch (~(~num4 + num3))
|
||||
{
|
||||
case 6:
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
goto IL_0152;
|
||||
case 5:
|
||||
goto IL_026d;
|
||||
case 9:
|
||||
goto IL_02f2;
|
||||
default:
|
||||
goto IL_0370;
|
||||
case 7:
|
||||
goto IL_0394;
|
||||
case 8:
|
||||
goto IL_03e3;
|
||||
case 0:
|
||||
goto IL_04e6;
|
||||
}
|
||||
goto case 5;
|
||||
}
|
||||
case 23:
|
||||
num = -2010192556;
|
||||
break;
|
||||
case 11:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 20:
|
||||
goto IL_0394;
|
||||
case 17:
|
||||
num = ((c != 'Q') ? (-2010192551) : (-2010192549));
|
||||
break;
|
||||
case 32:
|
||||
goto IL_03e3;
|
||||
case 16:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 26:
|
||||
stopCondition2 = new LevelCondition
|
||||
{
|
||||
TargetLevel = (_200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(133157427))?.Value<int>() ?? 50)
|
||||
};
|
||||
num = -2010192575;
|
||||
break;
|
||||
case 12:
|
||||
num = -2010192551;
|
||||
break;
|
||||
case 8:
|
||||
stopCondition2 = new GlobalSequenceCondition
|
||||
{
|
||||
TargetSequence = (_200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(-1825719736))?.Value<int>() ?? 1)
|
||||
};
|
||||
num = -2010192575;
|
||||
break;
|
||||
case 30:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(-17723474)) ? (-2010192570) : (-2010192565));
|
||||
break;
|
||||
case 18:
|
||||
{
|
||||
int valueOrDefault = num7.GetValueOrDefault();
|
||||
stopCondition.Mode = (EStopConditionMode)valueOrDefault;
|
||||
num = -2010192572;
|
||||
break;
|
||||
}
|
||||
case 21:
|
||||
goto IL_04e6;
|
||||
case 27:
|
||||
stopCondition2 = new InventoryFullCondition();
|
||||
num = -2010192575;
|
||||
break;
|
||||
case 1:
|
||||
num7 = _200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(jObject, 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>(-672065767))?.Value<int>();
|
||||
num = ((!num7.HasValue) ? (-2010192572) : (-2010192561));
|
||||
break;
|
||||
case 13:
|
||||
{
|
||||
num = -2010192551;
|
||||
break;
|
||||
}
|
||||
IL_0394:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(-1252232514)) ? (-2010192574) : (-2010192576));
|
||||
break;
|
||||
IL_0370:
|
||||
num = -2010192559;
|
||||
break;
|
||||
IL_02f2:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(1543657704)) ? (-2010192555) : (-2010192550));
|
||||
break;
|
||||
IL_026d:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(512682232)) ? (-2010192547) : (-2010192560));
|
||||
break;
|
||||
IL_04e6:
|
||||
num = (_206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(text, 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>(-1372234188)) ? (-2010192569) : (-2010192554));
|
||||
break;
|
||||
IL_03e3:
|
||||
c = _206D_206F_202A_202E_202A_200F_206C_202D_202E_200D_200F_206B_206C_206C_200C_202E_200B_202A_202C_206A_202C_200F_200B_206F_206C_206A_200D_200C_206C_200D_206E_200F_206E_206E_202D_206A_206D_200C_202C_202A_202E(text, 0);
|
||||
num = ((c == 'I') ? (-2010192573) : (-2010192564));
|
||||
break;
|
||||
IL_0152:
|
||||
stopCondition2 = null;
|
||||
num = -2010192575;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override void WriteJson(JsonWriter writer, StopCondition? value, JsonSerializer serializer)
|
||||
{
|
||||
int num = ((value == null) ? (-588005033) : (-588005040));
|
||||
JObject jObject = default(JObject);
|
||||
QuestCompleteCondition questCompleteCondition = default(QuestCompleteCondition);
|
||||
LevelCondition levelCondition = default(LevelCondition);
|
||||
QuestAcceptCondition questAcceptCondition = default(QuestAcceptCondition);
|
||||
GlobalSequenceCondition globalSequenceCondition = default(GlobalSequenceCondition);
|
||||
GilThresholdCondition gilThresholdCondition = default(GilThresholdCondition);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -588005025;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = -588005040;
|
||||
break;
|
||||
case 11:
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject, 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>(-1722090064), _206B_202A_206F_200D_202E_202A_202B_200B_202D_206A_206B_200B_206A_202A_202C_206C_206C_200B_206E_202D_200D_202C_200F_206C_206F_206B_206A_206E_206C_206A_200C_202E_202E_206B_202A_206A_206D_202D_202D_206F_202E(_200D_206A_206B_206D_206B_202D_202B_206F_206C_200F_202D_200C_202B_202A_200B_206E_206F_200B_206B_206C_206D_200D_200D_206F_206C_206F_200E_200B_200C_202E_206D_206D_200E_202B_202D_202C_200B_200C_206C_202E((object)questCompleteCondition.QuestId)));
|
||||
num = ((!questCompleteCondition.Sequence.HasValue) ? (-588005027) : (-588005032));
|
||||
break;
|
||||
case 13:
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject, 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>(-1235586580), _202C_200E_202B_206A_202B_206A_206E_206E_202C_200E_202C_202A_206A_206C_206F_202A_200E_202D_200C_200E_200D_202C_206F_202D_206A_202C_200F_200B_202C_202E_200D_202A_202B_206D_206D_202B_202E_200F_202D_200E_202E(levelCondition.TargetLevel));
|
||||
num = -588005027;
|
||||
break;
|
||||
case 6:
|
||||
questAcceptCondition = value as QuestAcceptCondition;
|
||||
num = ((questAcceptCondition != null) ? (-588005030) : (-588005037));
|
||||
break;
|
||||
case 9:
|
||||
globalSequenceCondition = value as GlobalSequenceCondition;
|
||||
num = ((globalSequenceCondition != null) ? (-588005028) : (-588005026));
|
||||
break;
|
||||
case 5:
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject, 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>(764363779), _206B_202A_206F_200D_202E_202A_202B_200B_202D_206A_206B_200B_206A_202A_202C_206C_206C_200B_206E_202D_200D_202C_200F_206C_206F_206B_206A_206E_206C_206A_200C_202E_202E_206B_202A_206A_206D_202D_202D_206F_202E(_200D_206A_206B_206D_206B_202D_202B_206F_206C_200F_202D_200C_202B_202A_200B_206E_206F_200B_206B_206C_206D_200D_200D_206F_206C_206F_200E_200B_200C_202E_206D_206D_200E_202B_202D_202C_200B_200C_206C_202E((object)questAcceptCondition.QuestId)));
|
||||
num = -588005027;
|
||||
break;
|
||||
case 14:
|
||||
{
|
||||
JObject jObject2 = _202A_202B_202E_206A_202D_200C_206E_200C_202E_200B_206E_206A_206E_206C_206D_206A_206B_200D_206B_202B_202D_202A_202D_202D_206B_206A_202D_202B_206D_202B_206D_202A_202D_202E_202E_200E_202D_200D_202E_206A_202E();
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject2, 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>(-1591043485), _206B_202A_206F_200D_202E_202A_202B_200B_202D_206A_206B_200B_206A_202A_202C_206C_206C_200B_206E_202D_200D_202C_200F_206C_206F_206B_206A_206E_206C_206A_200C_202E_202E_206B_202A_206A_206D_202D_202D_206F_202E(value.Type.ToString()));
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject2, 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>(1945719235), _202C_200E_202B_206A_202B_206A_206E_206E_202C_200E_202C_202A_206A_206C_206F_202A_200E_202D_200C_200E_200D_202C_206F_202D_206A_202C_200F_200B_202C_202E_200D_202A_202B_206D_206D_202B_202E_200F_202D_200E_202E((int)value.Mode));
|
||||
jObject = jObject2;
|
||||
questCompleteCondition = value as QuestCompleteCondition;
|
||||
num = ((questCompleteCondition != null) ? (-588005036) : (-588005031));
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject, 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>(-5124988), _202E_206B_200F_202D_202A_200B_202C_202B_200E_202E_206D_202A_206E_206A_206E_206A_206D_206B_206E_206E_200F_206E_206F_202B_202C_206D_202D_206B_206E_202A_202A_206F_206E_202B_200D_200B_202D_206F_202A_202E_202E(questCompleteCondition.Sequence));
|
||||
num = -588005027;
|
||||
break;
|
||||
case 1:
|
||||
gilThresholdCondition = value as GilThresholdCondition;
|
||||
num = ((gilThresholdCondition != null) ? (-588005035) : (-588005029));
|
||||
break;
|
||||
case 10:
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject, 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>(-51044274), _202C_200E_202B_206A_202B_206A_206E_206E_202C_200E_202C_202A_206A_206C_206F_202A_200E_202D_200C_200E_200D_202C_206F_202D_206A_202C_200F_200B_202C_202E_200D_202A_202B_206D_206D_202B_202E_200F_202D_200E_202E(gilThresholdCondition.MinGil));
|
||||
num = -588005027;
|
||||
break;
|
||||
case 12:
|
||||
levelCondition = value as LevelCondition;
|
||||
num = ((levelCondition != null) ? (-588005038) : (-588005034));
|
||||
break;
|
||||
case 8:
|
||||
_202B_206F_206B_202D_200F_202E_206B_206E_202C_202A_202B_200E_202B_206F_202D_206B_206A_200E_206E_206A_202A_202B_202C_202C_200D_206B_200B_206A_200D_206E_202C_206C_200B_202D_206C_200E_200E_206F_200D_202D_202E(writer);
|
||||
return;
|
||||
case 4:
|
||||
num = -588005027;
|
||||
break;
|
||||
case 2:
|
||||
_200F_206E_200B_206B_200B_200F_200B_200F_206F_206A_206D_200F_206F_202A_202E_202B_202C_202B_206B_200E_200B_206F_202D_200B_206E_206A_206C_200B_200E_202A_202A_200D_202E_206B_200B_206B_200E_206F_200B_200F_202E((JToken)jObject, writer);
|
||||
return;
|
||||
case 3:
|
||||
_202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(jObject, 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>(-512840921), _202C_200E_202B_206A_202B_206A_206E_206E_202C_200E_202C_202A_206A_206C_206F_202A_200E_202D_200C_200E_200D_202C_206F_202D_206A_202C_200F_200B_202C_202E_200D_202A_202B_206D_206D_202B_202E_200F_202D_200E_202E(globalSequenceCondition.TargetSequence));
|
||||
num = -588005027;
|
||||
break;
|
||||
case 15:
|
||||
num = ((!value.IsSession) ? (-588005039) : (-588005033));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static ElementId? DeserializeElementId(JToken? token)
|
||||
{
|
||||
int num = ((token != null) ? (-620565956) : (-620565958));
|
||||
ElementId result = default(ElementId);
|
||||
string text = default(string);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -620565956;
|
||||
int num4 = num2;
|
||||
object obj;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 3:
|
||||
num = -620565958;
|
||||
break;
|
||||
case 2:
|
||||
return null;
|
||||
case 1:
|
||||
return result;
|
||||
case 0:
|
||||
obj = token.Value<string>();
|
||||
goto IL_0069;
|
||||
case 4:
|
||||
num = (_200C_202C_200F_202B_202B_206A_200C_202B_206A_202D_202B_206B_202B_202D_202D_202C_200C_206F_202D_206D_202B_202B_202E_200F_202E_202A_206F_206A_202B_200C_202E_202A_206C_202D_206C_206F_206F_202E_206E_202D_202E(text, ref result) ? (-620565955) : (-620565954));
|
||||
break;
|
||||
case 5:
|
||||
return null;
|
||||
case 6:
|
||||
{
|
||||
obj = null;
|
||||
goto IL_0069;
|
||||
}
|
||||
IL_0069:
|
||||
text = (string)obj;
|
||||
num = ((text != null) ? (-620565960) : (-620565959));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static JObject _206C_200E_206F_200F_202C_202D_200B_200E_200D_200D_200F_202E_206B_206E_202C_206B_206F_200E_206C_202D_200E_202E_206D_206E_202C_202E_206D_200C_206E_202E_206F_200C_202E_206D_206E_202D_206E_202C_206B_200D_202E(JsonReader P_0)
|
||||
{
|
||||
return JObject.Load(P_0);
|
||||
}
|
||||
|
||||
static JToken _200F_202B_202C_206A_206F_200F_206B_202C_200C_202C_200B_202B_200E_206C_200F_200D_200E_206D_202D_206C_206B_200D_200B_202E_200B_200F_202E_202B_206E_206D_206D_202C_202D_206B_206E_206A_200B_206C_206E_202E_202E(JObject P_0, string P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
|
||||
static int _206F_202A_200E_206F_206E_206C_206D_206A_202D_202B_202B_206C_206B_206B_202B_200C_200F_200C_202D_202E_206B_206E_200B_200D_202C_206E_206C_202A_202D_200E_206F_202C_200D_206E_202A_202D_202B_200C_206D_206A_202E(string P_0)
|
||||
{
|
||||
return P_0.Length;
|
||||
}
|
||||
|
||||
static char _206D_206F_202A_202E_202A_200F_206C_202D_202E_200D_200F_206B_206C_206C_200C_202E_200B_202A_202C_206A_202C_200F_200B_206F_206C_206A_200D_200C_206C_200D_206E_200F_206E_206E_202D_206A_206D_200C_202C_202A_202E(string P_0, int P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
|
||||
static bool _206A_206B_206D_206E_206B_202D_200F_202C_200C_202B_206A_200C_206F_202B_206F_206F_200E_200F_202C_206A_200E_202A_200B_202B_202A_206D_206E_200C_200B_206F_200D_206F_202D_202D_200E_200F_200E_202E_200D_206A_202E(string P_0, string P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
|
||||
static void _202B_206F_206B_202D_200F_202E_206B_206E_202C_202A_202B_200E_202B_206F_202D_206B_206A_200E_206E_206A_202A_202B_202C_202C_200D_206B_200B_206A_200D_206E_202C_206C_200B_202D_206C_200E_200E_206F_200D_202D_202E(JsonWriter P_0)
|
||||
{
|
||||
P_0.WriteNull();
|
||||
}
|
||||
|
||||
static JObject _202A_202B_202E_206A_202D_200C_206E_200C_202E_200B_206E_206A_206E_206C_206D_206A_206B_200D_206B_202B_202D_202A_202D_202D_206B_206A_202D_202B_206D_202B_206D_202A_202D_202E_202E_200E_202D_200D_202E_206A_202E()
|
||||
{
|
||||
return new JObject();
|
||||
}
|
||||
|
||||
static JToken _206B_202A_206F_200D_202E_202A_202B_200B_202D_206A_206B_200B_206A_202A_202C_206C_206C_200B_206E_202D_200D_202C_200F_206C_206F_206B_206A_206E_206C_206A_200C_202E_202E_206B_202A_206A_206D_202D_202D_206F_202E(string P_0)
|
||||
{
|
||||
return P_0;
|
||||
}
|
||||
|
||||
static void _202C_200D_202D_206A_200C_200F_206B_202B_206F_200D_200D_200C_202E_200E_206E_206F_202B_202E_200F_202E_202E_200D_202C_202C_206C_206B_202C_202B_206A_200D_206C_206F_202C_202D_206A_206A_206D_200E_202C_202E(JObject P_0, string P_1, JToken P_2)
|
||||
{
|
||||
P_0[P_1] = P_2;
|
||||
}
|
||||
|
||||
static JToken _202C_200E_202B_206A_202B_206A_206E_206E_202C_200E_202C_202A_206A_206C_206F_202A_200E_202D_200C_200E_200D_202C_206F_202D_206A_202C_200F_200B_202C_202E_200D_202A_202B_206D_206D_202B_202E_200F_202D_200E_202E(int P_0)
|
||||
{
|
||||
return P_0;
|
||||
}
|
||||
|
||||
static string _200D_206A_206B_206D_206B_202D_202B_206F_206C_200F_202D_200C_202B_202A_200B_206E_206F_200B_206B_206C_206D_200D_200D_206F_206C_206F_200E_200B_200C_202E_206D_206D_200E_202B_202D_202C_200B_200C_206C_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static JToken _202E_206B_200F_202D_202A_200B_202C_202B_200E_202E_206D_202A_206E_206A_206E_206A_206D_206B_206E_206E_200F_206E_206F_202B_202C_206D_202D_206B_206E_202A_202A_206F_206E_202B_200D_200B_202D_206F_202A_202E_202E(int? P_0)
|
||||
{
|
||||
return P_0;
|
||||
}
|
||||
|
||||
static void _200F_206E_200B_206B_200B_200F_200B_200F_206F_206A_206D_200F_206F_202A_202E_202B_202C_202B_206B_200E_200B_206F_202D_200B_206E_206A_206C_200B_200E_202A_202A_200D_202E_206B_200B_206B_200E_206F_200B_200F_202E(JToken P_0, JsonWriter P_1)
|
||||
{
|
||||
P_0.WriteTo(P_1);
|
||||
}
|
||||
|
||||
static bool _200C_202C_200F_202B_202B_206A_200C_202B_206A_202D_202B_206B_202B_202D_202D_202C_200C_206F_202D_206D_202B_202B_202E_200F_202E_202A_206F_206A_202B_200C_202E_202A_206C_202D_206C_206F_206F_202E_206E_202D_202E(string P_0, ref ElementId P_1)
|
||||
{
|
||||
return ElementId.TryFromString(P_0, out P_1);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal readonly struct StopEvaluationContext
|
||||
{
|
||||
public required int PlayerLevel { get; init; }
|
||||
|
||||
public required ElementId? CurrentQuestId { get; init; }
|
||||
|
||||
public required int CurrentSequence { get; init; }
|
||||
|
||||
public required ElementId? CompletedQuestId { get; init; }
|
||||
|
||||
public required ElementId? AcceptedQuestId { get; init; }
|
||||
|
||||
public required int Gil { get; init; }
|
||||
|
||||
public required int FreeInventorySlots { get; init; }
|
||||
|
||||
public required TimeSpan ElapsedSinceStart { get; init; }
|
||||
|
||||
public required int QuestsCompletedThisSession { get; init; }
|
||||
|
||||
public required EInteractionType? UpcomingInteractionType { get; init; }
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Questionable.Controller.Conditions;
|
||||
|
||||
internal sealed class TimePlayedCondition : StopCondition
|
||||
{
|
||||
public required int Minutes { get; set; }
|
||||
|
||||
public override bool IsSession => true;
|
||||
|
||||
public override EStopConditionType Type => EStopConditionType.TimePlayed;
|
||||
|
||||
public override bool Evaluate(StopEvaluationContext context)
|
||||
{
|
||||
return context.ElapsedSinceStart >= TimeSpan.FromMinutes(Minutes);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public override string GetDescription()
|
||||
{
|
||||
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 1);
|
||||
defaultInterpolatedStringHandler.AppendFormatted(Minutes);
|
||||
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>(-470345411));
|
||||
return defaultInterpolatedStringHandler.ToStringAndClear();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue