Misc fixes
This commit is contained in:
@@ -4127,7 +4127,7 @@ namespace Game.AI
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool smart = true;
|
bool smart = true;
|
||||||
if (gameObject.GetAI<SmartAI>() == null)
|
if (gameObject.GetAI<SmartGameObjectAI>() == null)
|
||||||
smart = false;
|
smart = false;
|
||||||
|
|
||||||
if (!smart && !silent)
|
if (!smart && !silent)
|
||||||
|
|||||||
@@ -1644,7 +1644,7 @@ namespace Game
|
|||||||
if (item.GetPos() == dstPos)
|
if (item.GetPos() == dstPos)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (_player.CanEquipItem(ItemConst.NullSlot, out dstPos, item, false) != InventoryResult.Ok)
|
if (_player.CanEquipItem(i, out dstPos, item, true) != InventoryResult.Ok)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
GetPlayer().SwapItem(item.GetPos(), dstPos);
|
GetPlayer().SwapItem(item.GetPos(), dstPos);
|
||||||
|
|||||||
Reference in New Issue
Block a user