Skip to content

Commit 70d8c8d

Browse files
authored
Merge pull request #648 from erdelf/master
fix of item termination option logic
2 parents 74dc55c + 2eeb654 commit 70d8c8d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

AutoDuty/AutoDuty.cs

+7-6
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,13 @@ internal void LoadPath()
347347
}
348348
}
349349

350-
private unsafe bool StopLoop => Configuration.EnableTerminationActions && (CurrentTerritoryContent == null ||
351-
(Configuration.StopLevel && Player.Level >= Configuration.StopLevelInt) ||
352-
(Configuration.StopNoRestedXP && AgentHUD.Instance()->ExpRestedExperience == 0) ||
353-
(Configuration.StopItemQty && Configuration.StopItemAll
354-
? Configuration.StopItemQtyItemDictionary.All(x => InventoryManager.Instance()->GetInventoryItemCount(x.Key) >= x.Value.Value)
355-
: Configuration.StopItemQtyItemDictionary.Any(x => InventoryManager.Instance()->GetInventoryItemCount(x.Key) >= x.Value.Value)));
350+
private unsafe bool StopLoop => Configuration.EnableTerminationActions &&
351+
(CurrentTerritoryContent == null ||
352+
(Configuration.StopLevel && Player.Level >= Configuration.StopLevelInt) ||
353+
(Configuration.StopNoRestedXP && AgentHUD.Instance()->ExpRestedExperience == 0) ||
354+
(Configuration.StopItemQty && (Configuration.StopItemAll
355+
? Configuration.StopItemQtyItemDictionary.All(x => InventoryManager.Instance()->GetInventoryItemCount(x.Key) >= x.Value.Value)
356+
: Configuration.StopItemQtyItemDictionary.Any(x => InventoryManager.Instance()->GetInventoryItemCount(x.Key) >= x.Value.Value))));
356357

357358
private void TrustLeveling()
358359
{

0 commit comments

Comments
 (0)