diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java index 898e8a899..eb09725e3 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java @@ -198,13 +198,14 @@ public class DPSGeneratorEntity extends LivingEntity implements GeoEntity { if (getLastDamageSource() != null) { var attacker = getLastDamageSource().getEntity(); if (attacker instanceof Player player) { - player.displayClientMessage(Component.translatable("tips.superbwarfare.dps_generator.dps", FormatTool.format1D(damage * Math.pow(2, getGeneratorLevel()))), true); + player.displayClientMessage(Component.translatable("tips.superbwarfare.dps_generator.dps", + FormatTool.format1D(damage * Math.pow(2, getGeneratorLevel()))), true); } } // 发电 ((SyncedEntityEnergyStorage) entityCap).setMaxReceive(entityCap.getMaxEnergyStored()); - entityCap.receiveEnergy((int) Math.round(128 * Math.max(getGeneratorLevel(), 1) * Math.pow(2, getGeneratorLevel()) * damage), false); + entityCap.receiveEnergy((int) Math.round(128D * Math.max(getGeneratorLevel(), 1) * Math.pow(2, getGeneratorLevel()) * damage), false); ((SyncedEntityEnergyStorage) entityCap).setMaxReceive(0); } diff --git a/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_4.png b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_4.png new file mode 100644 index 000000000..72208127f Binary files /dev/null and b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_4.png differ diff --git a/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_5.png b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_5.png new file mode 100644 index 000000000..9fc1525d7 Binary files /dev/null and b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_5.png differ diff --git a/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_6.png b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_6.png new file mode 100644 index 000000000..36e514852 Binary files /dev/null and b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_6.png differ diff --git a/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_7.png b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_7.png new file mode 100644 index 000000000..8551bf09c Binary files /dev/null and b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_7.png differ