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
b9ca4a5d
Commit
b9ca4a5d
authored
May 29, 2022
by
ImmuState
Committed by
Melledy
May 30, 2022
Browse files
Make NA/CA energy not scale with ER.
parent
635e342a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/managers/EnergyManager/EnergyManager.java
View file @
b9ca4a5d
...
@@ -286,7 +286,7 @@ public class EnergyManager {
...
@@ -286,7 +286,7 @@ public class EnergyManager {
// If the player wins the roll, we increase the avatar's energy and reset the probability.
// If the player wins the roll, we increase the avatar's energy and reset the probability.
if
(
roll
<
currentProbability
)
{
if
(
roll
<
currentProbability
)
{
avatar
.
addEnergy
(
1.0f
,
PropChangeReason
.
PROP_CHANGE_REASON_ABILITY
,
fals
e
);
avatar
.
addEnergy
(
1.0f
,
PropChangeReason
.
PROP_CHANGE_REASON_ABILITY
,
tru
e
);
this
.
avatarNormalProbabilities
.
put
(
avatar
,
initialNormalProbability
.
get
(
weaponType
));
this
.
avatarNormalProbabilities
.
put
(
avatar
,
initialNormalProbability
.
get
(
weaponType
));
}
}
// Otherwise, we increase the probability for the next hit.
// Otherwise, we increase the probability for the next hit.
...
...
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