protected override bool PrivateUpdate(ScenarioFrame frame) { bool singedOutfit = false; try { if (Sim.CreatedSim.CurrentOutfitCategory == OutfitCategories.Singed) { singedOutfit = true; } } catch (Exception e) { Common.DebugException(Sim, e); IncStat("Exception"); } if (Sim.CreatedSim != null) { Sim.CreatedSim.BuffManager.RemoveElement(BuffNames.Singed); Sim.CreatedSim.BuffManager.RemoveElement(BuffNames.SingedElectricity); } if (singedOutfit) { ManagerSim.ChangeOutfit(Manager, Sim, OutfitCategories.Everyday); ManagerCareer.PerformStylistHelp(this, frame); } return(true); }
protected override bool PrivateUpdate(ScenarioFrame frame) { bool formalOutfit = false; try { if (Sim.CreatedSim.CurrentOutfitCategory == OutfitCategories.Formalwear) { formalOutfit = true; } } catch (Exception e) { Common.DebugException(Sim, e); IncStat("Exception"); return(false); } if (formalOutfit) { if (Party.IsInvolvedInAnyTypeOfParty(Sim.CreatedSim)) { IncStat("Party"); return(false); } else if (Sim.CreatedSim.CurrentInteraction is ICountsAsWorking) { IncStat("Working"); return(false); } else if (PromSituation.IsHeadedToProm(Sim.CreatedSim)) { IncStat("Heading To Prom"); return(false); } else if (ManagerSituation.HasInteraction(Sim, PromSituation.GoToProm.Singleton)) { IncStat("At Prom"); return(false); } ManagerSim.ChangeOutfit(Manager, Sim, OutfitCategories.Everyday); ManagerCareer.PerformStylistHelp(this, frame); } return(true); }