summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-03-12 23:44:32 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-03-12 23:44:32 +0100
commit425ddc6ea25e42966efd2737fcb6436f7c3fead5 (patch)
tree3b345e46b8b601603128181d79a72b9f355f973e
parentfbdaa1e08639f8a3cc4a623230c7ee543572b4cb (diff)
...
-rw-r--r--internal/spells/spells.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/spells/spells.go b/internal/spells/spells.go
index 78220c8..c5a76b2 100644
--- a/internal/spells/spells.go
+++ b/internal/spells/spells.go
@@ -56,7 +56,7 @@ func Pick() string {
return spells[n]
}
-type SpellBook struct {
+type Book struct {
Spells []Spell
}
@@ -65,7 +65,7 @@ type Spell struct {
Level int
}
-func (m *SpellBook) Add(title string) {
+func (m *Book) Add(title string) {
for i, v := range m.Spells {
if v.Title == title {
v.Level++