23 lines
264 B
Go
23 lines
264 B
Go
|
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
|
||
|
}
|
||
|
}
|