mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
disabling item pickup autoequip
This commit is contained in:
@@ -179,9 +179,10 @@ class DroppedItem : ActorWithBody {
|
||||
ItemCodex[itemID]!!.effectOnPickup(actor)
|
||||
|
||||
// if actor did not have the same item AND holding nothing, equip it
|
||||
val qs = actor.actorValue.getAsInt(AVKey.__PLAYER_QUICKSLOTSEL)
|
||||
if (!actorHadTheSameItem && qs != null && (actor as Pocketed).inventory.getQuickslotItem(qs) == null) {
|
||||
(actor as Pocketed).inventory.setQuickslotItem(qs, itemID)
|
||||
}
|
||||
// val qs = actor.actorValue.getAsInt(AVKey.__PLAYER_QUICKSLOTSEL)
|
||||
// if (!actorHadTheSameItem && qs != null && (actor as Pocketed).inventory.getQuickslotItem(qs) == null) {
|
||||
// (actor as Pocketed).inventory.setQuickslotItem(qs, itemID)
|
||||
// }
|
||||
// disabled: this behaviour can be annoying sometimes
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user