Files
bl/logic/service/fight/rule/rule301.go
xinian 9a1a181ecd
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 拆分战斗规则文件为独立模块
2026-03-21 00:34:47 +08:00

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
}