This commit is contained in:
1
2025-09-28 08:13:42 +00:00
parent ed320300db
commit 00144109dd
7 changed files with 220 additions and 162 deletions

View File

@@ -6,6 +6,7 @@ import (
"blazing/logic/service/fight/info"
"github.com/jinzhu/copier"
"github.com/shopspring/decimal"
)
type Input struct {
@@ -19,12 +20,14 @@ type Input struct {
// info.BattleActionI
Effects *utils.OrderedMap[int, Effect] //effects 实际上全局就是effect无限回合 //effects容器 技能的
DamageZone struct {
Damage int //伤害
BeforeADD int //攻击伤害
BeforeMul int
BeforeDiv int
BeforeSUB int
BeforeLock int //锁伤 先锁受击方,再锁攻击方 受击方免疫也是这么锁 免疫等于锁0
Damage decimal.Decimal //伤害
BeforeADD decimal.Decimal //攻击伤害
BeforeMul decimal.Decimal
BeforeDiv decimal.Decimal
BeforeSUB decimal.Decimal
BeforeLock decimal.Decimal //锁伤 先锁受击方,再锁攻击方 受击方免疫也是这么锁 免疫等于锁0
BeforePost decimal.Decimal
//OldAttack int //攻击伤害被挡前伤害记录
} //伤害容器
First bool //是否先手