Esempio n. 1
0
 public static void OnPlantPlanted(Mobile from, Map map)
 {
     if (map == Map.Felucca)
     {
         m_FelInstance.OnPlantPlanted(from);
     }
     else if (map == Map.Trammel)
     {
         m_TramInstance.OnPlantPlanted(from);
     }
 }
Esempio n. 2
0
        public override bool PlantSeed(Mobile from, Seed seed)
        {
            if (!MaginciaPlantSystem.CheckDelay(from) || !CheckLocation(from, seed) || !base.PlantSeed(from, seed))
            {
                return(false);
            }

            if (m_Timer != null)
            {
                m_Timer.Stop();
                m_Timer = null;
            }

            Owner   = from;
            Planted = DateTime.UtcNow;

            MaginciaPlantSystem.OnPlantPlanted(from, from.Map);

            return(true);
        }