Beispiel #1
0
        public static Property GetProperty(int type, int star, int lv)
        {
            try
            {
                SoldierPropertyData d = Get(type);
                if (d != null)
                {
                    StarProperty sp = d.props[star - 1];
                    if (sp != null)
                    {
                        return(sp.lvPropertys[lv - 1]);
                    }
                }
            }
            catch (Exception exc)
            {
                ALog.error(exc.Message);
            }

            return(null);
        }