JSAI: cleanup

Rename a couple of inconsistent methods
Make the AILib object use private and prototype functions for efficiency
Start reorganising the AILib file to make it easier to edit in future
This commit is contained in:
cim 2013-07-26 18:52:11 +01:00
parent be388e4fa2
commit a7eb0bf1bf
3 changed files with 3103 additions and 3021 deletions

View File

@ -56,7 +56,7 @@ this.aiStarted = function() {
reconsider: 5
},
{
condition: ai.conditionThargonIsActive,
condition: ai.conditionIsActiveThargon,
behaviour: ai.behaviourBecomeInactiveThargon,
reconsider: 10
},

View File

@ -81,7 +81,7 @@ this.aiStarted = function() {
condition: ai.conditionSelectedStationNearMainPlanet,
truebranch: [
{
notcondition: ai.conditionNearMainPlanet,
notcondition: ai.conditionMainPlanetNearby,
configuration: ai.configurationSetDestinationToMainPlanet,
behaviour: ai.behaviourApproachDestination,
reconsider: 30

File diff suppressed because it is too large Load Diff