muffin v7.5.11

This commit is contained in:
alydev 2026-08-17 20:29:32 +10:00
parent addf2d530f
commit 3102923ce2
522 changed files with 41082 additions and 211592 deletions

View file

@ -1,10 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using Dalamud.Plugin.Services;
using Lumina.Excel.Sheets;
using SmartNav.Model;
@ -13,58 +10,6 @@ namespace SmartNav.Data;
public sealed class AetheryteData
{
[Serializable]
[CompilerGenerated]
private sealed class _003C_003Ec
{
public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec();
public static Func<Aetheryte, bool> _003C_003E9__1_4;
public static Func<TerritoryType, bool> _003C_003E9__1_2;
public static Func<TerritoryType, ushort> _003C_003E9__1_3;
internal bool _003C_002Ector_003Eb__1_4(Aetheryte x)
{
return x.RowId != 0;
}
internal bool _003C_002Ector_003Eb__1_2(TerritoryType x)
{
int num = ((x.RowId == 0) ? 1435581385 : 1435581386);
while (true)
{
int num2 = num;
int num3 = 1435581387;
int num4 = num2;
switch ((num4 | num3) - (num4 & num3))
{
case 3:
return x.TerritoryIntendedUse.RowId == 0;
case 1:
num = (_202E_200B_202A_200C_200D_202B_206E_206A_200C_206B_200D_200D_206F_206B_202A_202A_206B_202A_200D_206C_206E_206F_202C_200F_202C_206A_206B_206F_202E_202B_202A_202E_206C_202C_206E_202B_200E_200D_202A_202C_202E(x.Name.ToString()) ? 1435581385 : 1435581384);
break;
case 2:
return false;
case 0:
num = 1435581386;
break;
}
}
}
internal ushort _003C_002Ector_003Eb__1_3(TerritoryType x)
{
return (ushort)x.RowId;
}
static bool _202E_200B_202A_200C_200D_202B_206E_206A_200C_206B_200D_200D_206F_206B_202A_202A_206B_202A_200D_206C_206E_206F_202C_200F_202C_206A_206B_206F_202E_202B_202A_202E_206C_202C_206E_202B_200E_200D_202A_202C_202E(string P_0)
{
return string.IsNullOrEmpty(P_0);
}
}
public ReadOnlyDictionary<EAetheryteLocation, Vector3> Locations { get; } = new Dictionary<EAetheryteLocation, Vector3>
{
{
@ -1026,29 +971,17 @@ public sealed class AetheryteData
{
Dictionary<EAetheryteLocation, ushort> territoryIds = new Dictionary<EAetheryteLocation, ushort>();
Dictionary<EAetheryteLocation, ushort> aethernetGroups = new Dictionary<EAetheryteLocation, ushort>();
IEnumerator<Aetheryte> enumerator = (from x in dataManager.GetExcelSheet<Aetheryte>()
foreach (Aetheryte item in from x in dataManager.GetExcelSheet<Aetheryte>()
where x.RowId != 0
select x).GetEnumerator();
try
select x)
{
while (_206F_200C_200E_200C_200E_200B_206B_200C_200F_200E_206C_200F_202A_202D_206E_200B_202A_202B_206E_206F_200F_202B_206D_202A_200C_202C_206B_206A_206B_200F_200F_200D_200C_206E_202D_206D_206F_200E_202B_200E_202E((IEnumerator)enumerator))
if (item.Territory.RowId != 0)
{
Aetheryte current = enumerator.Current;
if (current.Territory.RowId != 0)
{
territoryIds[(EAetheryteLocation)current.RowId] = (ushort)current.Territory.RowId;
}
if (current.AethernetGroup > 0)
{
aethernetGroups[(EAetheryteLocation)current.RowId] = current.AethernetGroup;
}
territoryIds[(EAetheryteLocation)item.RowId] = (ushort)item.Territory.RowId;
}
}
finally
{
if (enumerator != null)
if (item.AethernetGroup > 0)
{
_202A_200D_206E_202B_206E_202C_200F_202D_200D_206B_206E_206E_206C_200E_202C_200D_202D_206B_206C_202C_202B_206A_202B_206C_206D_202A_202B_200D_202E_206C_206A_206D_202A_206F_206E_206E_200C_202D_206C_206C_202E((IDisposable)enumerator);
aethernetGroups[(EAetheryteLocation)item.RowId] = item.AethernetGroup;
}
}
ConfigureAetheryte(EAetheryteLocation.IshgardFirmament, 886, aethernetGroups[EAetheryteLocation.Ishgard]);
@ -1062,29 +995,8 @@ public sealed class AetheryteData
ConfigureAetheryteWithAutoGroup(EAetheryteLocation.FirmamentEasternRisensongQuarter, 886);
TerritoryIds = territoryIds.AsReadOnly();
AethernetGroups = aethernetGroups.AsReadOnly();
TownTerritoryIds = (from x in dataManager.GetExcelSheet<TerritoryType>().Where(delegate(TerritoryType x)
{
int num = ((x.RowId == 0) ? 1435581385 : 1435581386);
while (true)
{
int num2 = num;
int num3 = 1435581387;
int num4 = num2;
switch ((num4 | num3) - (num4 & num3))
{
case 3:
return x.TerritoryIntendedUse.RowId == 0;
case 1:
num = (_003C_003Ec._202E_200B_202A_200C_200D_202B_206E_206A_200C_206B_200D_200D_206F_206B_202A_202A_206B_202A_200D_206C_206E_206F_202C_200F_202C_206A_206B_206F_202E_202B_202A_202E_206C_202C_206E_202B_200E_200D_202A_202C_202E(x.Name.ToString()) ? 1435581385 : 1435581384);
break;
case 2:
return false;
case 0:
num = 1435581386;
break;
}
}
})
TownTerritoryIds = (from x in dataManager.GetExcelSheet<TerritoryType>()
where x.RowId != 0 && !string.IsNullOrEmpty(x.Name.ToString()) && x.TerritoryIntendedUse.RowId == 0
select (ushort)x.RowId).ToList();
void ConfigureAetheryte(EAetheryteLocation aetheryteLocation, ushort territoryId, ushort aethernetGroup)
{
@ -1099,93 +1011,41 @@ public sealed class AetheryteData
public float CalculateDistance(Vector3 fromPosition, uint fromTerritoryType, EAetheryteLocation to)
{
ushort value;
int num = ((!TerritoryIds.TryGetValue(to, out value)) ? (-1407509287) : (-1407509284));
Vector3 value2 = default(Vector3);
while (true)
if (!TerritoryIds.TryGetValue(to, out var value) || fromTerritoryType != value)
{
int num2 = num;
int num3 = -1407509283;
int num4 = num2;
int num5 = num4 + num3;
int num6 = num4 & num3;
switch (num5 - (num6 + num6))
{
case 5:
num = -1407509284;
break;
case 0:
return float.MaxValue;
case 2:
num = (Locations.TryGetValue(to, out value2) ? (-1407509282) : (-1407509283));
break;
case 1:
num = ((fromTerritoryType == value) ? (-1407509281) : (-1407509287));
break;
case 4:
return float.MaxValue;
case 3:
return (fromPosition - value2).Length();
}
return float.MaxValue;
}
if (!Locations.TryGetValue(to, out var value2))
{
return float.MaxValue;
}
return (fromPosition - value2).Length();
}
public float CalculateAirshipLandingDistance(Vector3 fromPosition, uint fromTerritoryType, EAetheryteLocation to)
{
ushort value;
int num = ((!TerritoryIds.TryGetValue(to, out value)) ? 1034304709 : 1034304710);
Vector3 value2 = default(Vector3);
while (true)
if (!TerritoryIds.TryGetValue(to, out var value) || fromTerritoryType != value)
{
int num2 = num;
int num3 = 1034304708;
int num4 = num2;
switch ((num4 | num3) - (num4 & num3))
{
case 1:
return float.MaxValue;
case 5:
return float.MaxValue;
case 3:
num = 1034304710;
break;
case 2:
num = ((fromTerritoryType == value) ? 1034304708 : 1034304709);
break;
case 0:
num = (AirshipLandingLocations.TryGetValue(to, out value2) ? 1034304704 : 1034304705);
break;
case 4:
return (fromPosition - value2).Length();
}
return float.MaxValue;
}
if (!AirshipLandingLocations.TryGetValue(to, out var value2))
{
return float.MaxValue;
}
return (fromPosition - value2).Length();
}
public bool IsCityAetheryte(EAetheryteLocation aetheryte)
{
int num = ((aetheryte != EAetheryteLocation.IshgardFirmament) ? 819559610 : 819559608);
ushort value = default(ushort);
while (true)
if (aetheryte == EAetheryteLocation.IshgardFirmament)
{
int num2 = num;
int num3 = 819559609;
int num4 = num2;
switch ((num4 | num3) - (num4 & num3))
{
case 4:
num = 819559608;
break;
case 1:
return true;
case 2:
return TownTerritoryIds.Contains(value);
case 0:
return false;
case 3:
num = ((!TerritoryIds.TryGetValue(aetheryte, out value)) ? 819559609 : 819559611);
break;
}
return true;
}
if (TerritoryIds.TryGetValue(aetheryte, out var value))
{
return TownTerritoryIds.Contains(value);
}
return false;
}
public bool IsAirshipLanding(EAetheryteLocation aetheryte)
@ -1197,51 +1057,11 @@ public sealed class AetheryteData
{
ushort value;
bool flag = TerritoryIds.TryGetValue(aetheryte, out value);
int num = ((!flag) ? 1444610048 : 1444610051);
bool flag2 = default(bool);
while (true)
if (flag)
{
int num2 = num;
int num3 = 1444610054;
int num4 = num2;
int num5 = num4 + num3;
int num6 = num4 & num3;
switch (num5 - (num6 + num6))
{
case 0:
num = ((value != 388) ? 1444610050 : 1444610055);
break;
case 4:
flag2 = false;
num = 1444610053;
break;
case 3:
flag = flag2;
num = 1444610048;
break;
case 6:
return flag;
case 5:
num = ((value == 144) ? 1444610055 : 1444610054);
break;
case 2:
num = 1444610051;
break;
case 1:
flag2 = true;
num = 1444610053;
break;
}
bool flag2 = ((value == 144 || value == 388) ? true : false);
flag = flag2;
}
}
static bool _206F_200C_200E_200C_200E_200B_206B_200C_200F_200E_206C_200F_202A_202D_206E_200B_202A_202B_206E_206F_200F_202B_206D_202A_200C_202C_206B_206A_206B_200F_200F_200D_200C_206E_202D_206D_206F_200E_202B_200E_202E(IEnumerator P_0)
{
return P_0.MoveNext();
}
static void _202A_200D_206E_202B_206E_202C_200F_202D_200D_206B_206E_206E_206C_200E_202C_200D_202D_206B_206C_202C_202B_206A_202B_206C_206D_202A_202B_200D_202E_206C_206A_206D_202A_206F_206E_206E_200C_202D_206C_206C_202E(IDisposable P_0)
{
P_0.Dispose();
return flag;
}
}