public bool TestUse(AllInOneBathroom obj) { if (!TestRepaired(obj)) { return(false); } return(obj.UseCount == 0 && obj.InWorld); }
protected override bool Satisfies(Sim a, Sim target, AllInOneBathroom obj, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (!base.Satisfies(a, target, obj, isAutonomous, ref greyedOutTooltipCallback)) { return(false); } return(CommonPregnancy.SatisfiesTryForBaby(a, target, "AllInOneBathroomTryForBaby", isAutonomous, true, ref greyedOutTooltipCallback)); }
protected override bool Satisfies(Sim actor, Sim target, AllInOneBathroom obj, bool isAutonomous, ref GreyedOutTooltipCallback callback) { if (!base.Satisfies(actor, target, obj, isAutonomous, ref callback)) { return(false); } return(CommonWoohoo.SatisfiesWoohoo(actor, target, "AllInOneBathroomWoohoo", isAutonomous, true, true, ref callback)); }
public override bool Test(Sim a, AllInOneBathroom target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { return(target.Repairable.Broken); }
public override string GetInteractionName(Sim actor, AllInOneBathroom target, InteractionObjectPair iop) { return(Common.LocalizeEAString(actor.IsFemale, "Gameplay/Excel/Socializing/Action:NRaasTryForBaby", new object[0])); }
public override string GetInteractionName(Sim actor, AllInOneBathroom target, InteractionObjectPair iop) { return(Common.LocalizeEAString(actor.IsFemale, "Gameplay/Excel/Socializing/Action:NRaasRiskyWooHoo", new object[0]) + Woohooer.Settings.GetRiskyChanceText(actor)); }