修改战斗
This commit is contained in:
@@ -2,6 +2,7 @@ package fight
|
||||
|
||||
import (
|
||||
"blazing/common/socket/handler"
|
||||
"blazing/modules/blazing/model"
|
||||
)
|
||||
|
||||
// 野怪对战包
|
||||
@@ -62,3 +63,21 @@ type FightPetInfo struct {
|
||||
// byte[],固定长度6,存储buff等级、攻击、速度等属性
|
||||
BattleLV [6]byte `fieldDesc:"这里实际上应该是6个单字节byte, 内容为buff等级 攻击 速度 特攻 防御 特防 命中等.但具体顺序未知可能需要测试. 具体数值为1-6等级" serialize:"fixedLength=6,type=byteArray"`
|
||||
}
|
||||
|
||||
// AttackValue 战斗中的攻击数值信息
|
||||
type AttackValue struct {
|
||||
UserID uint64 `json:"userId" fieldDescription:"玩家的米米号 与野怪对战userid = 0"`
|
||||
SkillID uint64 `json:"skillId" fieldDescription:"使用技能的id"`
|
||||
AttackTime uint64 `json:"attackTime" fieldDescription:"是否击中 如果为0 则miss 如果为1 则击中"`
|
||||
LostHp uint64 `json:"lostHp" fieldDescription:"我方造成的伤害"`
|
||||
GainHp uint64 `json:"gainHp" fieldDescription:"我方获得血量"`
|
||||
RemainHp uint64 `json:"remainHp" fieldDescription:"我方剩余血量"`
|
||||
MaxHp uint64 `json:"maxHp" fieldDescription:"我方最大血量"`
|
||||
State uint64 `json:"state" fieldDescription:"固定值0 需要后续测试"`
|
||||
SkillList []model.SkillInfo `json:"skillList" fieldDescription:"根据精灵的数据插入技能 最多4条 不定长"`
|
||||
IsCritical uint64 `json:"isCritical" fieldDescription:"是否暴击"`
|
||||
Status [20]byte `json:"status" fieldDescription:"20个字节 各种状态: 0:\"麻痹\",1:\"中毒\",2:\"烧伤\",4:\"寄生\",5:\"冻伤\",6:\"害怕\",7:\"疲惫\",8:\"睡眠\",9:\"石化\",10:\"混乱\",15:\"冰封\",16:\"流血\""`
|
||||
BattleLv [6]byte `json:"battleLv" fieldDescription:"6个单字节byte, 内容为buff等级 攻击 速度 特攻 防御 特防命中等. 但具体顺序未知可能需要测试. 具体数值为1-6等级"`
|
||||
// OwnerMaxShield uint64 `json:"ownerMaxShield" fieldDescription:"我方最大护盾"`
|
||||
// OwnerCurrentShield uint64 `json:"ownerCurrentShield" fieldDescription:"我方当前护盾"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user