autogame feature update: after enabling autogame feature, make ai use droids built while autogame feature was off

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2093 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-07-14 13:40:22 +00:00
parent c08c2ba7eb
commit db66f6c053
8 changed files with 80 additions and 32 deletions

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{

View File

@ -1250,11 +1250,8 @@ event newfortify(fortifyTr)
// droid building rules
/////////////////////////////////////////////////////////////////////
// deal with a droid being built
event droidBuilt(droidBuiltTr)
event droidBuiltAssign(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(isVtol(droid))
{
if(vtolDefendGr.members < numDefendVtols)
@ -1329,7 +1326,16 @@ event droidBuilt(droidBuiltTr)
}
}
}
}
}
//When droid built: set droid retreat level and start building next droid
event droidBuilt(droidBuiltTr)
{
local STRUCTURE _repairFacility;
if(!isVtol(droid))
{
_repairFacility = getStructure(repairFacility,me);
if(_repairFacility == NULLOBJECT)
{