4 if (player.NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
6 if ( ( src.GetItem() && src.GetItem().IsSetForDeletion() ) || ( src.GetParent() && src.GetParent().IsSetForDeletion() ) || ( dst.GetParent() && dst.GetParent().IsSetForDeletion() ) )
11 if (src.GetItem() && !src.GetItem().CanPutIntoHands(player))
16 bool test_dst_occupancy =
true;
40 Debug.
InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp() +
" src1:" + src1.DumpToString() +
" dst1: " + dst1.DumpToString()+
" src2:" + src2.DumpToString() +
" dst2: " + dst2.DumpToString(),
"InventoryJuncture" ,
"n/a",
"TryAcquireTwoInventoryJuncturesFromServer",player.ToString() );
48 EntityAI srcParent1 = src1.GetParent();
49 EntityAI srcParent2 = src2.GetParent();
50 EntityAI dstParent1 = dst1.GetParent();
51 EntityAI dstParent2 = dst2.GetParent();
55 bool need_j2 = player.NeedInventoryJunctureFromServer(srcItem2, srcParent2, dstParent2);
56 if (need_j1 || need_j2)
60 if ( ( srcItem1 && srcItem1.IsSetForDeletion() ) || ( srcParent1 && srcParent1.IsSetForDeletion() ) || ( dstParent1 && dstParent1.IsSetForDeletion() ) )
66 if (srcItem1 && !srcItem1.CanPutIntoHands(player))
85 if ( ( srcItem2 && srcItem2.IsSetForDeletion() ) || ( srcParent2 && srcParent2.IsSetForDeletion() ) || ( dstParent2 && dstParent2.IsSetForDeletion() ) )
89 g_Game.ClearJunctureEx(player, srcItem1);
94 if (srcItem2 && !srcItem2.CanPutIntoHands(player))
104 g_Game.ClearJunctureEx(player, srcItem1);
bool TryAcquireTwoInventoryJuncturesFromServer(notnull Man player, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)