Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonyue0417 committed Jun 7, 2020
1 parent cfa2f53 commit 916a054
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions SmartHunter/Game/Helpers/MhwHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public static void UpdateMonsterWidget(Process process, ulong monsterBaseList, u
bool isMonsterSelected = MemoryHelper.Read<ulong>(process, mapBaseAddress + 0x128) != 0x0 && MemoryHelper.Read<ulong>(process, mapBaseAddress + 0x130) != 0x0 && MemoryHelper.Read<ulong>(process, mapBaseAddress + 0x160) != 0x0;
if (isMonsterSelected)
{
ulong selectedMonsterAddress = MemoryHelper.Read<ulong>(process, mapBaseAddress + 0x148) - 0X40;
ulong selectedMonsterAddress = MemoryHelper.Read<ulong>(process, mapBaseAddress + 0x148);
var selectedMonster = UpdateAndGetMonster(process, selectedMonsterAddress);
if (selectedMonster != null)
{
Expand Down Expand Up @@ -894,13 +894,13 @@ private static void UpdateMonsterStatusEffects(Process process, Monster monster)
{
currentStaminaBuildUp = MemoryHelper.Read<float>(process, staminaAddress);
}
float maxFatigueDuration = MemoryHelper.Read<float>(process, staminaAddress + 0x8);
float maxFatigueDuration = MemoryHelper.Read<float>(process, staminaAddress + 0x0C);
float currentFatigueDuration = 0;
if (maxFatigueDuration > 0)
{
currentFatigueDuration = MemoryHelper.Read<float>(process, staminaAddress + 0x0C);
currentFatigueDuration = MemoryHelper.Read<float>(process, staminaAddress + 0x10);
}
int fatigueActivatedCount = MemoryHelper.Read<int>(process, staminaAddress + 0x10);
int fatigueActivatedCount = MemoryHelper.Read<int>(process, staminaAddress + 0x14);
MonsterStatusEffectConfig statusEffect = null;
if (currentFatigueDuration > 0)
{
Expand All @@ -919,11 +919,11 @@ private static void UpdateMonsterStatusEffects(Process process, Monster monster)
// Rage

ulong rageAddress = monster.Address + DataOffsets.Monster.MonsterRageOffset;
float maxRageBuildUp = MemoryHelper.Read<float>(process, rageAddress + 0x0C);
float maxRageBuildUp = MemoryHelper.Read<float>(process, rageAddress + 0x18);
float currentRageBuildUp = 0;
if (maxRageBuildUp > 0)
{
currentRageBuildUp = MemoryHelper.Read<float>(process, rageAddress + 0x08);
currentRageBuildUp = MemoryHelper.Read<float>(process, rageAddress - 0x0C);
}
float maxRageDuration = MemoryHelper.Read<float>(process, rageAddress + 0x04);
float currentRageDuration = 0;
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.06.07.00</AssemblyVersion>
<FileVersion>2020.06.07.00</FileVersion>
<AssemblyVersion>2020.06.08.00</AssemblyVersion>
<FileVersion>2020.06.08.00</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 916a054

Please sign in to comment.