From c66839465971543cb0a7b674ea661f90fa22cf8a Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Sun, 26 Jan 2025 09:37:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBmp2=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/vehicle/Bmp2Entity.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 040575839..b217e93ea 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Bmp2Entity.java @@ -74,8 +74,8 @@ public class Bmp2Entity extends ContainerMobileEntity implements GeoEntity, ICha public static final EntityDataAccessor TRACK_L = SynchedEntityData.defineId(Bmp2Entity.class, EntityDataSerializers.FLOAT); public static final EntityDataAccessor TRACK_R = SynchedEntityData.defineId(Bmp2Entity.class, EntityDataSerializers.FLOAT); - public static final float MAX_HEALTH = VehicleConfig.LAV_150_HP.get(); - public static final int MAX_ENERGY = VehicleConfig.LAV_150_MAX_ENERGY.get(); + public static final float MAX_HEALTH = VehicleConfig.BMP_2_HP.get(); + public static final int MAX_ENERGY = VehicleConfig.BMP_2_MAX_ENERGY.get(); private final AnimatableInstanceCache cache = GeckoLibUtil.createInstanceCache(this); public float turretYRot; @@ -292,7 +292,7 @@ public class Bmp2Entity extends ContainerMobileEntity implements GeoEntity, ICha public void move(@NotNull MoverType movementType, @NotNull Vec3 movement) { super.move(movementType, movement); if (this.isInWater() && horizontalCollision) { - setDeltaMovement(this.getDeltaMovement().add(0,0.07,0)); + setDeltaMovement(this.getDeltaMovement().add(0, 0.07, 0)); } } @@ -444,11 +444,11 @@ public class Bmp2Entity extends ContainerMobileEntity implements GeoEntity, ICha } if (this.forwardInputDown || this.backInputDown) { - this.extraEnergy(VehicleConfig.SPEEDBOAT_ENERGY_COST.get()); + this.extraEnergy(VehicleConfig.BMP_2_ENERGY_COST.get()); } this.entityData.set(POWER, this.entityData.get(POWER) * (upInputDown ? 0.5f : (rightInputDown || leftInputDown) ? 0.947f : 0.96f)); - this.entityData.set(DELTA_ROT, this.entityData.get(DELTA_ROT) * (float)Math.max(0.76f - 0.1f * this.getDeltaMovement().horizontalDistance(), 0.3)); + this.entityData.set(DELTA_ROT, this.entityData.get(DELTA_ROT) * (float) Math.max(0.76f - 0.1f * this.getDeltaMovement().horizontalDistance(), 0.3)); float angle = (float) calculateAngle(this.getDeltaMovement(), this.getViewVector(1)); double s0;