1
0
Fork 0
forked from aly/qstbak

muffin v7.5.6

This commit is contained in:
alydev 2026-08-17 20:27:25 +10:00
parent 6266f9e6b7
commit addf2d530f
619 changed files with 264792 additions and 446022 deletions

View file

@ -1,9 +1,10 @@
using System.Collections.Generic;
using System.Numerics;
using System.Text.Json.Serialization;
using Questionable.Model.Common;
using Questionable.Model.Common.Converter;
using Questionable.Model.Converter;
using Questionable.Model.Questing.Converter;
using SmartNav.Model;
using SmartNav.Model.Converter;
namespace Questionable.Model.Questing;
@ -46,6 +47,10 @@ public sealed class QuestStep
public bool? Mount { get; set; }
public bool MountRequired { get; set; }
public bool DismountRequired { get; set; }
public bool? Fly { get; set; }
public bool? Land { get; set; }
@ -65,10 +70,6 @@ public sealed class QuestStep
[JsonConverter(typeof(AethernetShardConverter))]
public EAetheryteLocation? AethernetShard { get; set; }
public EAetheryteLocation? AetheryteShortcut { get; set; }
public AethernetShortcut? AethernetShortcut { get; set; }
public uint? AetherCurrentId { get; set; }
public uint? ItemId { get; set; }
@ -99,6 +100,8 @@ public sealed class QuestStep
public List<FateActionTarget> FateActionTargets { get; set; } = new List<FateActionTarget>();
public ushort? CriticalEncounterId { get; set; }
public CombatItemUse? CombatItemUse { get; set; }
public float? CombatDelaySecondsAtStart { get; set; }
@ -156,32 +159,46 @@ public sealed class QuestStep
public float CalculateActualStopDistance()
{
float? stopDistance = StopDistance;
if (stopDistance.HasValue)
int num = ((!stopDistance.HasValue) ? (-455732266) : (-455732271));
float result = default(float);
EInteractionType interactionType = default(EInteractionType);
while (true)
{
return stopDistance.GetValueOrDefault();
int num2 = num;
int num3 = -455732267;
int num4 = num2;
switch ((num4 | num3) - (num4 & num3))
{
case 2:
result = 10f;
num = -455732268;
break;
case 4:
return stopDistance.GetValueOrDefault();
case 8:
num = (((uint)(interactionType - 4) <= 1u) ? (-455732265) : (-455732272));
break;
case 5:
num = -455732270;
break;
case 3:
interactionType = InteractionType;
num = ((interactionType == EInteractionType.WalkTo) ? (-455732269) : (-455732259));
break;
case 0:
num = -455732271;
break;
case 7:
result = 3f;
num = -455732268;
break;
case 6:
result = 0.25f;
num = -455732268;
break;
case 1:
return result;
}
}
switch (InteractionType)
{
case EInteractionType.WalkTo:
return 0.25f;
case EInteractionType.AttuneAetheryte:
case EInteractionType.RegisterFreeOrFavoredAetheryte:
return 10f;
default:
return 3f;
}
}
public bool IsTeleportableForPriorityQuests()
{
if (AetheryteShortcut.HasValue)
{
return true;
}
if (InteractionType == EInteractionType.UseItem && ItemId == 30362)
{
return true;
}
return false;
}
}