Disabled Gem hunter (bugged?)
Disabled chicken morph letting people fly
This commit is contained in:
parent
25b525837f
commit
06bcf5079b
@ -60,6 +60,9 @@ public class MorphChicken extends MorphGadget
|
|||||||
{
|
{
|
||||||
this.RemoveArmor(player);
|
this.RemoveArmor(player);
|
||||||
Manager.getDisguiseManager().undisguise(player);
|
Manager.getDisguiseManager().undisguise(player);
|
||||||
|
|
||||||
|
player.setAllowFlight(false);
|
||||||
|
player.setFlying(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
@ -32,6 +32,7 @@ public class GameGemManager implements Listener
|
|||||||
ArcadeManager Manager;
|
ArcadeManager Manager;
|
||||||
|
|
||||||
boolean DoubleGem = false;
|
boolean DoubleGem = false;
|
||||||
|
boolean GemFinder = false;
|
||||||
|
|
||||||
public GameGemManager(ArcadeManager manager)
|
public GameGemManager(ArcadeManager manager)
|
||||||
{
|
{
|
||||||
@ -165,22 +166,26 @@ public class GameGemManager implements Listener
|
|||||||
total += (int)(earned * game.GetGemBoostAmount());
|
total += (int)(earned * game.GetGemBoostAmount());
|
||||||
|
|
||||||
//Gem Finder
|
//Gem Finder
|
||||||
int gemFinder = Manager.GetAchievement().get(player.getName(), Achievement.GLOBAL_GEM_HUNTER).getLevel();
|
if (GemFinder)
|
||||||
if (gemFinder > 0)
|
|
||||||
{
|
{
|
||||||
total += (int)(earned * (gemFinder * 0.25));
|
int gemFinder = Manager.GetAchievement().get(player.getName(), Achievement.GLOBAL_GEM_HUNTER).getLevel();
|
||||||
|
if (gemFinder > 0)
|
||||||
|
{
|
||||||
|
total += (int)(earned * (gemFinder * 0.25));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (DoubleGem)
|
if (DoubleGem)
|
||||||
total += earned;
|
total += earned;
|
||||||
|
|
||||||
Manager.GetDonation().RewardGems(null, "Earned " + game.GetName(), player.getName(), total);
|
Manager.GetDonation().RewardGems(null, "Earned " + game.GetName(), player.getName(), total);
|
||||||
|
|
||||||
//Stats
|
//Stats
|
||||||
Manager.GetStatsManager().incrementStat(player, "Global.GemsEarned", total);
|
Manager.GetStatsManager().incrementStat(player, "Global.GemsEarned", total);
|
||||||
Manager.GetStatsManager().incrementStat(player, game.GetName()+".GemsEarned", total);
|
Manager.GetStatsManager().incrementStat(player, game.GetName()+".GemsEarned", total);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AnnounceGems(Game game, Player player, HashMap<String,GemData> gems, boolean give)
|
public void AnnounceGems(Game game, Player player, HashMap<String,GemData> gems, boolean give)
|
||||||
{
|
{
|
||||||
if (Manager.IsTournamentServer())
|
if (Manager.IsTournamentServer())
|
||||||
@ -196,7 +201,7 @@ public class GameGemManager implements Listener
|
|||||||
|
|
||||||
UtilPlayer.message(player, "§f§lGems Earned");
|
UtilPlayer.message(player, "§f§lGems Earned");
|
||||||
UtilPlayer.message(player, "");
|
UtilPlayer.message(player, "");
|
||||||
|
|
||||||
int earnedGems = 0;
|
int earnedGems = 0;
|
||||||
|
|
||||||
for (String type : gems.keySet())
|
for (String type : gems.keySet())
|
||||||
@ -230,13 +235,16 @@ public class GameGemManager implements Listener
|
|||||||
|
|
||||||
|
|
||||||
//Gem Finder
|
//Gem Finder
|
||||||
int gemFinder = Manager.GetAchievement().get(player.getName(), Achievement.GLOBAL_GEM_HUNTER).getLevel();
|
if (GemFinder)
|
||||||
if (gemFinder > 0)
|
|
||||||
{
|
{
|
||||||
UtilPlayer.message(player, F.elem(C.cGreen + "+" + ((int)(earnedGems*(gemFinder * 0.25)) + " Gems") + " for " +
|
int gemFinder = Manager.GetAchievement().get(player.getName(), Achievement.GLOBAL_GEM_HUNTER).getLevel();
|
||||||
F.elem("Gem Hunter " + gemFinder + " (+" + (gemFinder*25) + "%)")));
|
if (gemFinder > 0)
|
||||||
|
{
|
||||||
|
UtilPlayer.message(player, F.elem(C.cGreen + "+" + ((int)(earnedGems*(gemFinder * 0.25)) + " Gems") + " for " +
|
||||||
|
F.elem("Gem Hunter " + gemFinder + C.cGreen + " +" + (gemFinder*25) + "%")));
|
||||||
|
|
||||||
totalGems += earnedGems * (gemFinder * 0.25);
|
totalGems += earnedGems * (gemFinder * 0.25);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Double Gem
|
//Double Gem
|
||||||
@ -263,5 +271,5 @@ public class GameGemManager implements Listener
|
|||||||
UtilPlayer.message(player, ArcadeFormat.Line);
|
UtilPlayer.message(player, ArcadeFormat.Line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user