mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Kyle takes over the San Mona leather shop once his quest is over
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7887 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+9
-9
@@ -15,9 +15,9 @@
|
|||||||
#ifdef JA2EDITOR
|
#ifdef JA2EDITOR
|
||||||
|
|
||||||
#ifdef JA2UB
|
#ifdef JA2UB
|
||||||
CHAR16 zVersionLabel[256] = { L"Unfinished Business - Map Editor v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Unfinished Business - Map Editor v1.13.7887 (Development Build)" };
|
||||||
#else
|
#else
|
||||||
CHAR16 zVersionLabel[256] = { L"Map Editor v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Map Editor v1.13.7887 (Development Build)" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ------------------------------
|
// ------------------------------
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
|
|
||||||
//DEBUG BUILD VERSION
|
//DEBUG BUILD VERSION
|
||||||
#ifdef JA2UB
|
#ifdef JA2UB
|
||||||
CHAR16 zVersionLabel[256] = { L"Debug: Unfinished Business - v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Debug: Unfinished Business - v1.13.7887 (Development Build)" };
|
||||||
#elif defined (JA113DEMO)
|
#elif defined (JA113DEMO)
|
||||||
CHAR16 zVersionLabel[256] = { L"Debug: JA2 Demo - v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Debug: JA2 Demo - v1.13.7887 (Development Build)" };
|
||||||
#else
|
#else
|
||||||
CHAR16 zVersionLabel[256] = { L"Debug: v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Debug: v1.13.7887 (Development Build)" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined CRIPPLED_VERSION
|
#elif defined CRIPPLED_VERSION
|
||||||
@@ -46,16 +46,16 @@
|
|||||||
|
|
||||||
//RELEASE BUILD VERSION
|
//RELEASE BUILD VERSION
|
||||||
#ifdef JA2UB
|
#ifdef JA2UB
|
||||||
CHAR16 zVersionLabel[256] = { L"Release Unfinished Business - v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Release Unfinished Business - v1.13.7887 (Development Build)" };
|
||||||
#elif defined (JA113DEMO)
|
#elif defined (JA113DEMO)
|
||||||
CHAR16 zVersionLabel[256] = { L"Release JA2 Demo - v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Release JA2 Demo - v1.13.7887 (Development Build)" };
|
||||||
#else
|
#else
|
||||||
CHAR16 zVersionLabel[256] = { L"Release v1.13.7884 (Development Build)" };
|
CHAR16 zVersionLabel[256] = { L"Release v1.13.7887 (Development Build)" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CHAR8 czVersionNumber[16] = { "Build 15.06.01" }; //YY.MM.DD
|
CHAR8 czVersionNumber[16] = { "Build 15.06.04" }; //YY.MM.DD
|
||||||
CHAR16 zTrackingNumber[16] = { L"Z" };
|
CHAR16 zTrackingNumber[16] = { L"Z" };
|
||||||
|
|
||||||
// SAVE_GAME_VERSION is defined in header, change it there
|
// SAVE_GAME_VERSION is defined in header, change it there
|
||||||
|
|||||||
+14
-19
@@ -2577,6 +2577,7 @@ BOOLEAN LuaHandleQuestCodeOnSector( INT16 sSectorX, INT16 sSectorY, INT8 bSector
|
|||||||
lua_register(_LS.L(), "CheckFact", l_CheckFact);
|
lua_register(_LS.L(), "CheckFact", l_CheckFact);
|
||||||
lua_register(_LS.L(), "CheckForMissingHospitalSupplies", l_CheckForMissingHospitalSupplies);
|
lua_register(_LS.L(), "CheckForMissingHospitalSupplies", l_CheckForMissingHospitalSupplies);
|
||||||
lua_register(_LS.L(), "CheckForKingpinsMoneyMissing", l_FunctionCheckForKingpinsMoneyMissing);
|
lua_register(_LS.L(), "CheckForKingpinsMoneyMissing", l_FunctionCheckForKingpinsMoneyMissing);
|
||||||
|
lua_register(_LS.L(), "SetProfileStrategicInsertionData", l_ProfilesStrategicInsertionData );
|
||||||
IniFunction( _LS.L(), TRUE );
|
IniFunction( _LS.L(), TRUE );
|
||||||
IniGlobalGameSetting( _LS.L() );
|
IniGlobalGameSetting( _LS.L() );
|
||||||
|
|
||||||
@@ -4132,28 +4133,22 @@ int l_InitMapProfil (lua_State *L)
|
|||||||
|
|
||||||
static int l_ProfilesStrategicInsertionData (lua_State *L)
|
static int l_ProfilesStrategicInsertionData (lua_State *L)
|
||||||
{
|
{
|
||||||
UINT8 n = lua_gettop(L);
|
if ( lua_gettop( L ) >= 2 )
|
||||||
int i;
|
|
||||||
|
|
||||||
INT32 GridNo = 0;
|
|
||||||
UINT8 ProfilID = NO_PROFILE;
|
|
||||||
|
|
||||||
for (i= 1; i<=n; i++ )
|
|
||||||
{
|
{
|
||||||
if (i == 1 ) ProfilID = lua_tointeger(L,i);
|
UINT8 ProfilID = lua_tointeger( L, 1 );
|
||||||
if (i == 2 ) GridNo = lua_tointeger(L,i);
|
INT32 sGridNo = lua_tointeger( L, 2 );
|
||||||
|
|
||||||
|
if ( ProfilID != NO_PROFILE )
|
||||||
|
{
|
||||||
|
gMercProfiles[ ProfilID ].sGridNo = sGridNo;
|
||||||
|
gMercProfiles[ ProfilID ].fUseProfileInsertionInfo = TRUE;
|
||||||
|
gMercProfiles[ ProfilID ].ubStrategicInsertionCode = INSERTION_CODE_GRIDNO;
|
||||||
|
gMercProfiles[ ProfilID ].usStrategicInsertionData = sGridNo;
|
||||||
|
gMercProfiles[ ProfilID ].ubMiscFlags3 = PROFILE_MISC_FLAG3_PERMANENT_INSERTION_CODE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ProfilID != NO_PROFILE )
|
return 0;
|
||||||
{
|
|
||||||
gMercProfiles[ ProfilID ].sGridNo = GridNo;
|
|
||||||
gMercProfiles[ ProfilID ].fUseProfileInsertionInfo = TRUE;
|
|
||||||
gMercProfiles[ ProfilID ].ubStrategicInsertionCode = INSERTION_CODE_GRIDNO;
|
|
||||||
gMercProfiles[ ProfilID ].usStrategicInsertionData = GridNo;
|
|
||||||
gMercProfiles[ ProfilID ].ubMiscFlags3 = PROFILE_MISC_FLAG3_PERMANENT_INSERTION_CODE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int l_EnvBeginRainStorm (lua_State *L)
|
static int l_EnvBeginRainStorm (lua_State *L)
|
||||||
|
|||||||
@@ -1140,16 +1140,20 @@ UINT32 GetArmsDealerItemTypeFromItemNumber( UINT16 usItem )
|
|||||||
|
|
||||||
BOOLEAN IsMercADealer( UINT8 ubMercID )
|
BOOLEAN IsMercADealer( UINT8 ubMercID )
|
||||||
{
|
{
|
||||||
UINT8 cnt;
|
|
||||||
|
|
||||||
// Manny is not actually a valid dealer unless a particular event sets that fact
|
// Manny is not actually a valid dealer unless a particular event sets that fact
|
||||||
if( ( ubMercID == MANNY ) && !CheckFact( FACT_MANNY_IS_BARTENDER, 0 ) )
|
if( ( ubMercID == MANNY ) && !CheckFact( FACT_MANNY_IS_BARTENDER, 0 ) )
|
||||||
{
|
{
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flugente: if we give Kyle the deed of the leather shop, he becomes a shop owner
|
||||||
|
if ( (ubMercID == KYLE) && gubQuest[QUEST_LEATHER_SHOP_DREAM] != QUESTDONE )
|
||||||
|
{
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
//loop through the list of arms dealers
|
//loop through the list of arms dealers
|
||||||
for( cnt=0; cnt<NUM_ARMS_DEALERS; cnt++ )
|
for ( UINT8 cnt = 0; cnt<NUM_ARMS_DEALERS; ++cnt )
|
||||||
{
|
{
|
||||||
if( armsDealerInfo[ cnt ].ubShopKeeperID == ubMercID )
|
if( armsDealerInfo[ cnt ].ubShopKeeperID == ubMercID )
|
||||||
return( TRUE );
|
return( TRUE );
|
||||||
|
|||||||
Reference in New Issue
Block a user