mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-26 22:32:57 +08:00
don't take effect if energyUsage is false
This commit is contained in:
parent
af381dcf42
commit
5811556630
@ -360,8 +360,10 @@ public class Avatar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentEnergy() {
|
public void setCurrentEnergy() {
|
||||||
|
if (GAME_OPTIONS.energyUsage) {
|
||||||
this.setCurrentEnergy(this.currentEnergy);
|
this.setCurrentEnergy(this.currentEnergy);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setCurrentEnergy(float currentEnergy) {
|
public void setCurrentEnergy(float currentEnergy) {
|
||||||
if (this.getSkillDepot() != null && this.getSkillDepot().getEnergySkillData() != null) {
|
if (this.getSkillDepot() != null && this.getSkillDepot().getEnergySkillData() != null) {
|
||||||
@ -378,10 +380,12 @@ public class Avatar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentEnergy(FightProperty curEnergyProp, float currentEnergy) {
|
public void setCurrentEnergy(FightProperty curEnergyProp, float currentEnergy) {
|
||||||
|
if (GAME_OPTIONS.energyUsage) {
|
||||||
this.setFightProperty(curEnergyProp, currentEnergy);
|
this.setFightProperty(curEnergyProp, currentEnergy);
|
||||||
this.currentEnergy = currentEnergy;
|
this.currentEnergy = currentEnergy;
|
||||||
this.save();
|
this.save();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Int2FloatOpenHashMap getFightProperties() {
|
public Int2FloatOpenHashMap getFightProperties() {
|
||||||
return fightProp;
|
return fightProp;
|
||||||
|
Loading…
Reference in New Issue
Block a user