예제 #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
		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.");
				}
			}
		}