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
2238a7c3
Commit
2238a7c3
authored
Apr 24, 2022
by
Yan
Committed by
Melledy
Apr 24, 2022
Browse files
fix setting electro dmg stat
parent
21b3ac10
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/SetStatsCommand.java
View file @
2238a7c3
...
@@ -197,8 +197,8 @@ public final class SetStatsCommand implements CommandHandler {
...
@@ -197,8 +197,8 @@ public final class SetStatsCommand implements CommandHandler {
float
eelec
=
Integer
.
parseInt
(
args
.
get
(
1
));
float
eelec
=
Integer
.
parseInt
(
args
.
get
(
1
));
EntityAvatar
entity
=
sender
.
getTeamManager
().
getCurrentAvatarEntity
();
EntityAvatar
entity
=
sender
.
getTeamManager
().
getCurrentAvatarEntity
();
float
elec
=
eelec
/
10000
;
float
elec
=
eelec
/
10000
;
entity
.
setFightProperty
(
FightProperty
.
FIGHT_PROP_
CRITICAL
_HURT
,
elec
);
entity
.
setFightProperty
(
FightProperty
.
FIGHT_PROP_
ELEC_ADD
_HURT
,
elec
);
entity
.
getWorld
().
broadcastPacket
(
new
PacketEntityFightPropUpdateNotify
(
entity
,
FightProperty
.
FIGHT_PROP_
CRITICAL
_HURT
));
entity
.
getWorld
().
broadcastPacket
(
new
PacketEntityFightPropUpdateNotify
(
entity
,
FightProperty
.
FIGHT_PROP_
ELEC_ADD
_HURT
));
float
igelec
=
elec
*
100
;
float
igelec
=
elec
*
100
;
CommandHandler
.
sendMessage
(
sender
,
"Electro DMG Bonus set to "
+
igelec
+
"%"
);
CommandHandler
.
sendMessage
(
sender
,
"Electro DMG Bonus set to "
+
igelec
+
"%"
);
}
catch
(
NumberFormatException
ignored
)
{
}
catch
(
NumberFormatException
ignored
)
{
...
...
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