[Parity][hud][S2][R] 角色面板的防御 / 抗性公式是简化版 #649
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源审计项:
hud#16— [S2][R] 16. 角色面板的防御 / 抗性公式是简化版src/client/ui-model/derived-stats.ts:61-84defense: Math.floor(dex / 4) + stats.get(STAT_ARMORCLASS);Math.min(BASE_MAX_RESIST + stats.get(maxStatId), stats.get(statId) + penalty)UNITS_GetDefense(D2Common #10431)= dex/4 + armorclass,再按 (item_armor_percent + skill_armor_percent,加上 Holy Shield 的 calc) 百分比加成,最后再按 armor_override_percent 调整(V-srcD2Common/src/Units/Units.cpp:2337-2392)。用到这些属性的技能:Frozen / Shiver / Chilling Armor、Shout、Battle Cry、Iron Skin、Defiance、Conviction、Concentrate、Werebear、Cloak of Shadows 用skill_armor_percent,Berserk 用armor_override_percent(V-data skills.txtaurastat*/passivestat*)。玩家最大抗性 = min(75 + max*resist, 95)(V-srcD2Game/src/UNIT/SUnitDmg.cpp:996,这是服务器伤害端的规则;客户端显示规则未核实)。UNITS_GetDefense;抗性加上 95 的上限。(攻击等级的基础公式与UNITS_GetAttackRate一致,见第 4 节。)