Skip to content

Commit

Permalink
Only handle partial item stack transfer if the pickup is stackable. #441
Browse files Browse the repository at this point in the history
  • Loading branch information
theastropath committed Aug 7, 2023
1 parent fb59cc1 commit 94de488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DXRVanilla/DeusEx/Classes/Player.uc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function bool HandleItemPickup(Actor FrobTarget, optional bool bSearchOnly)
}

pickup = #var(DeusExPrefix)Pickup(FrobTarget);
if (pickup!=None && pickup.Owner!=Self){
if (pickup!=None && pickup.Owner!=Self && pickup.maxCopies>1){
//Pickup failed
ownedPickup=#var(DeusExPrefix)Pickup(FindInventoryType(FrobTarget.Class));
if (ownedPickup!=None && (ownedPickup.NumCopies+pickup.NumCopies)>ownedPickup.maxCopies){
Expand Down

0 comments on commit 94de488

Please sign in to comment.