mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 07:37:43 +00:00
Format code [skip actions]
This commit is contained in:
parent
3094facb88
commit
cf574e99cb
@ -1,5 +1,7 @@
|
|||||||
package emu.grasscutter.game.managers.energy;
|
package emu.grasscutter.game.managers.energy;
|
||||||
|
|
||||||
|
import static emu.grasscutter.config.Configuration.GAME_OPTIONS;
|
||||||
|
|
||||||
import com.google.protobuf.InvalidProtocolBufferException;
|
import com.google.protobuf.InvalidProtocolBufferException;
|
||||||
import emu.grasscutter.Grasscutter;
|
import emu.grasscutter.Grasscutter;
|
||||||
import emu.grasscutter.data.*;
|
import emu.grasscutter.data.*;
|
||||||
@ -21,12 +23,9 @@ import emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason;
|
|||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
import it.unimi.dsi.fastutil.ints.*;
|
import it.unimi.dsi.fastutil.ints.*;
|
||||||
import it.unimi.dsi.fastutil.objects.*;
|
import it.unimi.dsi.fastutil.objects.*;
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.ThreadLocalRandom;
|
import java.util.concurrent.ThreadLocalRandom;
|
||||||
|
import lombok.Getter;
|
||||||
import static emu.grasscutter.config.Configuration.GAME_OPTIONS;
|
|
||||||
|
|
||||||
public class EnergyManager extends BasePlayerManager {
|
public class EnergyManager extends BasePlayerManager {
|
||||||
private static final Int2ObjectMap<List<EnergyDropInfo>> energyDropData =
|
private static final Int2ObjectMap<List<EnergyDropInfo>> energyDropData =
|
||||||
@ -398,8 +397,7 @@ public class EnergyManager extends BasePlayerManager {
|
|||||||
var skillDepot = entityAvatar.getAvatar().getSkillDepot();
|
var skillDepot = entityAvatar.getAvatar().getSkillDepot();
|
||||||
if (skillDepot != null) {
|
if (skillDepot != null) {
|
||||||
entityAvatar.addEnergy(
|
entityAvatar.addEnergy(
|
||||||
skillDepot.getEnergySkillData().getCostElemVal(),
|
skillDepot.getEnergySkillData().getCostElemVal(), changeReason, isFlat);
|
||||||
changeReason, isFlat);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user