mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-15 04:25:49 +00:00
Emperor's Vigilance, closes #862
This commit is contained in:
@@ -917,11 +917,14 @@ function transformToLegacyModifiers (item: ParsedItem) {
|
||||
}
|
||||
|
||||
function calcBasePercentile (item: ParsedItem) {
|
||||
if (!item.info.armour) return
|
||||
const info = item.info.unique
|
||||
? ITEM_BY_REF('ITEM', item.info.unique.base)![0].armour
|
||||
: item.info.armour
|
||||
if (!info) return
|
||||
|
||||
// Base percentile is the same for all defences.
|
||||
// Using `AR/EV -> ES -> WARD` order to improve accuracy
|
||||
// of calculation (larger rolls = more precise).
|
||||
const info = item.info.armour
|
||||
if (item.armourAR && info.ar) {
|
||||
item.basePercentile = calcPropPercentile(item.armourAR, info.ar, QUALITY_STATS.ARMOUR, item)
|
||||
} else if (item.armourEV && info.ev) {
|
||||
|
||||
Reference in New Issue
Block a user