| | |
| | |
|
| | | public class ItemLogicUtility : Singleton<ItemLogicUtility>
|
| | | {
|
| | | private string normalGSFormula;
|
| | | // private string normalGSFormula;
|
| | |
|
| | |
|
| | | private List<int> equipBaseProperties = new List<int>();
|
| | | Dictionary<int, int> equipSkillScores = new Dictionary<int, int>();
|
| | | // private List<int> equipBaseProperties = new List<int>();
|
| | | // Dictionary<int, int> equipSkillScores = new Dictionary<int, int>();
|
| | |
|
| | | PackManager packModel { get { return PackManager.Instance; } }
|
| | | // BuffModel buffDatas { get { return ModelCenter.Instance.GetModel<BuffModel>(); } }
|
| | |
| | |
|
| | | public void Init()
|
| | | {
|
| | | var GSFormulaConfig = FuncConfigConfig.Get("EquipGSFormula");
|
| | | normalGSFormula = GSFormulaConfig.Numerical1;
|
| | | // var GSFormulaConfig = FuncConfigConfig.Get("EquipGSFormula");
|
| | | // normalGSFormula = GSFormulaConfig.Numerical1;
|
| | |
|
| | | var equipSkillScoreJson = JsonMapper.ToObject(GSFormulaConfig.Numerical4);
|
| | | foreach (var key in equipSkillScoreJson.Keys)
|
| | | {
|
| | | var skillId = 0;
|
| | | int.TryParse(key, out skillId);
|
| | | if (skillId != 0)
|
| | | {
|
| | | equipSkillScores[skillId] = (int)equipSkillScoreJson[key];
|
| | | }
|
| | | }
|
| | | // var equipSkillScoreJson = JsonMapper.ToObject(GSFormulaConfig.Numerical4);
|
| | | // foreach (var key in equipSkillScoreJson.Keys)
|
| | | // {
|
| | | // var skillId = 0;
|
| | | // int.TryParse(key, out skillId);
|
| | | // if (skillId != 0)
|
| | | // {
|
| | | // equipSkillScores[skillId] = (int)equipSkillScoreJson[key];
|
| | | // }
|
| | | // }
|
| | |
|
| | | var baseAttr = JsonMapper.ToObject(GSFormulaConfig.Numerical2);
|
| | | if (baseAttr.IsArray)
|
| | | {
|
| | | for (int i = 0; i < baseAttr.Count; i++)
|
| | | {
|
| | | equipBaseProperties.Add(int.Parse(baseAttr[i].ToString()));
|
| | | }
|
| | | }
|
| | | // var baseAttr = JsonMapper.ToObject(GSFormulaConfig.Numerical2);
|
| | | // if (baseAttr.IsArray)
|
| | | // {
|
| | | // for (int i = 0; i < baseAttr.Count; i++)
|
| | | // {
|
| | | // equipBaseProperties.Add(int.Parse(baseAttr[i].ToString()));
|
| | | // }
|
| | | // }
|
| | |
|
| | |
|
| | |
|