2014-08-03 15:38:53 +02:00
|
|
|
#include "StdAfxSA.h"
|
|
|
|
#include "ScriptSA.h"
|
2014-06-15 19:56:43 +02:00
|
|
|
|
2014-08-22 00:10:23 +02:00
|
|
|
static int* StatTypesInt = *AddressByVersion<int**>(0x55C0D8, 0x55C578, 0x574F24);
|
2014-06-15 19:56:43 +02:00
|
|
|
|
2017-04-12 21:33:23 +02:00
|
|
|
std::pair<uint32_t,uint32_t>* CRunningScript::GetDay_GymGlitch()
|
2014-06-15 19:56:43 +02:00
|
|
|
{
|
2017-04-12 21:33:23 +02:00
|
|
|
static std::pair<uint32_t,uint32_t> Out;
|
2014-06-15 19:56:43 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|