This commit is contained in:
aozhiwei 2024-11-11 11:58:45 +08:00
parent de6e75cb58
commit 2e23292eea

View File

@ -15,6 +15,12 @@ type RewardTable struct {
}
func (this *Reward) Init1() {
if this.GetReward1() <= 0 {
panic("Reward.reward_1 config error")
}
if this.GetReward1() > this.GetReward1(){
panic("Reward.reward_2 config error")
}
}
func (this *Reward) RandScore() int32 {