add item strings

This commit is contained in:
Branden J Brown 2024-01-21 00:47:12 -06:00
parent 4b044a3523
commit 22ec96787f
1 changed files with 5 additions and 0 deletions

View File

@ -55,3 +55,8 @@ func (i Item) Apply(g *Game) bool {
panic("shotgun: unknown item") panic("shotgun: unknown item")
} }
} }
func (i Item) String() string {
s := [...]string{"", "🔍", "🚬", "🍺", "👮", "🔪"}
return s[i]
}