mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
flixes and tweaks
This commit is contained in:
parent
87cf1c80c3
commit
c88ee74f7f
@ -315,7 +315,7 @@ public class EntityGlyphid extends EntityMob {
|
|||||||
if(source.isFireDamage()) {
|
if(source.isFireDamage()) {
|
||||||
amount *= 0.7F;
|
amount *= 0.7F;
|
||||||
} else if(source.getDamageType().equals("player")) {
|
} else if(source.getDamageType().equals("player")) {
|
||||||
amount *= 1.5F;
|
amount *= getScale() < 1.25 ? 1.5 : getScale() < 1.3 ? 0.8 : 0.5;
|
||||||
} else if(source == ModDamageSource.acid || source.equals(new DamageSource(ModDamageSource.s_acid))){
|
} else if(source == ModDamageSource.acid || source.equals(new DamageSource(ModDamageSource.s_acid))){
|
||||||
amount = 0;
|
amount = 0;
|
||||||
} else if(source == DamageSource.inWall) {
|
} else if(source == DamageSource.inWall) {
|
||||||
|
|||||||
@ -60,7 +60,7 @@ public class EntityGlyphidBlaster extends EntityGlyphidBombardier {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getBombDamage() {
|
public float getBombDamage() {
|
||||||
return 10F;
|
return 15F;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -46,7 +46,7 @@ public class EntityGlyphidBombardier extends EntityGlyphid {
|
|||||||
|
|
||||||
if(this.ticksExisted % 60 == 1) {
|
if(this.ticksExisted % 60 == 1) {
|
||||||
|
|
||||||
boolean topAttack = rand.nextBoolean();
|
boolean topAttack = false;
|
||||||
|
|
||||||
double velX = e.posX - lastX;
|
double velX = e.posX - lastX;
|
||||||
double velY = e.posY - lastY;
|
double velY = e.posY - lastY;
|
||||||
@ -55,7 +55,11 @@ public class EntityGlyphidBombardier extends EntityGlyphid {
|
|||||||
if(this.lastTarget != e || Vec3.createVectorHelper(velX, velY, velZ).lengthVector() > 30) {
|
if(this.lastTarget != e || Vec3.createVectorHelper(velX, velY, velZ).lengthVector() > 30) {
|
||||||
velX = velY = velZ = 0;
|
velX = velY = velZ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.getDistanceToEntity(e) > 20) {
|
||||||
|
topAttack = true;
|
||||||
|
}
|
||||||
|
|
||||||
int prediction = topAttack ? 60 : 20;
|
int prediction = topAttack ? 60 : 20;
|
||||||
Vec3 delta = Vec3.createVectorHelper(e.posX - posX + velX * prediction, (e.posY + e.height / 2) - (posY + 1) + velY * prediction, e.posZ - posZ + velZ * prediction);
|
Vec3 delta = Vec3.createVectorHelper(e.posX - posX + velX * prediction, (e.posY + e.height / 2) - (posY + 1) + velY * prediction, e.posZ - posZ + velZ * prediction);
|
||||||
double len = delta.lengthVector();
|
double len = delta.lengthVector();
|
||||||
@ -91,7 +95,7 @@ public class EntityGlyphidBombardier extends EntityGlyphid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public float getBombDamage() {
|
public float getBombDamage() {
|
||||||
return 1.5F;
|
return 5F;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBombCount() {
|
public int getBombCount() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user