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