protected override bool Satisfies(Sim a, Sim target, Wardrobe obj, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (!base.Satisfies(a, target, obj, isAutonomous, ref greyedOutTooltipCallback)) { return(false); } return(CommonPregnancy.SatisfiesRisky(a, target, "WardrobeRisky", isAutonomous, true, ref greyedOutTooltipCallback)); }
protected override bool Satisfies(Sim actor, Sim target, ActorTrailer obj, bool isAutonomous, ref GreyedOutTooltipCallback callback) { if (!base.Satisfies(actor, target, obj, isAutonomous, ref callback)) { return(false); } return(CommonPregnancy.SatisfiesRisky(actor, target, "HotTubRisky", isAutonomous, true, ref callback)); }
protected static List <Sim> GetRomanticSims(RabbitHole ths, Sim actor, bool isAutonomous, CommonWoohoo.WoohooStyle style, bool makeout) { List <Sim> list = new List <Sim>(); GreyedOutTooltipCallback greyedOutTooltipCallback = null; foreach (Sim sim in ths.RabbitHoleProxy.ActorsUsingMe) { if (sim == actor) { continue; } if (makeout) { if (!CommonSocials.SatisfiesRomance(actor, sim, "RabbitholeRomance ", isAutonomous, ref greyedOutTooltipCallback)) { continue; } list.Add(sim); } else { switch (style) { case CommonWoohoo.WoohooStyle.Risky: if (!CommonPregnancy.SatisfiesRisky(actor, sim, "RabbitholeRisky", isAutonomous, true, ref greyedOutTooltipCallback)) { continue; } list.Add(sim); break; case CommonWoohoo.WoohooStyle.Safe: if (!CommonWoohoo.SatisfiesWoohoo(actor, sim, "RabbitholeWoohoo", isAutonomous, true, true, ref greyedOutTooltipCallback)) { continue; } list.Add(sim); break; case CommonWoohoo.WoohooStyle.TryForBaby: if (!CommonPregnancy.SatisfiesTryForBaby(actor, sim, "RabbitholeTryForBaby", isAutonomous, true, ref greyedOutTooltipCallback)) { continue; } list.Add(sim); break; } } } return(list); }
private static bool Test(Sim actor, Sim target, ActiveTopic topic, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (!SimWoohoo.CommonTest(actor, target, ref greyedOutTooltipCallback)) { return(false); } ScoringLookup.IncStat("OnTest Risky Try"); return(CommonPregnancy.SatisfiesRisky(actor, target, "OnTest Risky", isAutonomous, false, ref greyedOutTooltipCallback)); }
public virtual bool RomanticSimTest(Sim actor, Sim sim, bool isAutonomous) { GreyedOutTooltipCallback greyedOutTooltipCallback = null; switch (GetStyle(null)) { case CommonWoohoo.WoohooStyle.Risky: return(CommonPregnancy.SatisfiesRisky(actor, sim, "RabbitholeRisky", isAutonomous, true, ref greyedOutTooltipCallback)); case CommonWoohoo.WoohooStyle.TryForBaby: return(CommonPregnancy.SatisfiesTryForBaby(actor, sim, "RabbitholeTryForBaby", isAutonomous, true, ref greyedOutTooltipCallback)); } return(CommonWoohoo.SatisfiesWoohoo(actor, sim, "RabbitholeWoohoo", isAutonomous, true, true, ref greyedOutTooltipCallback)); }
protected override bool Satisfies(Sim a, Sim target, PetHouse obj, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { try { if (!base.Satisfies(a, target, obj, isAutonomous, ref greyedOutTooltipCallback)) { return(false); } return(CommonPregnancy.SatisfiesRisky(a, target, "PetHouseRisky", isAutonomous, true, ref greyedOutTooltipCallback)); } catch (Exception exception) { Common.Exception(a, target, exception); return(false); } }
public override bool Test(Sim a, Sim target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { try { if (!base.Test(a, target, isAutonomous, ref greyedOutTooltipCallback)) { return(false); } return(CommonPregnancy.SatisfiesRisky(a, target, "SaunaRisky", isAutonomous, true, ref greyedOutTooltipCallback)); } catch (Exception exception) { Common.Exception(a, target, exception); } return(false); }
public static bool OnTest(Sim actor, Sim target, ActiveTopic topic, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { try { if (!Jetpack.JetpackTestCommon(actor, target)) { greyedOutTooltipCallback = Common.DebugTooltip("TestCommon Denied"); return(false); } if (actor.SkillManager.GetSkillLevel(SkillNames.Future) < SocialTest.kFutureSkillRequiredJetpackWoohoo) { greyedOutTooltipCallback = Common.DebugTooltip("Skill Denied"); return(false); } SocialJig socialjig = null; if (!Jetpack.CheckSpaceForFlyAroundJig(actor, target, ref socialjig, true, true)) { greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(Localization.LocalizeString("Gameplay/Objects/EP11/Jetpack:NotEnoughSpace", new object[] { target })); return(false); } if (!Woohooer.Settings.mAutonomousJetPack) { greyedOutTooltipCallback = Common.DebugTooltip("Location Denied"); return(false); } return(CommonPregnancy.SatisfiesRisky(actor, target, "JetPackRisky", isAutonomous, true, ref greyedOutTooltipCallback)); } catch (ResetException) { throw; } catch (Exception e) { Common.Exception(actor, target, e); return(false); } }
protected override bool Satisfies(Sim actor, Sim target, ToiletStall obj, bool isAutonomous, ref GreyedOutTooltipCallback callback) { return(base.Satisfies(actor, target, obj, isAutonomous, ref callback) && CommonPregnancy.SatisfiesRisky(actor, target, "ToiletStallRisky", isAutonomous, true, ref callback)); }