| | |
| | | public const int RUNE_TYPE = 30;
|
| | | public const int RUNE_CREAMTYPE = 31;
|
| | | public const int RUNE_HOLE_COUNT = 9;
|
| | | public Dictionary<int, Dictionary<int, int>> runeBasePropretyDict = new Dictionary<int, Dictionary<int, int>>();
|
| | | public Dictionary<int, Dictionary<int, float>> runeAttrDic = new Dictionary<int, Dictionary<int, float>>();
|
| | | public Dictionary<int, float> runeAttrAdditionDic = new Dictionary<int, float>();
|
| | | public Dictionary<int, float> runeExpDic = new Dictionary<int, float>();
|
| | |
| | | {
|
| | | runeAttrDic.Add(key, ConfigParse.GetDic<int, float>(FuncConfigConfig.m_RuneAttrCfgs[key].Numerical2));
|
| | | runeAttrAdditionDic.Add(key, float.Parse(FuncConfigConfig.m_RuneAttrCfgs[key].Numerical3));
|
| | | runeBasePropretyDict.Add(key, ConfigParse.GetDic<int, int>(FuncConfigConfig.m_RuneAttrCfgs[key].Numerical4));
|
| | | }
|
| | | runeExpDic = ConfigParse.GetDic<int, float>(FuncConfigConfig.GetRuneNeedExpFormula().Numerical2);
|
| | | runeExpAddition = float.Parse(FuncConfigConfig.GetRuneNeedExpFormula().Numerical3);
|
| | |
| | | }
|
| | | int[] runeTypes = _tagRuneModel.AttrType;
|
| | | float params2 = runeAttrDic[type][_tagChinModel.ItemColor];
|
| | | var baseValue = 0;
|
| | | if (runeBasePropretyDict.ContainsKey(type))
|
| | | {
|
| | | var dict = runeBasePropretyDict[type];
|
| | | if (dict.ContainsKey(_tagChinModel.ItemColor))
|
| | | {
|
| | | baseValue = dict[_tagChinModel.ItemColor];
|
| | | }
|
| | | }
|
| | | if (runeTypes.Length > 1)
|
| | | {
|
| | | float coe = runeAttrAdditionDic[type];
|
| | | coe = coe == 0 ? 1 : coe;
|
| | | runeValue = params1 * params2 * coe;
|
| | | runeValue = (params1 * params2 + baseValue) * coe;
|
| | | }
|
| | | else
|
| | | {
|
| | | runeValue = params1 * params2;
|
| | | runeValue = params1 * params2 + baseValue;
|
| | | }
|
| | | }
|
| | | return Mathf.RoundToInt(runeValue);
|