22 lines
405 B
Go
22 lines
405 B
Go
package rule
|
|
|
|
import (
|
|
"blazing/logic/service/common"
|
|
"blazing/modules/player/model"
|
|
)
|
|
|
|
// Rule301 n回合内击败获取奖励
|
|
type Rule301 struct {
|
|
RuleBase // 继承基类的所有属性和方法
|
|
}
|
|
|
|
func (r *Rule301) Exec(f common.FightI, t *model.FightOverInfo) bool {
|
|
if t.WinnerId == f.Ownerid() { //获胜
|
|
|
|
if f.GetOverInfo().Round < uint32(r.args[0]) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|