fix mapping between skills and skilldescs

This commit is contained in:
guiyomu-dev
2025-09-05 17:47:35 +02:00
parent 08a12b1967
commit c970e6a0fb
5 changed files with 640 additions and 605 deletions

View File

@@ -1,19 +1,22 @@
package skill
type ID int16
type SkillDesc string
type Description struct {
Name string
Page int
Row int
Column int
ListRow int
IconCel int
Name string
SkillDesc SkillDesc
Page int
Row int
Column int
ListRow int
IconCel int
}
type Skill struct {
ID
Name string
SkillDesc SkillDesc
LeftSkill bool
RightSkill bool
}
@@ -24,8 +27,8 @@ type Points struct {
Charges uint
}
func (sk ID) Desc() Description {
return Desc[sk]
func (skillId ID) Desc() Description {
return Desc[Skills[skillId].SkillDesc]
}
const (