战斗修改

This commit is contained in:
2025-09-29 02:40:35 +08:00
parent 7df70f2375
commit 91d0d29ec9
28 changed files with 332 additions and 281 deletions

View File

@@ -30,11 +30,15 @@ type DrainHP struct {
func (e *DrainHP) OnTurnStart(opp *input.Input) {
e.Input.Damage(e.Input, info.DamageZone{
e.Input.Damage(input.Ctx{
Type: info.DamageType.Red,
Damage: decimal.NewFromUint64(uint64(opp.CurrentPet.Info.MaxHp)).
Div(decimal.NewFromInt(8)),
Input: opp,
DamageZone: &info.DamageZone{
Type: info.DamageType.Red,
Damage: decimal.NewFromUint64(uint64(opp.CurrentPet.Info.MaxHp)).
Div(decimal.NewFromInt(8)),
},
})
}