示例#1
0
        public static double RarityByDepth(IRPGObject item, int depth)
        {
            int deltaDepth = Math.Abs(depth - item.GetDepth());

            if (deltaDepth > 5)
            {
                return(0);
            }
            return(item.GetRarity() / Math.Pow(3, deltaDepth));
        }
示例#2
0
 public static string GetArticle(IRPGObject obj, int artCase)
 {
     return(GetArticle(obj.GetGender(), artCase));
 }
示例#3
0
 public static string GetSuffix4th(IRPGObject obj)
 {
     return(GetSuffix4th(obj.GetGender()));
 }