This commit is contained in:
Mini-Chiss 2015-08-28 20:31:29 -07:00
parent 5777309d18
commit 88ca205474
2 changed files with 13 additions and 16 deletions

View File

@ -403,7 +403,7 @@ public class Evolution extends SoloGame
}
}
@EventHandler
@EventHandler(priority = EventPriority.MONITOR)
public void onKill(CombatDeathEvent event)
{
event.SetBroadcastType(DeathMessageType.Simple);
@ -790,10 +790,4 @@ public class Evolution extends SoloGame
Scoreboard.Draw();
}
@EventHandler
public void deathMsg(CombatDeathEvent event)
{
event.SetBroadcastType(DeathMessageType.Simple);
}
}

View File

@ -190,13 +190,13 @@ public class GameGemManager implements Listener
//Time Reward
if (TimeReward)
{
long timeOnline = 7380000;
long timeOnline = 7980000;
double hoursOnline = timeOnline/3600000d;
if (hoursOnline > 5)
hoursOnline = 5;
hoursOnline = 5;
total += (int)(earned * (hoursOnline * 0.2));
}
@ -308,19 +308,22 @@ public class GameGemManager implements Listener
//Time Reward
if (TimeReward)
{
long timeOnline = 7380000;
long timeOnline = 7980000;
double hoursOnline = timeOnline/3600000d;
if (hoursOnline > 5)
hoursOnline = 5;
int extraGems = (int)(earnedGems * (hoursOnline * 0.2));;
int extraGems = (int)(earnedGems * (hoursOnline * 0.2));
UtilPlayer.message(player, F.elem(C.cGreen + "+" + extraGems + " Gems") + " for " +
F.elem("Online for " + UtilTime.MakeStr(timeOnline) ));
totalGems += extraGems;
if (extraGems > 0)
{
UtilPlayer.message(player, F.elem(C.cGreen + "+" + extraGems + " Gems") + " for " +
F.elem("Online for " + UtilTime.MakeStr(timeOnline) + C.cGreen + " +" + (int)(hoursOnline * 20) + "%"));
totalGems += extraGems;
}
}
//Double Gem