public override void AddInteractions(InteractionObjectPair iop, Sim actor, WeatherStone target, List <InteractionObjectPair> results) { foreach (WeatherStone.SummonWeatherType type in SummonWeatherEx.GetSummonWeatherTypeForSim(actor.SimDescription)) { results.Add(new InteractionObjectPair(new Definition(type), target)); } }
private static bool IsValidCandidate(Sim sim, Sim actor, WeatherStone.SummonWeatherType type) { if (sim.SimDescription.ChildOrBelow) { return(false); } else if (sim == actor) { return(false); } return(SummonWeatherEx.GetSummonWeatherTypeForSim(sim.SimDescription).Contains(type)); }