mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 03:05:34 +00:00
Clean up adding extra embryo logic in Avatar::recalcStats
This commit is contained in:
parent
45c08c5826
commit
bab6e6845e
@ -556,8 +556,8 @@ public class Avatar {
|
||||
this.addFightProperty(prop.getProp(), prop.getValue());
|
||||
}
|
||||
|
||||
// Add any skill strings from this proud skill
|
||||
this.addToExtraAbilityEmbryos(proudSkillData.getOpenConfig(), true);
|
||||
// Add any embryos 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user