Reduce the amount of particles generated by the changeling feed ability

This commit is contained in:
Sollace 2021-01-27 17:16:31 +02:00
parent 1222bd6831
commit 0bde55a0fb

View file

@ -159,6 +159,8 @@ public class ChangelingFeedAbility implements Ability<Hit> {
@Override @Override
public void postApply(Pony player, AbilitySlot slot) { public void postApply(Pony player, AbilitySlot slot) {
player.spawnParticles(ParticleTypes.HEART, 1); if (player.getWorld().random.nextInt(10) == 0) {
player.spawnParticles(ParticleTypes.HEART, 1);
}
} }
} }