diff --git a/internal/action/stash.go b/internal/action/stash.go index a6936217..6bb427eb 100644 --- a/internal/action/stash.go +++ b/internal/action/stash.go @@ -176,6 +176,11 @@ func shouldStashIt(i data.Item, firstRun bool) (bool, string, string) { ctx := context.Get() ctx.SetLastStep("shouldStashIt") + // Don't stash items in protected slots + if ctx.CharacterCfg.Inventory.InventoryLock[i.Position.Y][i.Position.X] == 0 { + return false, "", "" + } + // Don't stash items from quests during leveling process, it makes things easier to track if _, isLevelingChar := ctx.Char.(context.LevelingCharacter); isLevelingChar && i.IsFromQuest() { return false, "", ""