public override bool Test(Sim a, JuiceKeg target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { try { if (target.IsHaunted) { return false; } if (!Woohooer.Settings.mUnlockTeenActions) { if (a.SimDescription.TeenOrBelow) { return false; } } if (target.IsEmpty()) { greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(JuiceKeg.LocalizeString("OutOfJuice", new object[0x0])); return false; } return true; } catch (ResetException) { throw; } catch (Exception e) { Common.Exception(a, target, e); return false; } }
public override bool Test(Sim a, JuiceKeg target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { try { if (target.IsHaunted) { return(false); } if (!Woohooer.Settings.mUnlockTeenActions) { if (a.SimDescription.TeenOrBelow) { return(false); } } if (target.IsEmpty()) { greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(JuiceKeg.LocalizeString("OutOfJuice", new object[0x0])); return(false); } return(true); } catch (ResetException) { throw; } catch (Exception e) { Common.Exception(a, target, e); return(false); } }