muffin v7.5.6
This commit is contained in:
parent
6266f9e6b7
commit
addf2d530f
619 changed files with 264792 additions and 446022 deletions
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
|
@ -23,26 +24,78 @@ internal sealed class MovementOverrideController
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public (List<Vector3>, bool) AdjustPath(List<Vector3> navPoints)
|
||||
{
|
||||
foreach (IBlacklistedLocation blacklistedLocation in BlacklistedLocations)
|
||||
using (List<IBlacklistedLocation>.Enumerator enumerator = BlacklistedLocations.GetEnumerator())
|
||||
{
|
||||
if (_clientState.TerritoryType != blacklistedLocation.TerritoryId)
|
||||
int num = -1572847159;
|
||||
AlternateLocation alternateLocation = default(AlternateLocation);
|
||||
IBlacklistedLocation current = default(IBlacklistedLocation);
|
||||
int num7 = default(int);
|
||||
while (true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
for (int i = 0; i < navPoints.Count; i++)
|
||||
{
|
||||
AlternateLocation alternateLocation = blacklistedLocation.AdjustPoint(navPoints[i]);
|
||||
if (alternateLocation != null)
|
||||
int num2 = num;
|
||||
int num3 = -1572847156;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
_logger.LogInformation("Fudging navmesh point from {Original} to {Replacement} in blacklisted area", navPoints[i].ToString("G", CultureInfo.InvariantCulture), alternateLocation);
|
||||
navPoints[i] = alternateLocation.Point;
|
||||
if (alternateLocation.RecalculateNavmesh)
|
||||
{
|
||||
return (navPoints.Take(i + 1).ToList(), true);
|
||||
}
|
||||
case 6:
|
||||
alternateLocation = current.AdjustPoint(navPoints[num7]);
|
||||
num = ((!(alternateLocation != null)) ? (-1572847155) : (-1572847163));
|
||||
break;
|
||||
case 5:
|
||||
num = (enumerator.MoveNext() ? (-1572847154) : (-1572847160));
|
||||
break;
|
||||
case 0:
|
||||
num = -1572847159;
|
||||
break;
|
||||
case 8:
|
||||
num7 = 0;
|
||||
num = -1572847153;
|
||||
break;
|
||||
case 2:
|
||||
current = enumerator.Current;
|
||||
num = ((_206E_206C_202E_202C_206B_200E_206A_206D_200F_202E_202B_202C_200B_202D_202B_202C_206E_202C_206E_200B_202E_206E_206C_202E_206D_202E_202E_206B_202E_202A_200C_202A_206F_200D_206A_202D_206D_202E_206A_202D_202E(_clientState) != current.TerritoryId) ? (-1572847159) : (-1572847164));
|
||||
break;
|
||||
case 3:
|
||||
num = ((num7 < navPoints.Count) ? (-1572847158) : (-1572847159));
|
||||
break;
|
||||
case 7:
|
||||
{
|
||||
int num11 = num7;
|
||||
num3 = 1;
|
||||
num4 = num11;
|
||||
return (navPoints.Take((num4 | num3) + (num4 & num3)).ToList(), true);
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
int num8 = num7;
|
||||
num3 = 1;
|
||||
num4 = num8;
|
||||
int num9 = num4 ^ num3;
|
||||
int num10 = num4 & num3;
|
||||
num7 = num9 + (num10 + num10);
|
||||
num = -1572847153;
|
||||
break;
|
||||
}
|
||||
case 9:
|
||||
_200E_202B_200B_200F_206D_202C_202E_200D_200C_200C_202B_202D_200F_202B_206A_200E_202A_206C_200B_202D_202A_200D_206F_200E_200D_200F_200E_202E_202D_200D_200F_200D_202E_202E_202A_202A_206B_202E_206A_200F_202E((ILogger)_logger, 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>(1083711634), new object[2]
|
||||
{
|
||||
navPoints[num7].ToString(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>(2120763774), _202E_206B_200B_206E_202B_206F_202D_206B_202C_202C_202A_200F_206E_206B_202A_200C_200E_202E_200C_206A_202B_202C_200D_200E_202A_202B_202E_200E_200B_200C_202C_206C_206B_202A_202C_200D_206F_202D_206F_206E_202E()),
|
||||
alternateLocation
|
||||
});
|
||||
navPoints[num7] = alternateLocation.Point;
|
||||
num = ((!alternateLocation.RecalculateNavmesh) ? (-1572847155) : (-1572847157));
|
||||
break;
|
||||
case 4:
|
||||
goto end_IL_0017;
|
||||
}
|
||||
continue;
|
||||
end_IL_0017:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (navPoints, false);
|
||||
|
|
@ -87,4 +140,19 @@ internal sealed class MovementOverrideController
|
|||
span[30] = new BlacklistedPoint(1186, new Vector3(287.75f, 51.25f, 172f), new Vector3(288.875f, 50.75f, 166.25f));
|
||||
BlacklistedLocations = list;
|
||||
}
|
||||
|
||||
static uint _206E_206C_202E_202C_206B_200E_206A_206D_200F_202E_202B_202C_200B_202D_202B_202C_206E_202C_206E_200B_202E_206E_206C_202E_206D_202E_202E_206B_202E_202A_200C_202A_206F_200D_206A_202D_206D_202E_206A_202D_202E(IClientState P_0)
|
||||
{
|
||||
return P_0.TerritoryType;
|
||||
}
|
||||
|
||||
static CultureInfo _202E_206B_200B_206E_202B_206F_202D_206B_202C_202C_202A_200F_206E_206B_202A_200C_200E_202E_200C_206A_202B_202C_200D_200E_202A_202B_202E_200E_200B_200C_202C_206C_206B_202A_202C_200D_206F_202D_206F_206E_202E()
|
||||
{
|
||||
return CultureInfo.InvariantCulture;
|
||||
}
|
||||
|
||||
static void _200E_202B_200B_200F_206D_202C_202E_200D_200C_200C_202B_202D_200F_202B_206A_200E_202A_206C_200B_202D_202A_200D_206F_200E_200D_200F_200E_202E_202D_200D_200F_200D_202E_202E_202A_202A_206B_202E_206A_200F_202E(ILogger P_0, string P_1, object[] P_2)
|
||||
{
|
||||
P_0.LogDebug(P_1, P_2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue