Skip to content

Commit

Permalink
item/written_book.go: Set max count to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Nov 27, 2024
1 parent 3e1d2b0 commit d6f4064
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/item/written_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ type WrittenBook struct {
Pages []string
}

// MaxCount always returns 16.
func (WrittenBook) MaxCount() int {
return 16
}

// TotalPages returns the total number of pages in the book.
func (w WrittenBook) TotalPages() int {
return len(w.Pages)
Expand Down

0 comments on commit d6f4064

Please sign in to comment.