mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Merged from revision: 7579
Externalized (by Buggler): - Kingpin's faction sector and roaming gridno around tony shop if they become hostile - Queen's alternate grid no if basement sector is cleared - Doreen's kids sector that is being freed - Single sector towns does not give global loyalty bonus instead of previously hardcoded Tixa and Orta sector - Enemy investigation town sectors if current loaded sector is player-controlled - Associated town sectors to mine when mine runs out git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7580 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -269,17 +269,21 @@ BOOLEAN SetThisSectorAsPlayerControlled( INT16 sMapX, INT16 sMapY, INT8 bMapZ, B
|
||||
if ((bTownId != OMERTA) || (GetWorldDay() != 1))
|
||||
{
|
||||
ubSectorID = (UINT8)SECTOR( sMapX, sMapY );
|
||||
if( !bMapZ && ubSectorID != SEC_J9 && ubSectorID != SEC_K4 )
|
||||
if( !bMapZ )
|
||||
{
|
||||
HandleMoraleEvent( NULL, MORALE_TOWN_LIBERATED, sMapX, sMapY, bMapZ );
|
||||
|
||||
// single sector towns does not give global loyalty bonus
|
||||
if( GetTownSectorSize( bTownId ) != 1 )
|
||||
{
|
||||
#ifdef JA2UB
|
||||
//Ja25: no loyalty
|
||||
#else
|
||||
HandleGlobalLoyaltyEvent( GLOBAL_LOYALTY_GAIN_TOWN_SECTOR, sMapX, sMapY, bMapZ );
|
||||
#endif
|
||||
// liberation by definition requires that the place was enemy controlled in the first place
|
||||
CheckIfEntireTownHasBeenLiberated( bTownId, sMapX, sMapY );
|
||||
}
|
||||
// liberation by definition requires that the place was enemy controlled in the first place
|
||||
CheckIfEntireTownHasBeenLiberated( bTownId, sMapX, sMapY );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -368,8 +372,9 @@ BOOLEAN SetThisSectorAsPlayerControlled( INT16 sMapX, INT16 sMapY, INT8 bMapZ, B
|
||||
//Ja25 No strategic ai
|
||||
#else
|
||||
|
||||
if( sMapX == 3 && sMapY == 16 && bMapZ == 1 )
|
||||
{ //Basement sector (P3_b1)
|
||||
if( sMapX == gModSettings.ubQueenBasementSectorX && sMapY == gModSettings.ubQueenBasementSectorY
|
||||
&& bMapZ == gModSettings.ubQueenBasementSectorZ )
|
||||
{ //Basement sector
|
||||
gfUseAlternateQueenPosition = TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user