mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 20:42:12 +00:00
- Moving stuff around
- Replacing old Familiar stuff
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user