示例#1
0
        public void Repair()
        {
            var price = 15 * Pet.Level.Id;

            Destruction.RevivePet();
            var ownerSession = Pet.GetOwner().GetGameSession();

            if (ownerSession.Player.Information.Premium.Active)
            {
                Packet.Builder.LegacyModule(ownerSession, $"0|A|STD|Repaired P.E.T, repair costs covered by Premium");
            }
            else
            {
                ownerSession.Player.Information.Uridium.Remove(price);
                Packet.Builder.LegacyModule(ownerSession, $"0|A|STD|Repaired P.E.T, -{price} U.");
            }
            Packet.Builder.PetInitializationCommand(ownerSession, Pet);
        }