muffin v7.5.6
This commit is contained in:
parent
6266f9e6b7
commit
addf2d530f
619 changed files with 264792 additions and 446022 deletions
52
LLib/LLib.Inventory/CofferHelper.cs
Normal file
52
LLib/LLib.Inventory/CofferHelper.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using Lumina.Excel.Sheets;
|
||||
|
||||
namespace LLib.Inventory;
|
||||
|
||||
public static class CofferHelper
|
||||
{
|
||||
public static bool IsGearCoffer(Item item)
|
||||
{
|
||||
ItemAction? valueNullable = item.ItemAction.ValueNullable;
|
||||
int num = (valueNullable.HasValue ? (-77683553) : (-77683554));
|
||||
bool flag = default(bool);
|
||||
uint rowId = default(uint);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -77683553;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 4:
|
||||
return false;
|
||||
case 8:
|
||||
return item.ItemUICategory.RowId == 61;
|
||||
case 7:
|
||||
flag = false;
|
||||
num = -77683558;
|
||||
break;
|
||||
case 5:
|
||||
num = ((!flag) ? (-77683557) : (-77683561));
|
||||
break;
|
||||
case 3:
|
||||
flag = true;
|
||||
num = -77683558;
|
||||
break;
|
||||
case 2:
|
||||
num = -77683554;
|
||||
break;
|
||||
case 6:
|
||||
num = ((rowId != 1085) ? (-77683560) : (-77683556));
|
||||
break;
|
||||
case 1:
|
||||
return false;
|
||||
case 0:
|
||||
rowId = valueNullable.Value.RowId;
|
||||
num = ((rowId == 388) ? (-77683556) : (-77683559));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue