get skill description from the ID

This commit is contained in:
Héctor Giménez
2024-05-05 14:48:40 +09:00
parent 54bc4a7e68
commit a2278362aa

View File

@@ -12,7 +12,7 @@ type Description struct {
}
type Skill struct {
ID ID
ID
Name string
LeftSkill bool
RightSkill bool
@@ -24,8 +24,8 @@ type Points struct {
Charges uint
}
func (sk Skill) Desc() Description {
return Desc[sk.ID]
func (sk ID) Desc() Description {
return Desc[sk]
}
const (