mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-25 14:52:30 +01:00
22 lines
534 B
C++
22 lines
534 B
C++
#include "StdAfxSA.h"
|
|
#include "ScriptSA.h"
|
|
|
|
static int* StatTypesInt = *AddressByVersion<int**>(0x55C0D8, 0x55C578, 0x574F24);
|
|
|
|
std::pair<uint32_t,uint32_t>* CRunningScript::GetDay_GymGlitch()
|
|
{
|
|
static std::pair<uint32_t,uint32_t> Out;
|
|
|
|
if ( !strncmp(Name, "gymbike", 8) || !strncmp(Name, "gymbenc", 8) || !strncmp(Name, "gymtrea", 8) || !strncmp(Name, "gymdumb", 8) )
|
|
{
|
|
Out.first = 0xFFFFFFFF;
|
|
Out.second = StatTypesInt[134-120];
|
|
}
|
|
else
|
|
{
|
|
Out.first = nGameClockMonths;
|
|
Out.second = nGameClockDays;
|
|
}
|
|
|
|
return &Out;
|
|
} |