2014-08-03 15:38:53 +02:00
|
|
|
#include "StdAfxSA.h"
|
|
|
|
#include "ScriptSA.h"
|
2014-06-15 19:56:43 +02:00
|
|
|
|
2018-01-14 01:13:27 +01:00
|
|
|
int32_t* CRunningScript::GetDay_GymGlitch()
|
2014-06-15 19:56:43 +02:00
|
|
|
{
|
2018-01-14 01:13:27 +01:00
|
|
|
static int32_t Out[2];
|
2014-06-15 19:56:43 +02:00
|
|
|
|
2018-03-30 19:03:12 +02:00
|
|
|
if ( strcmp(Name, "gymbike") == 0 || strcmp(Name, "gymbenc") == 0 || strcmp(Name, "gymtrea") == 0 || strcmp(Name, "gymdumb") == 0 )
|
2014-06-15 19:56:43 +02:00
|
|
|
{
|
2018-01-14 01:13:27 +01:00
|
|
|
static int* const StatTypesInt = *AddressByVersion<int**>(0x55C0D8, 0x55C578, 0x574F24);
|
|
|
|
|
|
|
|
Out[0] = -1;
|
|
|
|
Out[1] = StatTypesInt[134-120];
|
2014-06-15 19:56:43 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-01-14 01:13:27 +01:00
|
|
|
Out[0] = nGameClockMonths;
|
|
|
|
Out[1] = nGameClockDays;
|
2014-06-15 19:56:43 +02:00
|
|
|
}
|
|
|
|
|
2018-01-14 01:13:27 +01:00
|
|
|
return Out;
|
2014-06-15 19:56:43 +02:00
|
|
|
}
|