- Moving stuff around

- Replacing old Familiar stuff
This commit is contained in:
HellFirePvP committed 2016-01-21 14:52:12 +01:00
1 parent 26d59da7af
commit 8a89a84159
10 files changed
+73 -153

No files matched your search

@@ -166,9 +166,9 @@ public class FamiliarController {
}
if (augment.equals(FamiliarAugment.SHOCK)) {
for (EntityLivingBase entity : toAttack) {
if (RAND.nextInt(3) == 0) {
if (RAND.nextBoolean()) {
Vector3 vel = MiscUtils.getPositionVector(entity).subtract(MiscUtils.getPositionVector(owningPlayer))
.normalize().divide(2).multiply(0.5 * effectLevel);
.normalize().divide(2).multiply(0.8 * effectLevel);
if (vel.getY() < 0) vel.setY(-vel.getY());
entity.motionX += vel.getX();
entity.motionY += vel.getY();