经验数据同步,更名逻辑上传
This commit is contained in:
@@ -53,6 +53,14 @@ namespace TcgEngine
|
||||
{
|
||||
return Mathf.FloorToInt(xp / 1000f) + 1;
|
||||
}
|
||||
|
||||
public float GetLevelProgress(int xp)
|
||||
{
|
||||
int currentLeve = GetPlayerLevel(xp);
|
||||
int baseXp = (currentLeve - 1) * 1000;
|
||||
int xpIntoCurrentLevel = xp - baseXp;
|
||||
return (float)xpIntoCurrentLevel / 1000f;
|
||||
}
|
||||
|
||||
public string GetRandomArena()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user