muffin v6.37
This commit is contained in:
parent
f4b807679b
commit
98989e8a70
6 changed files with 7889 additions and 6587 deletions
|
|
@ -247,6 +247,16 @@ internal static class SkipCondition
|
|||
return true;
|
||||
}
|
||||
}
|
||||
item = skipConditions.Item;
|
||||
if (item != null && item.InInventory && step != null && step.ItemId.HasValue)
|
||||
{
|
||||
InventoryManager* ptr2 = InventoryManager.Instance();
|
||||
if (ptr2->GetInventoryItemCount(step.ItemId.Value, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0 || ptr2->GetInventoryItemCount(step.ItemId.Value, isHq: true, checkEquipped: true, checkArmory: true, 0) > 0)
|
||||
{
|
||||
logger.LogInformation("Skipping step, item with itemId {ItemId} already in inventory", step.ItemId.Value);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue