use data from skills.txt

This commit is contained in:
guiyomu-dev
2025-12-12 14:37:48 +01:00
parent 9128520ea9
commit 141306fe1c
5 changed files with 377 additions and 753 deletions

View File

@@ -654,8 +654,8 @@ func staffModLevelRequirement(itm *data.Item, baseDesc item.Description) int {
checkStats := func(stats stat.Stats) {
for _, s := range stats {
if s.ID == stat.SingleSkill {
if req, ok := skill.SkillLevelReq[skill.ID(s.Layer)]; ok && req > maxReq {
maxReq = req
if skill, ok := skill.Skills[skill.ID(s.Layer)]; ok && skill.ReqLevel > maxReq {
maxReq = skill.ReqLevel
}
}
}