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
bab6e684
Unverified
Commit
bab6e684
authored
Aug 31, 2022
by
Melledy
Browse files
Clean up adding extra embryo logic in Avatar::recalcStats
parent
45c08c58
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/avatar/Avatar.java
View file @
bab6e684
...
...
@@ -556,8 +556,8 @@ public class Avatar {
this
.
addFightProperty
(
prop
.
getProp
(),
prop
.
getValue
());
}
// Add any
skill string
s from this proud skill
this
.
addToExtraAbilityEmbryos
(
proudSkillData
.
getOpenConfig
()
,
true
);
// Add any
embryo
s from this proud skill
this
.
addToExtraAbilityEmbryos
(
proudSkillData
.
getOpenConfig
());
}
// Constellations
...
...
@@ -566,7 +566,7 @@ public class Avatar {
.
filter
(
Objects:
:
nonNull
)
.
map
(
AvatarTalentData:
:
getOpenConfig
)
.
filter
(
Objects:
:
nonNull
)
.
forEach
(
openConfig
->
this
.
addToExtraAbilityEmbryos
(
openConfig
,
false
)
);
.
forEach
(
this
::
addToExtraAbilityEmbryos
);
// Add any skill strings from this constellation
// Set % stats
...
...
@@ -600,6 +600,10 @@ public class Avatar {
}
}
}
public
void
addToExtraAbilityEmbryos
(
String
openConfig
)
{
this
.
addToExtraAbilityEmbryos
(
openConfig
,
false
);
}
public
void
addToExtraAbilityEmbryos
(
String
openConfig
,
boolean
forceAdd
)
{
if
(
openConfig
==
null
||
openConfig
.
length
()
==
0
)
{
...
...
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