telnetroulette/item.go

23 lines
264 B
Go
Raw Normal View History

2024-06-08 13:52:22 +02:00
package main
type Item struct {
kind int
match *Match
}
func (i Item) name() string {
switch i.kind {
case 0:
return "Doubler"
default:
return "None"
}
}
func (i Item) useItem(param1 int) {
switch i.kind {
case 0:
i.match.gun.doubled = true
}
}