public void CleanupActions(Sim s, float x)
        {
            try
            {
                CourtesansPerfume perfume = Courtesan.GetPerfume(base.Target);
                if (perfume != null)
                {
                    perfume.restoreOldRelationship(base.Actor);
                    base.Target.BuffManager.RemoveElement(BuffNames.StrideOfPride);
                    base.Target.BuffManager.RemoveElement(BuffNames.WalkOfShame);
                }
            }
            catch (Exception e)
            {
                Message.Sender.ShowError(base.Target, "Restoring original relationships failed", false, e);
            }

            try
            {
                Lot.MetaAutonomyType venueType = base.Actor.LotCurrent.GetMetaAutonomyType;
                Courtesan.SwitchToProperClothing(base.Actor, venueType);
                Courtesan.SwitchToProperClothing(base.Target, venueType);
            }
            catch (Exception e)
            {
                Message.Sender.ShowError(base.Actor, "Cannot restore clothes", false, e);
            }
        }
Пример #2
0
 public override bool Run()
 {
     try
     {
         Lot.MetaAutonomyType venueType = base.Actor.LotCurrent.GetMetaAutonomyType;
         Courtesan.SwitchToProperClothing(base.Actor, venueType);
     }
     catch (Exception e)
     {
         Message.Sender.ShowError(base.Actor, "Cannot restore clothes", false, e);
     }
     return(true);
 }