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
af381dcf
Commit
af381dcf
authored
May 24, 2022
by
logictc
Committed by
Melledy
May 24, 2022
Browse files
clear energy on death
parent
e0593554
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/entity/EntityAvatar.java
View file @
af381dcf
...
@@ -108,11 +108,13 @@ public class EntityAvatar extends GameEntity {
...
@@ -108,11 +108,13 @@ public class EntityAvatar extends GameEntity {
public
void
onDeath
(
int
killerId
)
{
public
void
onDeath
(
int
killerId
)
{
this
.
killedType
=
PlayerDieType
.
PLAYER_DIE_KILL_BY_MONSTER
;
this
.
killedType
=
PlayerDieType
.
PLAYER_DIE_KILL_BY_MONSTER
;
this
.
killedBy
=
killerId
;
this
.
killedBy
=
killerId
;
clearEnergy
(
PropChangeReason
.
PROP_CHANGE_STATUE_RECOVER
);
}
}
public
void
onDeath
(
PlayerDieType
dieType
,
int
killerId
)
{
public
void
onDeath
(
PlayerDieType
dieType
,
int
killerId
)
{
this
.
killedType
=
dieType
;
this
.
killedType
=
dieType
;
this
.
killedBy
=
killerId
;
this
.
killedBy
=
killerId
;
clearEnergy
(
PropChangeReason
.
PROP_CHANGE_STATUE_RECOVER
);
}
}
@Override
@Override
...
...
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