23 lines
246 B
Go
23 lines
246 B
Go
package mt
|
|
|
|
import (
|
|
"f5"
|
|
"math/rand"
|
|
"main/mtb"
|
|
)
|
|
|
|
type Reward struct {
|
|
mtb.Reward
|
|
}
|
|
|
|
type RewardTable struct {
|
|
f5.IdMetaTable[Reward]
|
|
}
|
|
|
|
func (this *Reward) RandScore() int32 {
|
|
if this.GetReward1() <0 {
|
|
|
|
}
|
|
return int32(rand.Intn(10))
|
|
}
|