Wolf changes

This commit is contained in:
Sam 2017-05-01 12:07:35 +01:00
parent 9c9200605a
commit 20c05518f3
2 changed files with 3 additions and 14 deletions

View File

@ -68,7 +68,7 @@ public class KitWolf extends SmashKit
private static final ItemStack[] PLAYER_ARMOR = {
null,
new ItemStack(Material.CHAINMAIL_LEGGINGS),
new ItemStack(Material.IRON_CHESTPLATE),
new ItemStack(Material.CHAINMAIL_CHESTPLATE),
null
};

View File

@ -488,7 +488,7 @@ public class PerkWolf extends SmashPerk
if (count > 0)
{
event.AddMod(damager.getName(), "Ravage", Math.min(2, count), false);
event.AddMod(damager.getName(), "Ravage", Math.min(3, count), false);
// Sound
damager.getWorld().playSound(damager.getLocation(), Sound.WOLF_BARK, (float) (0.5 + count * 0.25), (float) (1 + count * 0.25));
@ -521,17 +521,7 @@ public class PerkWolf extends SmashPerk
continue;
}
Iterator<Long> timeIterator = _repeat.get(uuid).iterator();
while (timeIterator.hasNext())
{
long time = timeIterator.next();
if (UtilTime.elapsed(time, 3000))
{
timeIterator.remove();
}
}
_repeat.get(uuid).removeIf(time -> UtilTime.elapsed(time, 3000));
// Exp
player.setExp(Math.min(0.999f, _repeat.get(uuid).size() / 9f));
@ -539,7 +529,6 @@ public class PerkWolf extends SmashPerk
if(_repeat.get(uuid).isEmpty())
{
playerIterator.remove();
continue;
}
}
}