重命名AddHeat

This commit is contained in:
Light_Quanta 2025-04-21 20:06:00 +08:00
parent d878aa6ec9
commit d7b1afe9ba
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
4 changed files with 6 additions and 6 deletions

View file

@ -575,7 +575,7 @@ public abstract class GunItem extends Item implements CustomRendererItem {
// 添加热量 // 添加热量
data.heat.set(Mth.clamp(data.heat.get() + data.addHeat(), 0, 100)); data.heat.set(Mth.clamp(data.heat.get() + data.heatPerShoot(), 0, 100));
// 过热 // 过热
if (data.heat.get() >= 100 && !data.overHeat.get()) { if (data.heat.get() >= 100 && !data.overHeat.get()) {

View file

@ -70,6 +70,6 @@ public class DefaultGunData {
@SerializedName("ShootDelay") @SerializedName("ShootDelay")
public int shootDelay = 0; public int shootDelay = 0;
@SerializedName("AddHeat") @SerializedName("HeatPerShoot")
public double addHeat = 0; public double heatPerShoot = 0;
} }

View file

@ -283,8 +283,8 @@ public class GunData {
return defaultGunData().shootDelay; return defaultGunData().shootDelay;
} }
public double addHeat() { public double heatPerShoot() {
return defaultGunData().addHeat; return defaultGunData().heatPerShoot;
} }
public enum AmmoConsumeType { public enum AmmoConsumeType {

View file

@ -12,5 +12,5 @@
"FireMode": 2, "FireMode": 2,
"AmmoType": "@RifleAmmo", "AmmoType": "@RifleAmmo",
"ShootDelay": 20, "ShootDelay": 20,
"AddHeat": 0.5 "HeatPerShoot": 0.5
} }