예제 #1
0
        private void DropInvItem(Item aItem, bool aUnequip)
        {
            if (aUnequip)
            {
                GlobalVars.nwrGame.DoPlayerAction(CreatureAction.caItemRemove, aItem.UID);
            }
            Player player = GlobalVars.nwrGame.Player;

            if (!aItem.Equipment || !aItem.InUse)
            {
                if (fMode != IWMODE_GROUND)
                {
                    if (Collocutor.CanBuy(aItem, player))
                    {
                        Collocutor.Buy(aItem, player, fMode == IWMODE_INSHOP);
                    }
                }
                else
                {
                    GlobalVars.nwrGame.DoPlayerAction(CreatureAction.caItemDrop, aItem.UID);
                }
            }
        }