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
37e1ffed
Commit
37e1ffed
authored
May 11, 2022
by
gentlespoon
Committed by
Melledy
May 11, 2022
Browse files
Fix incorrect ascension level in givechar command
parent
22cbe748
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/GiveCharCommand.java
View file @
37e1ffed
...
@@ -63,9 +63,10 @@ public final class GiveCharCommand implements CommandHandler {
...
@@ -63,9 +63,10 @@ public final class GiveCharCommand implements CommandHandler {
// Calculate ascension level.
// Calculate ascension level.
int
ascension
;
int
ascension
;
if
(
level
<=
40
)
{
if
(
level
<=
40
)
{
ascension
=
(
int
)
Math
.
ceil
(
level
/
20
f
);
ascension
=
(
int
)
Math
.
ceil
(
level
/
20
f
)
-
1
;
}
else
{
}
else
{
ascension
=
(
int
)
Math
.
ceil
(
level
/
10
f
)
-
3
;
ascension
=
(
int
)
Math
.
ceil
(
level
/
10
f
)
-
3
;
ascension
=
Math
.
min
(
ascension
,
6
);
}
}
Avatar
avatar
=
new
Avatar
(
avatarId
);
Avatar
avatar
=
new
Avatar
(
avatarId
);
...
...
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