少年修仙传客户端代码仓库
client_linchunjie
2018-12-24 aa2b3cc31d22b8ef058c9a70b78fe6dffd0dc685
5367 【前端】【1.4】聚魂功能开发(消耗取整)
2个文件已修改
8 ■■■■ 已修改文件
System/GatheringSoul/GatheringSoulModel.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Rune/RuneModel.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatheringSoulModel.cs
@@ -1144,7 +1144,7 @@
                        result = (formulaResult * qualityModulus + baseValue) * soulStageModulus;
                    }
                }
                return Mathf.RoundToInt(result);
                return Mathf.FloorToInt(result);
            }
        }
@@ -1211,7 +1211,7 @@
            {
                result = formulaResult * qualityModulus * soulStageModulus;
            }
            return Mathf.RoundToInt(result);
            return Mathf.FloorToInt(result);
        }
        public int GetLevelByCost(int id, ulong cost)
System/Rune/RuneModel.cs
@@ -239,7 +239,7 @@
                    runeValue = params1 * params2 + baseValue;
                }
            }
            return Mathf.RoundToInt(runeValue);
            return Mathf.FloorToInt(runeValue);
        }
        private Dictionary<int, float> runeExpResultDict = new Dictionary<int, float>();
        public int GetRuneNeedExp(int id, int level)
@@ -270,7 +270,7 @@
                    _levelUpExp = _result * runeExpDic[_tagChinModel.ItemColor];
                }
            }
            return Mathf.RoundToInt(_levelUpExp);
            return Mathf.FloorToInt(_levelUpExp);
        }
        public float GetRuneSoulBreakExp(RuneData _rune)