Added boosts to Fishing chance depending on conditions. Also, the

kraken, now with 100% more sound!
This commit is contained in:
GJ
2013-05-01 21:57:42 -04:00
parent 5c026be0cd
commit e7c749ee3a
5 changed files with 47 additions and 4 deletions

View File

@ -32,6 +32,7 @@ public final class Misc {
public static final float POP_VOLUME = 0.2F;
public static final float BAT_VOLUME = 1.0F;
public static final float BAT_PITCH = 0.6F;
public static final float GHAST_VOLUME = 1.0F;
private Misc() {};
@ -43,6 +44,10 @@ public final class Misc {
return ((getRandom().nextFloat() - getRandom().nextFloat()) * 0.7F + 1.0F) * 2.0F;
}
public static float getGhastPitch() {
return (getRandom().nextFloat() - getRandom().nextFloat()) * 0.2F + 1.0F;
}
public static boolean isNPCEntity(Entity entity) {
return (entity == null || entity.hasMetadata("NPC") || (mcMMO.isCombatTagEnabled() && entity instanceof HumanEntity && ((HumanEntity) entity).getName().contains("PvpLogger")));
}