feat: 중복체크 로직 수정

This commit is contained in:
aube.lee
2025-03-03 17:36:43 +09:00
parent aae787eb0d
commit f075e2b231
5 changed files with 15 additions and 12 deletions

View File

@@ -105,7 +105,7 @@ namespace TON
else
{
Debug.LogError("닉네임 변경 실패: " + bro.GetMessage());
callback?.Invoke(false, bro.GetCode());
callback?.Invoke(false, bro.GetStatusCode());
}
});
}

View File

@@ -140,8 +140,8 @@ namespace TON
// 공격력과 방어력 업데이트
private void UpdateStats(int currentLevel)
{
player.attackPower *= 1 + (currentLevel - 1) / attackGrowthFactor;
player.defensivePower *= 1 + (currentLevel - 1) / defensiveIntention;
player.attackPower = player.attackPower * (1 + (currentLevel - 1) / attackGrowthFactor);
player.defensivePower = player.defensivePower * (1 + (currentLevel - 1) / defensiveIntention);
}
// 현재 레벨에서 다음 레벨까지 필요한 경험치 계산

View File

@@ -114,6 +114,9 @@ namespace TON
{
Debug.LogError("서버 오류 :: 캐릭터 닉네임 저장 실패");
}
cancelButton.interactable = true;
confirmButton.interactable = true;
}
});
});
@@ -122,7 +125,7 @@ namespace TON
private void DuplicateNickname()
{
nicknameCondition.text = "이미 사용중인 이름입니다.";
nicknameCondition.color = Color.red;
nicknameCondition.color = Color.yellow;
}
public void OnClickCancelButton()