17 lines
175 B
Go
17 lines
175 B
Go
|
package game
|
||
|
|
||
|
type Item int8
|
||
|
|
||
|
const (
|
||
|
ItemNone Item = iota
|
||
|
ItemLens
|
||
|
ItemCig
|
||
|
ItemBeer
|
||
|
ItemCuff
|
||
|
ItemKnife
|
||
|
)
|
||
|
|
||
|
func NewItem(rng *RNG) Item {
|
||
|
return Item(rng.Intn(5)) + 1
|
||
|
}
|