Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
58115566
Commit
58115566
authored
3 years ago
by
logictc
Committed by
Melledy
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
don't take effect if energyUsage is false
parent
af381dcf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/emu/grasscutter/game/avatar/Avatar.java
+8
-4
8 additions, 4 deletions
src/main/java/emu/grasscutter/game/avatar/Avatar.java
with
8 additions
and
4 deletions
src/main/java/emu/grasscutter/game/avatar/Avatar.java
+
8
−
4
View file @
58115566
...
...
@@ -360,7 +360,9 @@ public class Avatar {
}
public
void
setCurrentEnergy
()
{
this
.
setCurrentEnergy
(
this
.
currentEnergy
);
if
(
GAME_OPTIONS
.
energyUsage
)
{
this
.
setCurrentEnergy
(
this
.
currentEnergy
);
}
}
public
void
setCurrentEnergy
(
float
currentEnergy
)
{
...
...
@@ -378,9 +380,11 @@ public class Avatar {
}
public
void
setCurrentEnergy
(
FightProperty
curEnergyProp
,
float
currentEnergy
)
{
this
.
setFightProperty
(
curEnergyProp
,
currentEnergy
);
this
.
currentEnergy
=
currentEnergy
;
this
.
save
();
if
(
GAME_OPTIONS
.
energyUsage
)
{
this
.
setFightProperty
(
curEnergyProp
,
currentEnergy
);
this
.
currentEnergy
=
currentEnergy
;
this
.
save
();
}
}
public
Int2FloatOpenHashMap
getFightProperties
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment