Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scripts][almanac][combat-trainer] Reject 0-rank skills from almanac … #6782

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading