【伤害记录】增加伤害记录
parent
5ad8523753
commit
1b266163bd
|
|
@ -134,7 +134,7 @@ namespace FightDebug
|
|||
{
|
||||
GUILayout.Label($"暴击率: -");
|
||||
GUILayout.Label($"暴击伤害倍率: -");
|
||||
GUILayout.Label($"计算前伤害: {record.DamageBeforeCalc:F0}");
|
||||
GUILayout.Label($"进入防御前伤害: {record.DamageBeforeCalc:F0}");
|
||||
GUILayout.Label($"目标防御力: -");
|
||||
GUILayout.Label($"命中类型: {record.HitType}");
|
||||
GUILayout.Label($"攻击力等级: -");
|
||||
|
|
@ -146,13 +146,18 @@ namespace FightDebug
|
|||
{
|
||||
GUILayout.Label($"暴击率: {record.CritRate:P0}");
|
||||
GUILayout.Label($"暴击伤害倍率: {record.CritDamageScale:F2}x");
|
||||
GUILayout.Label($"计算前伤害: {record.DamageBeforeCalc:F0}");
|
||||
GUILayout.Label($"进入防御前伤害: {record.DamageBeforeCalc:F0}");
|
||||
GUILayout.Label($"目标防御力: {record.Defense:F0}");
|
||||
GUILayout.Label($"命中类型: {record.HitType}");
|
||||
GUILayout.Label($"攻击力等级: {record.AttackPowerLevel}");
|
||||
GUILayout.Label($"目标防御等级: {record.TargetDefensePowerLevel}");
|
||||
GUILayout.Label($"护盾减少: {record.ShieldReduced}");
|
||||
GUILayout.Label($"HP减少: {record.HpReduced}");
|
||||
|
||||
if (record.IsNormalAttackDamage)
|
||||
{
|
||||
DrawNormalAttackScaleInfo(record);
|
||||
}
|
||||
}
|
||||
|
||||
GUILayout.Label($"当前平A次数: {record.normalAttackCount}");
|
||||
|
|
@ -180,6 +185,19 @@ namespace FightDebug
|
|||
GUILayout.Label($"共 {records.Count} 条记录");
|
||||
}
|
||||
|
||||
private static void DrawNormalAttackScaleInfo(DamageDetailRecord record)
|
||||
{
|
||||
GUILayout.Space(4);
|
||||
GUILayout.Label("平A倍率链路:");
|
||||
GUILayout.Label($"伤害类型: {record.DamageType}");
|
||||
GUILayout.Label($"preNormalDamageFinalScale: {record.PreNormalDamageFinalScale:F3}");
|
||||
GUILayout.Label($"normalAttackScaleForHuman: {record.NormalAttackScaleForHuman:F3}");
|
||||
GUILayout.Label($"normalAttackScaleForVehicle: {record.NormalAttackScaleForVehicle:F3}");
|
||||
GUILayout.Label($"normalAttackScaleForBuild: {record.NormalAttackScaleForBuild:F3}");
|
||||
GUILayout.Label($"本目标使用: {record.AppliedNormalAttackScaleName} = {record.AppliedNormalAttackScale:F3}");
|
||||
GUILayout.Label($"最终平A倍率: {record.PreNormalDamageFinalScale:F3} + {record.AppliedNormalAttackScale:F3} = {record.NormalAttackFinalScale:F3}");
|
||||
}
|
||||
|
||||
private static Color GetSourceColor(DamageDetailRecord record)
|
||||
{
|
||||
if (record.Source == EDamageDetailSource.PureDamage)
|
||||
|
|
|
|||
Loading…
Reference in New Issue