mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-08-24 14:36:36 +00:00
[PoE2] - Quality gets applied to corrupted items #369
This commit is contained in:
@@ -43,7 +43,9 @@ export function propAt20Quality(
|
||||
): { roll: StatRoll; sources: StatSource[] } {
|
||||
const { incr, flat, sources } = calcPropBase(statRefs, item);
|
||||
const base = calcFlat(total, incr.value, item.quality) - flat.value;
|
||||
const quality = Math.max(20, item.quality ?? 0);
|
||||
const quality = item.isCorrupted
|
||||
? (item.quality ?? 0)
|
||||
: Math.max(20, item.quality ?? 0);
|
||||
return {
|
||||
roll: {
|
||||
value: calcIncreased(base + flat.value, incr.value, quality),
|
||||
|
||||
@@ -170,13 +170,15 @@ export default defineComponent({
|
||||
);
|
||||
|
||||
const showQ20Notice = computed(() => {
|
||||
return [
|
||||
"item.armour",
|
||||
"item.evasion_rating",
|
||||
"item.energy_shield",
|
||||
"item.total_dps",
|
||||
"item.physical_dps",
|
||||
].includes(props.filter.tradeId[0]);
|
||||
return (
|
||||
[
|
||||
"item.armour",
|
||||
"item.evasion_rating",
|
||||
"item.energy_shield",
|
||||
"item.total_dps",
|
||||
"item.physical_dps",
|
||||
].includes(props.filter.tradeId[0]) && !props.item.isCorrupted
|
||||
);
|
||||
});
|
||||
|
||||
const calcQuality = computed(() => Math.max(20, props.item.quality || 0));
|
||||
|
||||
Reference in New Issue
Block a user