Basic Info:
Platform: All
Issue Type: Gameplay
Game Mode: All
Server Type: All
Map: All
Server Name: N/A
Mods: N/A
Bug Description:
There’s a bug in the code of the rotating vendors, which prevents them from ever offering up the very last item on their list.
Currently for the two weapon merchants at the Spire, these are the Axe of the Lion and Frostshot, as well as the Lotus Burner Guardian Torso and the Black Blood Skinning Knife for the other vendorsThe reason for the bug is that when generating the random number to pick from the selection, the developer who made it intuitively accounted for the fact that array elements start at 0, by subtracting 1 from the amount of items offered to purchase… however they forgot that the function they’re using to generate the random number already accounts for this internally and it also subtracts 1 from the maximum value.
This results in 2 being subtracted instead of 1 and because of this the existence ot the last item on the list is always going to be ignored for each rotating vendor.
The solution would be to get rid of that encircled -1 node.
Bug Reproduction:
Go to the rotating merchants and notice that they never offer up the above mentioned items.