refactor(fight): 清理BattlePetEntity中的废弃属性和注释

This commit is contained in:
1
2025-08-25 16:51:40 +00:00
parent 32d0b7d804
commit cd229c1ca7

View File

@@ -58,30 +58,6 @@ type BattlePetEntity struct {
skills [4]*BattleSkillEntity // 技能槽最多4个技能
// // 特殊属性
// Perseverance int // 毅力值:抵消致命伤
// Stubborn bool // 顽强特性
// StubbornProbability int // 顽强触发概率
// Revival bool // 回神特性
// RevivalProbability int // 回神触发概率
// Definitely int // 必定命中概率
// Dodge int // 闪避概率
// // 护盾相关
// MaxShield int64 // 最大护盾值
// Shield int64 // 当前护盾值
// CountShield int // 次数盾
// Level int64
// // 属性变化回合
// //petAttributeRound map[BattleRoundStarEffect]int // 属性变化类型 -> 剩余回合
// petImmunityEffectIds map[int]int // 免疫效果ID -> 剩余回合 (-1表示永久)
// petImmunityBuffs map[string]int // 免疫buff效果ID -> 剩余回合 (-1表示永久)
// IsDead bool // 是否死亡
// otherRates map[DamageMultiplierZone]decimal.Decimal // 各伤害乘算区倍率使用高精度decimal
// 战斗开始时拥有的特殊buff
//battleStartHavingBuffs []buff.BattleBuffInterface
}
// calculateRealValue 计算实际属性值根据状态变化计算实际值