For 1.14d, you basically want to make sure that you are ultimately setting the [EBP-20] address to the number that you want. For jewels I set it to 4, and for other items I used 7 (Instead of 6 - the 1.13d fix from devurandom & co used this). I used 7 because after I observed the register after a many rare item generations in the normal game, I would see that the max number used was 7.
To force the rare affix function many times, I just changed my TreasureClass and made chests always drop rings/amulets/weapons/armors/jewels that are rare (rare column 1024). Thus, even with vanilla code, I was getting jewels that sometimes had higher affixes than 4. I don't want to spend too much time on this since it seems more than good enough with the following fixes:
Code: Select all
Offset: 1C1C8C Force Weapons/Armors/Rings/Amulets to have high affixes: 005C1C8C | B9 C5 90 C6 6A | MOV ECX,6AC690C5 | 005C1C91 | F7 E1 | MUL ECX | To: 005C1C8C | B9 06 00 00 00 | MOV EDX,7 | 005C1C91 | EB 1B | JMP game.5C1CAE | Force Jewels to have high affixes: Offset: 1C1C80 From: 005C1C80 | E8 FB 05 EB FF | CALL <game.sub_472280> | To: 005C1C80 | B8 04 00 00 00 | MOV EAX,4 |