修复Mle1934 AP、HE判断顺序错误

This commit is contained in:
Light_Quanta 2025-03-06 02:21:19 +08:00
parent 9ad01a55a3
commit 6aeed0f470
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -278,7 +278,8 @@ public class Mle1934Entity extends VehicleEntity implements GeoEntity, CannonEnt
int durability;
boolean salvoShoot = consumed == 2;
if (getWeaponType(0) == 0) {
if (getWeaponType(0) == 1) {
// HE
hitDamage = VehicleConfig.MLE1934_HE_DAMAGE.get();
explosionRadius = VehicleConfig.MLE1934_HE_EXPLOSION_RADIUS.get();
explosionDamage = VehicleConfig.MLE1934_HE_EXPLOSION_DAMAGE.get();
@ -286,6 +287,7 @@ public class Mle1934Entity extends VehicleEntity implements GeoEntity, CannonEnt
fireTime = 5;
durability = 1;
} else {
// AP
hitDamage = VehicleConfig.MLE1934_AP_DAMAGE.get();
explosionRadius = VehicleConfig.MLE1934_AP_EXPLOSION_RADIUS.get();
explosionDamage = VehicleConfig.MLE1934_AP_EXPLOSION_DAMAGE.get();