protected override bool TryExecuteWorker(IncidentParms parms)
 {
     Map map = (Map)parms.target;
       TornadoCopy tornado = TrySpawnOnMap(map);
       if (tornado == null) { return false; }
       SendStandardLetter(parms, tornado);
       return true;
 }
Esempio n. 2
0
        protected override bool TryExecuteWorker(IncidentParms parms)
        {
            TornadoCopy anyTornado = null;
            Map         map        = (Map)parms.target;

            for (int i = 0; i < (int)SharknadoMod.tornadoCount.Value; i++)
            {
                TornadoCopy tornado = TrySpawnOnMap(map);
                if (tornado != null)
                {
                    anyTornado = tornado;
                }
            }
            if (anyTornado != null)
            {
                SendStandardLetter(parms, anyTornado);
                return(true);
            }
            return(false);
        }