반응형
목표 : 난이도에 따른 추가 경험치 획득
난이도를 추가하면서 굳이 노가다를 똑같이 할 필요는 없기에, 획득 경험치를 조정한다
이 그래프에 영향을 미치는 것은 획득 경험치이지만, 상대방의 경공도 이 그래프 지수로 변경하였다.
(최대 6배 > 최대 3.5배, https://siriusstars.tistory.com/2 에서 추가 수정)
※ 해당 수정은 Plus v3.0.2 에 반영됩니다.
<코드 수정> - BattleManager.cs
float difficultyRateHalf = Mathf.Pow((float)GameSettingManager.GetDifficulty(), 2f) * 0.1f + 1f; // 난이도에 따른 경험치 배수
foreach (var role in alive_teammate)
{
int expAdd = battleData.Exp / alive_teammate.Count;
//Debug.Log($"expAdd : {expAdd}, {(int)(difficultyRateHalf * expAdd)}");
expAdd = (int)(difficultyRateHalf * expAdd); // 난이도에 따른 경험치 배수
role.ExpGot += expAdd;
}