Yeah I've been having... issues.
I can find the item rarity call thing pretty easily, problem is like before the game uses the same function over and over to determine a few different aspects of a drop, such as what category it is, then what model, and so forth (but not parts since those vary, they seem to be in a different place).
Like before, I need to find a way to make sure the loot value is only overwritten when it's initially rolling for rarity, and not any other time (or you'll end up with the same 2-3 items infinitely). I mean getting all legendaries isn't nearly as cool when you keep getting the same item.
Before there was some sort of flag in one of the registers that was easy to spot, but now...
Here's my record of opening the golden chest and it generating 5 items. This is how many times it rolled that loot code, and which registers were what per roll (others did not change).
Code: Select all
RAX = FBE
RCX = FBE
RDI = 1184C09A0
RBP = 8CDF00
RSP = 8CDE00
R12 = 54DA3E01
RAX = 5681
RCX = 5681
RDI = 1184C09A0
RBP = 8CDC90
RSP = 8CDB90
R12 = ACCB101
RAX = 45BD
RCX = 45BD
RDI = 1184C09A0
RBP = 8CDA20
RSP = 8CD920
R12 = 4C8AA301
RAX = 3263
RCX = 3263
RDI = 1184C09A0
RBP = 8CDF00
RSP = 8CDE00
R12 = E8F99501
RAX = 59DE
RCX = 59DE
RDI = 1184C09A0
RBP = 8CDC90
RSP = 8CDB90
R12 = 54DA3E01
RAX = 410D
RCX = 410D
RDI = A672D4B0
RBP = 8CDA20
RSP = 8CD920
R12 = 1B6FBFA01
RAX = 6D18
RCX = 6D18
RDI = 1184C09A0
RBP = 8CDF00
RSP = 8CDE00
R12 = E8F99501
RAX = CC8
RCX = CC8
RDI = 1184C09A0
RBP = 8CDC90
RSP = 8CDB90
R12 = 54DA3E01
RAX = A70
RCX = A70
RDI = 1184C09A0
RBP = 8CDA20
RSP = 8CD920
R12 = F55AEE01
RAX = 6DBC
RCX = 6DBC
RDI = A672D4B0
RBP = 8CD7B0
RSP = 8CD6B0
R12 = 1314C5A01
RAX = 23E9
RCX = 23E9
RDI = 1184C09A0
RBP = 8CDF00
RSP = 8CDE00
R12 = E8F99501
RAX = EFF
RCX = EFF
RDI = 1184C09A0
RBP = 8CDC90
RSP = 8CDB90
R12 = 54DA3E01
RAX = 547F
RCX = 547F
RDI = A672D4B0
RBP = 8CDA20
RSP = 8CD920
R12 = 1B6FBA01
RAX = 1D7F
RCX = 1D7F
RDI = 1184C09A0
RBP = 8CDF00
RSP = 8CDE00
R12 = E8F99501
RAX = 5409
RCX = 5409
RDI = 1184C09A0
RBP = 8CDC90
RSP = 8CDB90
R12 = 54DA3E01
RAX = 763E
RCX = 763E
RDI = A672D4B0
RBP = 8CDA20
RSP = 8CD920
R12 = 13998F501
While RBP and RSP seem like easy targets since they have repeating values, which values are used for what differs depending on if you're in the base game or DLC for some reason. I quite frankly do not want to make and upkeep this code multiple times for the base game and DLCs... and they seem to vary too much to use anyways.
I found one comparison that seems to work mostly for the base game, but I'm out of time to mess with it today to see if it works for the DLC maps. Maybe somebody with more experience could figure it out on a more global level later.
First post updated with the new download for now.