refactor(fight/input): 新增消强处理逻辑并优化GetAction方法格式

This commit is contained in:
1
2025-09-23 22:34:02 +00:00
parent c2fb2fb25f
commit d1e4db92e8

View File

@@ -10,6 +10,11 @@ func (u *Input) Death() {
// 1是添加-1是减少0是清除
func (u *Input) SetProp(prop, level int) {
if level == 0 { //说明是消强
//todo 消强交互
}
//todo 待交互
u.AttackValue.Prop[prop] = u.AttackValue.Prop[prop] + int8(level)
@@ -18,7 +23,7 @@ func (u *Input) SetProp(prop, level int) {
}
func (u *Input) GetAction(opp *Input) {
//使用1#技能,实际上要按照四个技能权重去使用
u.FightC.UseSkill(u.Player, int32(u.FightC.GetCurrPET(u.Player).Skills[0].ID))
//使用1#技能,实际上要按照四个技能权重去使用
u.FightC.UseSkill(u.Player, int32(u.FightC.GetCurrPET(u.Player).Skills[0].ID))
}