Skip to content

Commit

Permalink
Ignore items in protected slots (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
artosimonyan authored Dec 24, 2024
1 parent 4ecbb0e commit 85f88cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/action/stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", ""
Expand Down

0 comments on commit 85f88cb

Please sign in to comment.