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