public override string GetInteractionName(Sim actor, WeatherStone target, InteractionObjectPair iop) { return(WeatherStone.LocalizeString(actor.IsFemale, mIsJoin ? "JoinSummonWeatherInteractionName" : "SummonWeatherInteractionName", new object[] { WeatherStone.LocalizeString(actor.IsFemale, mType.ToString(), new object[0]) })); }
public override string GetInteractionName(Sim actor, WeatherStone target, InteractionObjectPair iop) { bool isFemale = actor.IsFemale; return(WeatherStone.LocalizeString(isFemale, "SummonWeatherWithInteractionName", new object[] { WeatherStone.LocalizeString(isFemale, mType.ToString(), new object[0]) })); }
public static bool CommonTest(WeatherStone ths, Sim actor, WeatherStone.SummonWeatherType type, ref GreyedOutTooltipCallback greyedOutTooltipCallback, bool isAutonomous) { if (!isAutonomous) { switch (ths.CurrentWeatherStoneState) { case WeatherStone.WeatherStoneState.ReadyForSummoning: return(true); case WeatherStone.WeatherStoneState.SummoningWeather: if (type == ths.mSummonWeatherType) { return(true); } greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(WeatherStone.LocalizeString(actor.IsFemale, "TryingToSummonTooltip", new object[0])); break; case WeatherStone.WeatherStoneState.AfterSuccessfulSummon: greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(WeatherStone.LocalizeString(actor.IsFemale, "StoneCurrentSummoningWeatherTooltip", new object[0])); break; case WeatherStone.WeatherStoneState.AfterFailureSummon: case WeatherStone.WeatherStoneState.Resting: greyedOutTooltipCallback = InteractionInstance.CreateTooltipCallback(WeatherStone.LocalizeString(actor.IsFemale, "StoneRestingTooltip", new object[0])); break; } } return(false); }