Apotheosis

Apotheosis

79M Downloads

Affix wandering trade issues

alkyaly opened this issue ยท 0 comments

commented

Version: 4.8.0

When finding a wandering trader that has an affix trade, the emerald cost and the item with the affix are reversed; and if the item has a common loot rarity, it has no price/cost.

Both of these issues can be traced back to this commit: cadb961#diff-94093348508bfcfca89e0812234cbc55bdda2e90ab3a5475e6ef963ef88cf0ba

Where the parameter order of the MerchantOffer constructor was swapped (Price <-> Result); and the amount of emeralds is defined by the rarity ordinal, which is 0-indexed, times 10.

image