Use a more sensible method of awarding shards

This commit is contained in:
Sam 2017-05-27 01:01:16 +01:00
parent e3f678d71d
commit 4d4988577e

View File

@ -1,7 +1,5 @@
package nautilus.game.arcade.game.games.alieninvasion;
import mineplex.core.common.currency.GlobalCurrency;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilEnt;
import mineplex.core.common.util.UtilParticle;
import mineplex.core.common.util.UtilParticle.ParticleType;
@ -64,9 +62,8 @@ public class PhaserProjectile implements Listener
return;
}
_manager.GetDonation().rewardCurrencyUntilSuccess(GlobalCurrency.TREASURE_SHARD, damager, "Alien Hit", SHARDS_PER_HIT);
_manager.GetGame().AddGems(damager, SHARDS_PER_HIT, "Aliens Hit", false, true);
damager.playSound(damager.getLocation(), Sound.CHICKEN_EGG_POP, 1, 0.7F);
damager.sendMessage(F.main("Game", "Hit an alien. +" + F.currency(GlobalCurrency.TREASURE_SHARD, SHARDS_PER_HIT) + "."));
}
event.SetCancelled("Blaster Snowball");