コード例 #1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (TownshipWallPlacer.TryPlace(from, BOARDSREQUIRED, INGOTSREQUIRED, this))
            {
                BaseFortificationWall wall = new SpearFortificationWall();
                wall.Place(from, from.Location);
                m_UsesRemaining -= 1;

                if (m_UsesRemaining <= 0)
                {
                    this.Delete();
                    from.SendMessage("Your tool is too damaged to use anymore.");
                }
            }
        }
コード例 #2
0
ファイル: Tools.cs プロジェクト: zerodowned/angelisland
		public override void OnDoubleClick(Mobile from)
		{
			if (TownshipWallPlacer.TryPlace(from, 400, 100, this))
			{
				BaseFortificationWall wall = new SpearFortificationWall();
				wall.Place(from, from.Location);
				m_UsesRemaining -= 1;

				if (m_UsesRemaining <= 0)
				{
					this.Delete();
					from.SendMessage("Your tool is too damaged to use anymore.");
				}
			}
		}