adjust amount of gems as win reward

This commit is contained in:
xXVevzZXx 2016-06-11 00:28:30 +02:00 committed by cnr
parent d16f83af00
commit 95649a5f14

View File

@ -1228,8 +1228,13 @@ public class UHC extends TeamGame
if (teamsAlive.size() <= 1)
{
if (teamsAlive.size() > 0)
{
for (Player player : teamsAlive.get(0).GetPlayers(false))
AddGems(player, 8000, "Winning Team", false, false);
{
int gems = Math.round((System.currentTimeMillis() - getPlayerIngameTime(player))/1000);
AddGems(player, gems, "Winning Team", false, false);
}
}
AnnounceEnd(teamsAlive.get(0));
SetState(GameState.End);