refactor(fight/effect): 重构回合开始逻辑,移除PlayerI.GetAction接口并将行动逻辑移至Input.GetAction方法,新增EffectStatus处理战斗状态效果

This commit is contained in:
1
2025-09-23 20:53:47 +00:00
parent fb89a67edb
commit 1ec9d46b23
8 changed files with 36 additions and 15 deletions

View File

@@ -17,3 +17,8 @@ func (u *Input) SetProp(prop, level int) {
//todo 待交互
}
func (u *Input) GetAction(opp *Input) {
//使用1#技能,实际上要按照四个技能权重去使用
u.FightC.UseSkill(u.Player, int32(u.FightC.GetCurrPET(u.Player).Skills[0].ID))
}

View File

@@ -12,7 +12,7 @@ import (
type Effect interface {
OnBattleStart() bool //战斗开始
OnTurnStart(opp *Input) bool //回合开始
OnTurnStart(opp *Input) //回合开始
UseSkill(opp *Input) bool //使用技能 可以取消用技能节点
SkillUseEnd(opp *Input)