mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
22 lines
No EOL
495 B
C++
22 lines
No EOL
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;
|
|
} |