Skip to content

Commit

Permalink
Merge pull request #6782 from MahtraDR/almanac_exclude_zero_rank
Browse files Browse the repository at this point in the history
[scripts][almanac][combat-trainer] Reject 0-rank skills from almanac …
  • Loading branch information
MahtraDR authored Mar 8, 2024
2 parents 366c180 + a3cb6fc commit 2041f07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion almanac.lic
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Almanac
DRSkill.list
.map { |skill| [skill.name, skill.exp, skill.rank] }
.select { |element| element[1] }
.reject { |_skill, _exp, rank| rank.to_i == 1750 }
.reject { |_skill, _exp, rank| (rank.to_i == 1750 || rank.to_i == 0) }
.reject { |skill, _exp| skill == "Mechanical Lore" }
.select { |skill, exp| list.append [skill, exp] }
skill = list.sort_by(&:last).first[0].sub(/(Lunar|Life|Arcane|Holy|Elemental)\s/, '')
Expand Down
2 changes: 1 addition & 1 deletion combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -2919,7 +2919,7 @@ class TrainerProcess
DRSkill.list
.map { |skill| [skill.name, skill.exp, skill.rank] }
.select { |element| element[1] }
.reject { |_skill, _exp, rank| rank.to_i == 1750 }
.reject { |_skill, _exp, rank| (rank.to_i == 1750 || rank.to_i == 0) }
.reject { |skill, _exp| skill == "Mechanical Lore" }
.select { |skill, exp| list.append [skill, exp] }
skill = list.sort_by(&:last).first[0].sub(/(Lunar|Life|Arcane|Holy|Elemental)\s/, '')
Expand Down

0 comments on commit 2041f07

Please sign in to comment.