From c75289daee5ad7522ef589dd2a8b328472a1b0d5 Mon Sep 17 00:00:00 2001 From: Atsuihsio <842960157@qq.com> Date: Mon, 27 Jan 2025 18:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=88=E5=8F=8C=E5=8F=92=E5=8F=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=95=B0=E5=80=BC=E5=B9=B3=E8=A1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/projectile/SmallCannonShellEntity.java | 2 +- .../atsuishio/superbwarfare/entity/vehicle/Ah6Entity.java | 6 +++--- .../atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java | 2 +- .../superbwarfare/entity/vehicle/Lav150Entity.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/SmallCannonShellEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/SmallCannonShellEntity.java index b3a4a53ee..4a0d029a6 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/SmallCannonShellEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/SmallCannonShellEntity.java @@ -130,7 +130,7 @@ public class SmallCannonShellEntity extends ThrowableItemProjectile implements G explosion.finalizeExplosion(false); ParticleTool.spawnSmallExplosionParticles(this.level(), new Vec3(entity.getX(), - entity.getY() + 0.5 * entity.getBbHeight(), + entity.getEyeY(), entity.getZ())); } diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Ah6Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Ah6Entity.java index 35434f8dc..238e765c3 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Ah6Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Ah6Entity.java @@ -161,10 +161,10 @@ public class Ah6Entity extends ContainerMobileEntity implements GeoEntity, IHeli } if (source.is(ModDamageTypes.CUSTOM_EXPLOSION)) { - amount *= 1.5f; + amount *= 1f; } if (source.is(ModDamageTypes.PROJECTILE_BOOM)) { - amount *= 1.5f; + amount *= 1f; } if (source.is(ModDamageTypes.MINE)) { amount *= 0.5f; @@ -173,7 +173,7 @@ public class Ah6Entity extends ContainerMobileEntity implements GeoEntity, IHeli amount *= 0.5f; } if (source.is(ModDamageTypes.CANNON_FIRE)) { - amount *= 0.6f; + amount *= 0.4f; } if (source.is(ModTags.DamageTypes.PROJECTILE)) { amount *= 0.08f; diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java index f4b228f1f..bbc686409 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java @@ -359,7 +359,7 @@ public class Bmp2Entity extends ContainerMobileEntity implements GeoEntity, ICha VehicleConfig.BMP_2_CANNON_EXPLOSION_RADIUS.get().floatValue()); smallCannonShell.setPos(worldPosition.x - 1.1 * this.getDeltaMovement().x, worldPosition.y, worldPosition.z - 1.1 * this.getDeltaMovement().z); - smallCannonShell.shoot(getBarrelVector(1).x, getBarrelVector(1).y + 0.005f, getBarrelVector(1).z, 15, + smallCannonShell.shoot(getBarrelVector(1).x, getBarrelVector(1).y + 0.005f, getBarrelVector(1).z, 20, 0.25f); this.level().addFreshEntity(smallCannonShell); diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Lav150Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Lav150Entity.java index 22b2fbdcb..fd5600a6f 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Lav150Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Lav150Entity.java @@ -375,7 +375,7 @@ public class Lav150Entity extends ContainerMobileEntity implements GeoEntity, IC VehicleConfig.LAV_150_CANNON_EXPLOSION_RADIUS.get().floatValue()); smallCannonShell.setPos(worldPosition.x - 1.1 * this.getDeltaMovement().x, worldPosition.y, worldPosition.z - 1.1 * this.getDeltaMovement().z); - smallCannonShell.shoot(getBarrelVector(1).x, getBarrelVector(1).y + 0.005f, getBarrelVector(1).z, 15, + smallCannonShell.shoot(getBarrelVector(1).x, getBarrelVector(1).y + 0.005f, getBarrelVector(1).z, 20, 0.25f); this.level().addFreshEntity(smallCannonShell);