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