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