示例#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());
        }
示例#2
0
        public static int GetMaxLevel(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();

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

            return(attrib.DamageValue);
        }