Skip to content

Commit

Permalink
Fix monsters despawning when height-difference is too great
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Oct 4, 2021
1 parent 094c98f commit 6fea533
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/SDK/Basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ struct TArray

inline int Num() const
{
if (!Data)
return 0;
return Count;
};

Expand Down
9 changes: 5 additions & 4 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "pch.h"

#define SDK_VERSION "0.1.25"
#define SDK_VERSION "0.1.25a"

const uint32_t Addr_Timestamp = 0x1E0;
const uint32_t Value_Timestamp = 1626315361; // 2021/07/15 02:16:01
Expand Down Expand Up @@ -143,9 +143,10 @@ bool AEncountGroup__IsWithinRange_Hook(AEncountGroup* thisptr, struct FEncountAr
if (AreaInfo != &thisptr->SpawnAreaInfo)
return AEncountGroup__IsWithinRange_Orig(thisptr, AreaInfo);

FEncountAreaInfo NewAreaInfo(*AreaInfo);
NewAreaInfo.Range *= Options.MonsterDistanceMultiplier;
// todo: should we update NewAreaInfo.HalfHeight?
FEncountAreaInfo NewAreaInfo;
NewAreaInfo.Range = AreaInfo->Range * Options.MonsterDistanceMultiplier;
NewAreaInfo.HalfHeight = AreaInfo->HalfHeight * Options.MonsterDistanceMultiplier;

return AEncountGroup__IsWithinRange_Orig(thisptr, &NewAreaInfo);
}

Expand Down
8 changes: 4 additions & 4 deletions src/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,1,25,0
PRODUCTVERSION 0,1,25,0
FILEVERSION 0,1,25,1
PRODUCTVERSION 0,1,25,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,12 +68,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "emoose"
VALUE "FileDescription", "Arise-SDK - improvement extension for Tales of Arise"
VALUE "FileVersion", "0.1.25.0"
VALUE "FileVersion", "0.1.25.1"
VALUE "InternalName", "Arise-SDK.dll"
VALUE "LegalCopyright", "emoose - 2021"
VALUE "OriginalFilename", "Arise-SDK.dll"
VALUE "ProductName", "Arise-SDK"
VALUE "ProductVersion", "0.1.25.0"
VALUE "ProductVersion", "0.1.25.1"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 6fea533

Please sign in to comment.