RankManager hero statset default values.

This commit is contained in:
MobiusDevelopment 2020-11-06 22:10:18 +00:00
parent 445848d405
commit 0a527c3be6
4 changed files with 8 additions and 8 deletions

View File

@ -145,8 +145,8 @@ public class RankManager
if (Hero.getInstance().getCompleteHeroes().containsKey(charId))
{
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(charId);
player.set("count", hero.getInt("count"));
player.set("legend_count", hero.getInt("legend_count"));
player.set("count", hero.getInt("count", 0));
player.set("legend_count", hero.getInt("legend_count", 0));
}
else
{

View File

@ -145,8 +145,8 @@ public class RankManager
if (Hero.getInstance().getCompleteHeroes().containsKey(charId))
{
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(charId);
player.set("count", hero.getInt("count"));
player.set("legend_count", hero.getInt("legend_count"));
player.set("count", hero.getInt("count", 0));
player.set("legend_count", hero.getInt("legend_count", 0));
}
else
{

View File

@ -145,8 +145,8 @@ public class RankManager
if (Hero.getInstance().getCompleteHeroes().containsKey(charId))
{
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(charId);
player.set("count", hero.getInt("count"));
player.set("legend_count", hero.getInt("legend_count"));
player.set("count", hero.getInt("count", 0));
player.set("legend_count", hero.getInt("legend_count", 0));
}
else
{

View File

@ -145,8 +145,8 @@ public class RankManager
if (Hero.getInstance().getCompleteHeroes().containsKey(charId))
{
final StatSet hero = Hero.getInstance().getCompleteHeroes().get(charId);
player.set("count", hero.getInt("count"));
player.set("legend_count", hero.getInt("legend_count"));
player.set("count", hero.getInt("count", 0));
player.set("legend_count", hero.getInt("legend_count", 0));
}
else
{