Ejemplo n.º 1
0
        public static bool IsInstant(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();
            var effect = attrib.Effect;

            var et = PotionEffectType.GetById(effect);

            return(et == null || et.IsInstant());
        }
Ejemplo n.º 2
0
        public static int GetMaxLevel(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();

            return(attrib.MaxLevel);
        }
Ejemplo n.º 3
0
        public static int GetDamageValue(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();

            return(attrib.DamageValue);
        }