mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
-added ENABLE_CREPITUS flag to options ini file to enable/disable crepitus even in sci-fi mode
-fixed BR's not stocking things later in game if they were illegal when game started git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@425 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -939,7 +939,7 @@ void CreatureAttackTown( UINT8 ubSectorID, BOOLEAN fOverrideTest )
|
||||
void ChooseCreatureQuestStartDay()
|
||||
{
|
||||
// INT32 iRandom, iDay;
|
||||
if( !(gGameOptions.ubGameStyle == STYLE_SCIFI) )
|
||||
if( !(gGameOptions.ubGameStyle == STYLE_SCIFI) || !gGameExternalOptions.fEnableCrepitus)
|
||||
return; //only available in science fiction mode.
|
||||
//Post the event. Once it becomes due, it will setup the queen monster's location, and
|
||||
//begin spreading and attacking towns from there.
|
||||
@@ -1385,7 +1385,7 @@ void CreatureNightPlanning()
|
||||
void CheckConditionsForTriggeringCreatureQuest( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ )
|
||||
{
|
||||
UINT8 ubValidMines = 0;
|
||||
if( !(gGameOptions.ubGameStyle == STYLE_SCIFI) )
|
||||
if( !(gGameOptions.ubGameStyle == STYLE_SCIFI) || !gGameExternalOptions.fEnableCrepitus)
|
||||
return; //No scifi, no creatures...
|
||||
if( giLairID )
|
||||
return; //Creature quest already begun
|
||||
|
||||
@@ -160,7 +160,7 @@ void InitNPCs( void )
|
||||
gfPlayerTeamSawJoey = FALSE;
|
||||
|
||||
|
||||
if ( gGameOptions.ubGameStyle == STYLE_SCIFI )
|
||||
if ( gGameOptions.ubGameStyle == STYLE_SCIFI && gGameExternalOptions.fEnableCrepitus )
|
||||
{
|
||||
// add Bob
|
||||
pProfile = &(gMercProfiles[BOB]);
|
||||
|
||||
@@ -1017,7 +1017,7 @@ BOOLEAN CheckFact( UINT16 usFact, UINT8 ubProfileID )
|
||||
break;
|
||||
|
||||
case FACT_FATHER_DRUNK_AND_SCIFI_OPTION_ON:
|
||||
gubFact[usFact] = ( ( gMercProfiles[ FATHER ].bNPCData >= 5 ) && gGameOptions.ubGameStyle == STYLE_SCIFI );
|
||||
gubFact[usFact] = ( ( gMercProfiles[ FATHER ].bNPCData >= 5 ) && gGameOptions.ubGameStyle == STYLE_SCIFI && gGameExternalOptions.fEnableCrepitus);
|
||||
break;
|
||||
|
||||
case FACT_BLOODCAT_QUEST_STARTED_TWO_DAYS_AGO:
|
||||
|
||||
@@ -1216,7 +1216,7 @@ void HandleRPCDescriptionOfSector( INT16 sSectorX, INT16 sSectorY, INT16 sSector
|
||||
if ( sSectorX == ubSectorDescription[ cnt ][ 1 ] && sSectorY == ubSectorDescription[ cnt ][ 0 ] )
|
||||
{
|
||||
// If we're not scifi, skip some
|
||||
if ( !(gGameOptions.ubGameStyle == STYLE_SCIFI) && cnt == 3 )
|
||||
if ( !(gGameOptions.ubGameStyle == STYLE_SCIFI && gGameExternalOptions.fEnableCrepitus) && cnt == 3 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user