protected static bool BaseCustomPurchaseTest(ShoppingPedestal ths, Sim Actor, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (ths.CurrentObject() == null) { return false; } if (Actor.IsSelectable && isAutonomous) { return false; } if (Actor.FamilyFunds < ths.ObjectCost) { string localizedString = ShoppingPedestal.LocalizeString(Actor.IsFemale, "LackTheSimoleans", new object[0x0]); greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(localizedString); return false; } return true; }
protected static bool BaseCustomPurchaseTest(ShoppingPedestal ths, Sim Actor, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { if (ths.CurrentObject() == null) { return(false); } if (Actor.IsSelectable && isAutonomous) { return(false); } if (Actor.FamilyFunds < ths.ObjectCost) { string localizedString = ShoppingPedestal.LocalizeString(Actor.IsFemale, "LackTheSimoleans", new object[0x0]); greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(localizedString); return(false); } return(true); }