重命名AddHeat
This commit is contained in:
parent
d878aa6ec9
commit
d7b1afe9ba
4 changed files with 6 additions and 6 deletions
|
@ -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()) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
"FireMode": 2,
|
"FireMode": 2,
|
||||||
"AmmoType": "@RifleAmmo",
|
"AmmoType": "@RifleAmmo",
|
||||||
"ShootDelay": 20,
|
"ShootDelay": 20,
|
||||||
"AddHeat": 0.5
|
"HeatPerShoot": 0.5
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue