public PotionOfGloriousFortune(PotionEventType type) : base(0xA1E6) { _Type = type; Hue = 1195; LootType = LootType.Blessed; }
public static int GetBonus(Mobile m, PotionEventType type) { if (UnderEffects(m, type)) { return(GetScaler(type) / 100); } return(1); }
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); }
public static int GetScaler(PotionEventType type) { return(type == PotionEventType.Khaldun ? 400 : 50); }