Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }