diff --git a/README.md b/README.md index 0ba9f15..84fd6cb 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Patches games memory while running, does not modify any game files. Works with e * disable camera auto rotate adjustment on movement (intended for mouse users) * disable centering of camera (cam reset) on lock-on if there is no target * display hidden death/kill counters and optionally log them to file to display in OBS on stream +* automatically loot enemies * game modifications * prevent dragonrot from increasing upon death * disable death penalties like losing Sen or experience @@ -147,6 +148,9 @@ This will completely disable the automatic camera rotation adjustments when you ### On 'Disable camera reset on lock-on': If you press your target lock-on key and no target is in sight the game will reset and center the camera position and disable your input while it's doing so. Ticking this checkbox will remove this behaviour of the game. +### On 'Automatically loot enemies': +Enabling this will pick up all loot an enemy drops automatically as long as you are in pick-up range. + ### On 'Prevent dragonrot increase on death': This option will remove the effect dragonrot has on NPCs, if an NPC already got dragonrot then it will ensure that their condition won't worsen when you die. The internal dragonrot counter will however keep increasing, nobody will be affected by it though. Keep in mind that there are certain thresholds regarding amount of deaths between dragonrot levels, if you enable this feature and die a level might get skipped so even when you disable it afterwards the dragonrot level for all NPCs will only increase after you have hit the **next** threshold. @@ -236,6 +240,8 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file ## Version History +* v1.2.5.0 (2019-05-04) + * added feature to automatically loot enemies * v1.2.4.0 (2019-05-02) * added feature to increase spirit emblem capacity on prosthetic upgrades * changed way to obtain player kills, fixes slow stats updates diff --git a/SekiroFpsUnlockAndMore/GameData.cs b/SekiroFpsUnlockAndMore/GameData.cs index 657000b..6da9ad7 100644 --- a/SekiroFpsUnlockAndMore/GameData.cs +++ b/SekiroFpsUnlockAndMore/GameData.cs @@ -286,6 +286,20 @@ namespace SekiroFpsUnlockAndMore internal static readonly byte[] PATCH_CAMRESET_LOCKON_ENABLE = new byte[1] { 0x01 }; // true + /** + Picking up enemy loot can be automated by setting key press indicator to 1. + 0000000140910D14 | C685 30010000 01 | mov byte ptr ss:[rbp+130],1 | + 0000000140910D1B | B0 01 | mov al,1 | triggers loot pickup + 0000000140910D1D | EB 09 | jmp sekiro.140910D28 | + 0000000140910D1F | C685 30010000 00 | mov byte ptr ss:[rbp+130],0 | + 0000000140910D26 | 32C0 | xor al,al | resets loot pickup + */ + internal const string PATTERN_AUTOLOOT = "C6 85 ?? ?? ?? ?? ?? B0 01 EB ?? C6 85 ?? ?? ?? ?? ?? 32 C0"; + internal const int PATTERN_AUTOLOOT_OFFSET = 18; + internal static readonly byte[] PATCH_AUTOLOOT_ENABLE = new byte[2] { 0xB0, 0x01}; // mov al,1 + internal static readonly byte[] PATCH_AUTOLOOT_DISABLE = new byte[2] { 0x32, 0xC0 }; // xor al,al + + /** Whole dragonrot routine upon death is guarded by a conditional jump, there may be some events in the game where a true death shall not increase the disease so it's skippable as a whole. We replace conditional jump with non-conditional one. diff --git a/SekiroFpsUnlockAndMore/MainWindow.xaml b/SekiroFpsUnlockAndMore/MainWindow.xaml index 74efa25..e4a1eec 100644 --- a/SekiroFpsUnlockAndMore/MainWindow.xaml +++ b/SekiroFpsUnlockAndMore/MainWindow.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:SekiroFpsUnlockAndMore" mc:Ignorable="d" - Title="Sekiro FPS Unlocker and more v1.2.4" Width="Auto" Height="Auto" SizeToContent="WidthAndHeight" ResizeMode="CanMinimize" Loaded="Window_Loaded" Closing="Window_Closing"> + Title="Sekiro FPS Unlocker and more v1.2.5" Width="Auto" Height="Auto" SizeToContent="WidthAndHeight" ResizeMode="CanMinimize" Loaded="Window_Loaded" Closing="Window_Closing"> @@ -37,23 +37,24 @@ - - + + + - + - +