add item strings
This commit is contained in:
parent
4b044a3523
commit
22ec96787f
@ -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]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user