flixes and tweaks

This commit is contained in:
70000hp 2024-01-13 08:04:43 -05:00
parent 87cf1c80c3
commit c88ee74f7f
3 changed files with 9 additions and 5 deletions

View File

@ -315,7 +315,7 @@ public class EntityGlyphid extends EntityMob {
if(source.isFireDamage()) {
amount *= 0.7F;
} 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))){
amount = 0;
} else if(source == DamageSource.inWall) {

View File

@ -60,7 +60,7 @@ public class EntityGlyphidBlaster extends EntityGlyphidBombardier {
@Override
public float getBombDamage() {
return 10F;
return 15F;
}
@Override

View File

@ -46,7 +46,7 @@ public class EntityGlyphidBombardier extends EntityGlyphid {
if(this.ticksExisted % 60 == 1) {
boolean topAttack = rand.nextBoolean();
boolean topAttack = false;
double velX = e.posX - lastX;
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) {
velX = velY = velZ = 0;
}
if (this.getDistanceToEntity(e) > 20) {
topAttack = true;
}
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);
double len = delta.lengthVector();
@ -91,7 +95,7 @@ public class EntityGlyphidBombardier extends EntityGlyphid {
}
public float getBombDamage() {
return 1.5F;
return 5F;
}
public int getBombCount() {