feat(boss): 移除alpacadecimal依赖并修复伤害计算逻辑 移除了NewSeIdx_699中对alpacadecimal的依赖, 修复了技能伤害计算方式,不再使用最小值限制 fix(pet): 修正宠物服务中的代码格式和查询逻辑 修正了UPdatePrice方法中的代码格式问题, 为PetService添加了ListQueryOp配置,增加了免费和非VIP宠物的查询条件 ```
This commit is contained in:
@@ -3,8 +3,6 @@ package effect
|
||||
import (
|
||||
"blazing/logic/service/fight/info"
|
||||
"blazing/logic/service/fight/input"
|
||||
|
||||
"github.com/alpacahq/alpacadecimal"
|
||||
)
|
||||
|
||||
// 60. "20%弹60点固定伤害" StarLevel="0
|
||||
@@ -29,7 +27,7 @@ func (e *NewSel699) Skill_Use_ex() bool {
|
||||
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
|
||||
|
||||
Type: info.DamageType.Fixed,
|
||||
Damage: alpacadecimal.Min(e.Ctx().Opp.SumDamage, e.Args()[1]),
|
||||
Damage: e.Args()[1], //alpacadecimal.Min(e.Ctx().Opp.SumDamage, e.Args()[1]),
|
||||
})
|
||||
|
||||
return true
|
||||
|
||||
@@ -13,7 +13,7 @@ type NewSel700 struct {
|
||||
NewSel0
|
||||
}
|
||||
|
||||
func (e *NewSel700) Skill_Use() bool {
|
||||
func (e *NewSel700) Skill_Use_ex() bool {
|
||||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user