Пример #1
0
        public override void OnSingleClick(Mobile from)
        {
            int    notoriety = BaseBoat.GetBoatNotoriety(from, m_Boat);
            int    labelHue  = Notoriety.Hues[notoriety];
            string shipLabel = m_Boat.Name;

            if (!(m_Boat.ShipName == "" || m_Boat.ShipName == null))
            {
                shipLabel += ": " + m_Boat.ShipName;
            }

            //from.PrivateOverheadMessage(MessageType.Label, labelHue, false, shipLabel, from.NetState);

            LabelTo(from, "Hull: {0} / {1}", m_Boat.HitPoints, m_Boat.MaxHitPoints);
            LabelTo(from, "Sails: {0} / {1}", m_Boat.SailPoints, m_Boat.MaxSailPoints);
            LabelTo(from, "Guns: {0} / {1}", m_Boat.GunPoints, m_Boat.MaxGunPoints);
        }