Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonyue0417 committed Aug 2, 2020
1 parent b05a695 commit 757b050
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions SmartHunter/Game/Helpers/MhwHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -826,10 +826,9 @@ private static MonsterPart UpdateMonsterRemovablePart(Process process, Monster m

private static void UpdateMonsterPartsSoften(Process process, Monster monster)
{
ulong softenAddress = monster.Address + DataOffsets.MonsterSoftenPart.SoftenPartOffset;
for (int i = 0; i <= 10; i++)
{
softenAddress += (ulong)i * DataOffsets.MonsterSoftenPart.NextSoftenPart;
ulong softenAddress = monster.Address + DataOffsets.MonsterSoftenPart.SoftenPartOffset + (ulong)i * DataOffsets.MonsterSoftenPart.NextSoftenPart;
float maxTime = MemoryHelper.Read<float>(process, softenAddress + DataOffsets.MonsterSoftenPart.MaxDuration) + MemoryHelper.Read<float>(process, softenAddress + DataOffsets.MonsterSoftenPart.MaxExtraDuration);
float currentTime = MemoryHelper.Read<float>(process, softenAddress + DataOffsets.MonsterSoftenPart.CurrentDuration) + MemoryHelper.Read<float>(process, softenAddress + DataOffsets.MonsterSoftenPart.CurrentExtraDuration);
uint timesCount = MemoryHelper.Read<uint>(process, softenAddress + DataOffsets.MonsterSoftenPart.TimesCountOffset);
Expand Down
4 changes: 2 additions & 2 deletions SmartHunter/SmartHunter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<LangVersion>latest</LangVersion>
<AssemblyTitle>SmartHunter</AssemblyTitle>
<Deterministic>false</Deterministic>
<AssemblyVersion>2020.08.02.02</AssemblyVersion>
<FileVersion>2020.08.02.02</FileVersion>
<AssemblyVersion>2020.08.02.03</AssemblyVersion>
<FileVersion>2020.08.02.03</FileVersion>
<OutputPath>bin\$(Configuration)</OutputPath>
<UseWPF>true</UseWPF>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand Down
Binary file modified SmartHunter/bin/Debug/SmartHunter.exe
Binary file not shown.

0 comments on commit 757b050

Please sign in to comment.