Exemplo n.º 1
0
 public PotionOfGloriousFortune(PotionEventType type)
     : base(0xA1E6)
 {
     _Type    = type;
     Hue      = 1195;
     LootType = LootType.Blessed;
 }
Exemplo n.º 2
0
        public static int GetBonus(Mobile m, PotionEventType type)
        {
            if (UnderEffects(m, type))
            {
                return(GetScaler(type) / 100);
            }

            return(1);
        }
Exemplo n.º 3
0
        public static bool UnderEffects(Mobile m, PotionEventType type)
        {
            if (Table != null)
            {
                var list = Table.FirstOrDefault(x => x.Mobile == m && x.Type == type);

                if (list != null)
                {
                    if (list.Date < DateTime.UtcNow)
                    {
                        ExpireBuff(m);

                        return(false);
                    }

                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 4
0
 public static int GetScaler(PotionEventType type)
 {
     return(type == PotionEventType.Khaldun ? 400 : 50);
 }