Unverified Commit bab6e684 authored by Melledy's avatar Melledy
Browse files

Clean up adding extra embryo logic in Avatar::recalcStats

parent 45c08c58
...@@ -556,8 +556,8 @@ public class Avatar { ...@@ -556,8 +556,8 @@ public class Avatar {
this.addFightProperty(prop.getProp(), prop.getValue()); this.addFightProperty(prop.getProp(), prop.getValue());
} }
// Add any skill strings from this proud skill // Add any embryos from this proud skill
this.addToExtraAbilityEmbryos(proudSkillData.getOpenConfig(), true); this.addToExtraAbilityEmbryos(proudSkillData.getOpenConfig());
} }
// Constellations // Constellations
...@@ -566,7 +566,7 @@ public class Avatar { ...@@ -566,7 +566,7 @@ public class Avatar {
.filter(Objects::nonNull) .filter(Objects::nonNull)
.map(AvatarTalentData::getOpenConfig) .map(AvatarTalentData::getOpenConfig)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.forEach(openConfig -> this.addToExtraAbilityEmbryos(openConfig, false)); .forEach(this::addToExtraAbilityEmbryos);
// Add any skill strings from this constellation // Add any skill strings from this constellation
// Set % stats // Set % stats
...@@ -600,6 +600,10 @@ public class Avatar { ...@@ -600,6 +600,10 @@ public class Avatar {
} }
} }
} }
public void addToExtraAbilityEmbryos(String openConfig) {
this.addToExtraAbilityEmbryos(openConfig, false);
}
public void addToExtraAbilityEmbryos(String openConfig, boolean forceAdd) { public void addToExtraAbilityEmbryos(String openConfig, boolean forceAdd) {
if (openConfig == null || openConfig.length() == 0) { if (openConfig == null || openConfig.length() == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment