```feat(fight): 新增特性实现及逻辑优化
1. 实现NewSel114免疫瞬杀特性逻辑 2. 完善NewSel113异常状态伤害锁定逻辑 3. 修复Effect13技能效果添加错误 4. 优化ParasiticSeed状态切换处理 5. 移除无用TODO注释和废弃代码
This commit is contained in:
@@ -98,6 +98,14 @@ type ParasiticSeed struct {
|
||||
Status info.EnumPetStatus // 状态类型枚举
|
||||
}
|
||||
|
||||
func (e *ParasiticSeed) SwitchOut(in *input.Input) bool {
|
||||
|
||||
if in == e.Ctx().Our {
|
||||
e.Alive(false)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// 技能命中前触发寄生效果
|
||||
func (e *ParasiticSeed) ActionStartEx(attacker, defender *action.SelectSkillAction) bool {
|
||||
// 过滤特定类型单位(假设1是植物类型,使用枚举替代魔法数字)
|
||||
@@ -179,7 +187,7 @@ func (e *Weakened) DamageDivEx(t *info.DamageZone) bool {
|
||||
// 1. 定义衰弱等级对应的倍率表(索引对应等级,0级无倍率)
|
||||
// 索引0: 0%(未衰弱)、1:25%、2:50%、3:100%、4:250%、5:500%
|
||||
weakenedMultiples := []alpacadecimal.Decimal{
|
||||
alpacadecimal.Zero, // 0级
|
||||
alpacadecimal.Zero, // 0级
|
||||
alpacadecimal.NewFromFloat(0.25), // 1级(25%)
|
||||
alpacadecimal.NewFromFloat(0.5), // 2级(50%)
|
||||
alpacadecimal.NewFromFloat(1.0), // 3级(100%)
|
||||
|
||||
Reference in New Issue
Block a user