Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/queueplanResearch.js
var PETRA = function(m) | (function(m) | ||||
{ | { | ||||
m.ResearchPlan = function(gameState, type, rush = false) | m.ResearchPlan = function(gameState, type, rush = false) | ||||
{ | { | ||||
if (!m.QueuePlan.call(this, gameState, type, {})) | if (!m.QueuePlan.call(this, gameState, type, {})) | ||||
return false; | return false; | ||||
if (this.template.researchTime === undefined) | if (this.template.researchTime === undefined) | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
for (let key in data) | for (let key in data) | ||||
this[key] = data[key]; | this[key] = data[key]; | ||||
this.cost = new API3.Resources(); | this.cost = new API3.Resources(); | ||||
this.cost.Deserialize(data.cost); | this.cost.Deserialize(data.cost); | ||||
}; | }; | ||||
return m; | }(PETRA)); | ||||
}(PETRA); |
Wildfire Games · Phabricator