Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
c26bf08d
Commit
c26bf08d
authored
May 25, 2022
by
logictc
Committed by
Melledy
May 25, 2022
Browse files
fix indentation
parent
95bc6558
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/managers/EnergyManager/EnergyManager.java
View file @
c26bf08d
...
@@ -52,7 +52,7 @@ public class EnergyManager {
...
@@ -52,7 +52,7 @@ public class EnergyManager {
public
static
void
initialize
()
{
public
static
void
initialize
()
{
// Read the data we need for monster energy drops.
// Read the data we need for monster energy drops.
try
(
Reader
fileReader
=
new
InputStreamReader
(
DataLoader
.
load
(
"EnergyDrop.json"
)))
{
try
(
Reader
fileReader
=
new
InputStreamReader
(
DataLoader
.
load
(
"EnergyDrop.json"
)))
{
List
<
EnergyDropEntry
>
energyDropList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
EnergyDropEntry
.
class
).
getType
());
List
<
EnergyDropEntry
>
energyDropList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
EnergyDropEntry
.
class
).
getType
());
for
(
EnergyDropEntry
entry
:
energyDropList
)
{
for
(
EnergyDropEntry
entry
:
energyDropList
)
{
energyDropData
.
put
(
entry
.
getDropId
(),
entry
.
getDropList
());
energyDropData
.
put
(
entry
.
getDropId
(),
entry
.
getDropList
());
...
@@ -66,7 +66,7 @@ public class EnergyManager {
...
@@ -66,7 +66,7 @@ public class EnergyManager {
// Read the data for particle generation from skills
// Read the data for particle generation from skills
try
(
Reader
fileReader
=
new
InputStreamReader
(
DataLoader
.
load
(
"SkillParticleGeneration.json"
)))
{
try
(
Reader
fileReader
=
new
InputStreamReader
(
DataLoader
.
load
(
"SkillParticleGeneration.json"
)))
{
List
<
SkillParticleGenerationEntry
>
skillParticleGenerationList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
SkillParticleGenerationEntry
.
class
).
getType
());
List
<
SkillParticleGenerationEntry
>
skillParticleGenerationList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
fileReader
,
TypeToken
.
getParameterized
(
Collection
.
class
,
SkillParticleGenerationEntry
.
class
).
getType
());
for
(
SkillParticleGenerationEntry
entry
:
skillParticleGenerationList
)
{
for
(
SkillParticleGenerationEntry
entry
:
skillParticleGenerationList
)
{
skillParticleGenerationData
.
put
(
entry
.
getAvatarId
(),
entry
.
getAmountList
());
skillParticleGenerationData
.
put
(
entry
.
getAvatarId
(),
entry
.
getAmountList
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment