コード例 #1
0
        public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight)
        {
            if (item == Trade.From.VirtualCheck || item == Trade.To.VirtualCheck)
            {
                return(true);
            }

            Mobile to = Trade.From.Container != this ? Trade.From.Mobile : Trade.To.Mobile;

            return(m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight));
        }
コード例 #2
0
        public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight)
        {
            Mobile to;

            if (this.Trade.From.Container != this)
                to = this.Trade.From.Mobile;
            else
                to = this.Trade.To.Mobile;

            return m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight);
        }
コード例 #3
0
ファイル: SecureTradeContainer.cs プロジェクト: rokann/JustUO
		public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight)
		{
			if (item == Trade.From.VirtualCheck || item == Trade.To.VirtualCheck)
			{
				return true;
			}

			var to = Trade.From.Container != this ? Trade.From.Mobile : Trade.To.Mobile;

			return m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight);
		}
コード例 #4
0
        public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight)
        {
            Mobile to;

            if (this.Trade.From.Container != this)
            {
                to = this.Trade.From.Mobile;
            }
            else
            {
                to = this.Trade.To.Mobile;
            }

            return(m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight));
        }