Skip to content

Commit

Permalink
Post merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Mar 27, 2021
1 parent f9ae079 commit 3b5c3c7
Showing 1 changed file with 12 additions and 2 deletions.
Expand Up @@ -242,15 +242,25 @@ class CalculatorAscMaterialsItemBloc extends Bloc<CalculatorAscMaterialsItemEven

List<CharacterSkill> _getCharacterSkillsToUse(CharacterFileModel character, TranslationCharacterFile translation) {
final skills = <CharacterSkill>[];
for (final e in translation.skills) {
for (var i = 0; i < translation.skills.length; i++) {
final e = translation.skills[i];
final related = character.skills.firstWhereOrNull((el) => el.key == e.key);
if (related == null || related.type == CharacterSkillType.others) {
continue;
}

final enableTuple = _calculatorService.isSkillEnabled(minSkillLevel, maxSkillLevel, minAscensionLevel, maxAscensionLevel);
final enableTuple = _calculatorService.isSkillEnabled(
minSkillLevel,
maxSkillLevel,
minAscensionLevel,
maxAscensionLevel,
minSkillLevel,
maxSkillLevel,
);
final skill = CharacterSkill.skill(
key: e.key,
name: e.title,
position: i,
currentLevel: minSkillLevel,
desiredLevel: maxSkillLevel,
isCurrentDecEnabled: enableTuple.item1,
Expand Down

0 comments on commit 3b5c3c7

Please sign in to comment.