Exemple #1
0
            public override bool Test(Sim a, PingPongTable target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
            {
                if (target.InUse)
                {
                    if (!target.IsHaunted)
                    {
                        if (target.IsActorUsingMe(a))
                        {
                            return(true);
                        }

                        greyedOutTooltipCallback = delegate
                        {
                            return(PingPongTable.LocalizeString("PingPongTableInUse", new object[0]));
                        };
                    }

                    return(false);
                }

                if (!Woohooer.Settings.mUnlockTeenActions)
                {
                    if (a.SimDescription.TeenOrBelow)
                    {
                        return(false);
                    }
                }

                if (PingPongTable.GetPotentialPlayers(a, target.LotCurrent, !Woohooer.Settings.mUnlockTeenActions, true).Count == 0)
                {
                    greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(Localization.LocalizeString(a.IsFemale, "Gameplay/Objects/Toys/PlayCatchObject:NoOneToPlayWith", new object[0]));
                    return(false);
                }

                return(true);
            }
Exemple #2
0
 public override void AddInteractions(InteractionObjectPair iop, Sim actor, PingPongTable target, List <InteractionObjectPair> results)
 {
     results.Add(new InteractionObjectPair(new Definition(PingPongTable.LocalizeString("PlayJuicePong", new object[0]) + Localization.Ellipsis, false), iop.Target));
 }