From a2278362aa5cb8a8591d52b99c1922194ca751a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Gim=C3=A9nez?= Date: Sun, 5 May 2024 14:48:40 +0900 Subject: [PATCH] get skill description from the ID --- pkg/data/skill/skill.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/data/skill/skill.go b/pkg/data/skill/skill.go index 2659fac..627faaa 100644 --- a/pkg/data/skill/skill.go +++ b/pkg/data/skill/skill.go @@ -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 (