mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-22 05:22:32 +01:00
22 lines
495 B
C++
22 lines
495 B
C++
#include "StdAfxSA.h"
|
|
#include "ScriptSA.h"
|
|
|
|
int32_t* CRunningScript::GetDay_GymGlitch()
|
|
{
|
|
static int32_t Out[2];
|
|
|
|
if ( strncmp(Name, "gymbike", 8) == 0 || strncmp(Name, "gymbenc", 8) == 0 || strncmp(Name, "gymtrea", 8) == 0 || strncmp(Name, "gymdumb", 8) == 0 )
|
|
{
|
|
static int* const StatTypesInt = *AddressByVersion<int**>(0x55C0D8, 0x55C578, 0x574F24);
|
|
|
|
Out[0] = -1;
|
|
Out[1] = StatTypesInt[134-120];
|
|
}
|
|
else
|
|
{
|
|
Out[0] = nGameClockMonths;
|
|
Out[1] = nGameClockDays;
|
|
}
|
|
|
|
return Out;
|
|
} |