edit gem/shard display layout

This commit is contained in:
xXVevzZXx 2016-06-03 14:12:55 +02:00
parent 719ac114d8
commit f517954064

View File

@ -362,29 +362,36 @@ public class GameGemManager implements Listener
}
int earnedShards = shards;
double mult = 1;
Rank rank = Manager.GetClients().Get(player).GetRank();
if (rank == rank.ULTRA)
shards *= 1.5;
mult = 1.5;
else if (rank == rank.HERO)
shards *= 2;
mult = 2;
else if (rank == rank.LEGEND)
shards *= 2.5;
mult = 2.5;
else if (rank.has(Rank.TITAN))
shards *= 3;
mult = 3;
shards *= mult;
mult--;
UtilPlayer.message(player, "");
UtilPlayer.message(player, F.elem(C.cAqua + "+" + earnedShards + " Treasure Shards") + " for " + F.elem("Earning " + earnedShards + " Gems"));
if (rank.has(Rank.ULTRA))
UtilPlayer.message(player, F.elem(C.cAqua + "+" + (shards - earnedShards) + " Treasure Shards") + " for " + F.elem(rank.getTag(true, true)) + F.elem(" Rank"));
{
UtilPlayer.message(player, F.elem(C.cAqua + "+" + (shards - earnedShards) + " Treasure Shards") + " for " +
F.elem(rank.getTag(true, true)) + F.elem(" Rank" + C.cAqua + " +" + Math.round((mult*100)) + "%"));
}
//Inform
UtilPlayer.message(player, "");
if (give)
{
UtilPlayer.message(player, F.elem(C.cWhite + "§lYou now have " +
C.cGreen + C.Bold + (Manager.GetDonation().Get(player.getName()).GetGems() + totalGems) + " Gems"));
C.cGreen + C.Bold + (Manager.GetDonation().Get(player.getName()).GetGems() + totalGems) + " Gems") + C.cWhite + " and " +
F.elem(C.cAqua + C.Bold + (Manager.GetDonation().Get(player.getName()).getCoins() + shards) + " Treasure Shards"));
}
else
{