mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Externalized creature feeding sector CREPITUS_FEEDING_SECTOR (by Buggler)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6725 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -404,16 +404,16 @@ void InitCreatureQuest()
|
||||
}
|
||||
*/
|
||||
|
||||
// determine mine infectible status
|
||||
// determine mine infectible status in initmines.lua script
|
||||
for (x = 0; x < MAX_NUMBER_OF_MINES; x++)
|
||||
{
|
||||
if( gMineStatus[ x ].fInfectible )
|
||||
{
|
||||
if( gMineStatus[ x ].fAttackedHeadMiner ||
|
||||
//gMineStatus[ x ].uiOreRunningOutPoint ||
|
||||
!gMineStatus[ x ].fInfectible ||
|
||||
StrategicMap[ gMineStatus[ x ].StrategicIndex() ].fEnemyControlled )
|
||||
{ //If head miner was attacked, ore will/has run out, or enemy controlled
|
||||
{
|
||||
//If head miner was attacked, ore will/has run out, or enemy controlled
|
||||
fMineInfectible[ iNumMinesInfectibleLUA ] = FALSE;
|
||||
}
|
||||
iNumMinesInfectibleLUA++;
|
||||
@@ -430,7 +430,7 @@ void InitCreatureQuest()
|
||||
//// externalize to xml data
|
||||
//iNumMinesInfectible = fMineInfectible[0] + fMineInfectible[1] + fMineInfectible[2] + fMineInfectible[3];
|
||||
|
||||
//count min of infectible sites defined in xml and initmines.lua script
|
||||
//count actual infectible sites, use min of infectible sites defined in xml and initmines.lua script in case they do not tally
|
||||
for (x = 0; x < min( NUMBER_OF_INFECTIBLE_SITES, iNumMinesInfectibleLUA ); x++)
|
||||
{
|
||||
iNumMinesInfectible += fMineInfectible[x];
|
||||
@@ -1181,7 +1181,8 @@ void EndCreatureQuest()
|
||||
}
|
||||
|
||||
//Remove the creatures that are trapped underneath Tixa
|
||||
pSector = FindUnderGroundSector( gModSettings.ubTixaPrisonSectorX, gModSettings.ubTixaPrisonSectorY, 2 );
|
||||
pSector = FindUnderGroundSector( gModSettings.ubCrepitusFeedingSectorX, gModSettings.ubCrepitusFeedingSectorY,
|
||||
gModSettings.ubCrepitusFeedingSectorZ ); // (9, 10, 2)
|
||||
if( pSector )
|
||||
{
|
||||
pSector->ubNumCreatures = 0;
|
||||
|
||||
@@ -63,8 +63,8 @@ extern UINT8 NUMBER_OF_INFECTIBLE_SITES;
|
||||
extern UINT8 NUMBER_OF_CREATURE_COMPOSITIONS;
|
||||
|
||||
#define MAX_NUMBER_OF_INFECTIBLE_SITES 10
|
||||
#define MAX_NUMBER_OF_CREATURE_SECTORS 50
|
||||
#define MAX_NUMBER_OF_CREATURE_COMPOSITIONS 30
|
||||
#define MAX_NUMBER_OF_CREATURE_SECTORS 255
|
||||
#define MAX_NUMBER_OF_CREATURE_COMPOSITIONS 50
|
||||
|
||||
typedef struct CREATUREHABITAT
|
||||
{
|
||||
|
||||
@@ -2174,7 +2174,8 @@ BOOLEAN SetCurrentWorldSector( INT16 sMapX, INT16 sMapY, INT8 bMapZ )
|
||||
#ifdef JA2UB
|
||||
/* Ja25 no creatures */
|
||||
#else
|
||||
if( gWorldSectorX == 9 && gWorldSectorY == 10 && gbWorldSectorZ == 2 )
|
||||
if( gWorldSectorX == gModSettings.ubCrepitusFeedingSectorX && gWorldSectorY == gModSettings.ubCrepitusFeedingSectorY
|
||||
&& gbWorldSectorZ == gModSettings.ubCrepitusFeedingSectorZ ) // (9, 10, 2)
|
||||
{
|
||||
InitCreatureQuest(); //Ignored if already active.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user