petra cleanup
This was SVN commit r21673.
This commit is contained in:
parent
e12bfd26ef
commit
8d9405db8f
@ -71,10 +71,10 @@ m.BaseManager.prototype.reset = function(gameState, state)
|
||||
else
|
||||
this.constructing = false;
|
||||
|
||||
if (state != "captured")
|
||||
if (state != "captured" || this.Config.difficulty < 3)
|
||||
this.neededDefenders = 0;
|
||||
else
|
||||
this.neededDefenders = this.Config.difficulty > 2 ? 3 + 2*(this.Config.difficulty - 3) : 0;
|
||||
this.neededDefenders = 3 + 2 * (this.Config.difficulty - 3);
|
||||
};
|
||||
|
||||
m.BaseManager.prototype.assignEntity = function(gameState, ent)
|
||||
@ -243,7 +243,6 @@ m.BaseManager.prototype.removeDropsite = function(gameState, ent)
|
||||
}
|
||||
|
||||
this.dropsites[ent.id()] = undefined;
|
||||
return;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -169,13 +169,13 @@ m.Config.prototype.setConfig = function(gameState)
|
||||
{
|
||||
this.Economy.supportRatio = 0.5;
|
||||
this.Economy.provisionFields = 1;
|
||||
this.Military.numSentryTowers = this.personality.defensive > 0.66 ? 1 : 0;
|
||||
this.Military.numSentryTowers = this.personality.defensive > this.personalityCut.strong ? 1 : 0;
|
||||
}
|
||||
else if (this.difficulty < 3)
|
||||
{
|
||||
this.Economy.supportRatio = 0.4;
|
||||
this.Economy.provisionFields = 1;
|
||||
this.Military.numSentryTowers = this.personality.defensive > 0.66 ? 1 : 0;
|
||||
this.Military.numSentryTowers = this.personality.defensive > this.personalityCut.strong ? 1 : 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -185,9 +185,9 @@ m.Config.prototype.setConfig = function(gameState)
|
||||
this.Military.numSentryTowers = 1;
|
||||
else
|
||||
this.Military.numSentryTowers = 2;
|
||||
if (this.personality.defensive > 0.66)
|
||||
if (this.personality.defensive > this.personalityCut.strong)
|
||||
++this.Military.numSentryTowers;
|
||||
else if (this.personality.defensive < 0.33)
|
||||
else if (this.personality.defensive < this.personalityCut.weak)
|
||||
--this.Military.numSentryTowers;
|
||||
|
||||
if (this.personality.aggressive > this.personalityCut.strong)
|
||||
|
Loading…
Reference in New Issue
Block a user