21 lines
351 B
Go
21 lines
351 B
Go
package rule
|
|
|
|
import (
|
|
"blazing/logic/service/common"
|
|
"blazing/modules/player/model"
|
|
)
|
|
|
|
// Rule302 n回合后击败获取奖励
|
|
type Rule302 struct {
|
|
RuleBase
|
|
}
|
|
|
|
func (r *Rule302) Exec(f common.FightI, t *model.FightOverInfo) bool {
|
|
if t.WinnerId == f.Ownerid() { //获胜
|
|
if t.Round >= uint32(r.args[0]) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|