Index: binaries/data/mods/public/art/actors/structures/carthaginians/blacksmith.xml
===================================================================
--- binaries/data/mods/public/art/actors/structures/carthaginians/blacksmith.xml
+++ binaries/data/mods/public/art/actors/structures/carthaginians/blacksmith.xml
@@ -6,8 +6,6 @@
structural/kart_blacksmith.dae
-
-
@@ -19,6 +17,15 @@
+
+
+
+
+
+
+
+
+
Index: binaries/data/mods/public/simulation/components/ProductionQueue.js
===================================================================
--- binaries/data/mods/public/simulation/components/ProductionQueue.js
+++ binaries/data/mods/public/simulation/components/ProductionQueue.js
@@ -350,7 +350,12 @@
let cmpTechnologyManager = QueryOwnerInterface(this.entity, IID_TechnologyManager);
cmpTechnologyManager.QueuedResearch(templateName, this.entity);
if (this.queue.length == 0)
+ {
cmpTechnologyManager.StartedResearch(templateName, false);
+ let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual)
+ if (cmpVisual)
+ cmpVisual.SelectAnimation("researching", false, 1.0);
+ }
this.queue.push({
"id": this.nextID++,
@@ -447,6 +452,9 @@
// item.player is used as this.entity's owner may be invalid (deletion, etc.)
var cmpTechnologyManager = QueryPlayerIDInterface(item.player, IID_TechnologyManager);
cmpTechnologyManager.StoppedResearch(item.technologyTemplate, true);
+ let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual)
+ if (cmpVisual)
+ cmpVisual.SelectAnimation("idle", false, 1.0);
}
// Remove from the queue
@@ -704,6 +712,9 @@
// Mark the research as started.
var cmpTechnologyManager = QueryOwnerInterface(this.entity, IID_TechnologyManager);
cmpTechnologyManager.StartedResearch(item.technologyTemplate, true);
+ let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual)
+ if (cmpVisual)
+ cmpVisual.SelectAnimation("researching", false, 1.0);
}
item.productionStarted = true;
@@ -763,9 +774,10 @@
{
var cmpTechnologyManager = QueryOwnerInterface(this.entity, IID_TechnologyManager);
cmpTechnologyManager.ResearchTechnology(item.technologyTemplate);
-
+ let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual)
+ if (cmpVisual)
+ cmpVisual.SelectAnimation("idle", false, 1.0);
let template = TechnologyTemplates.Get(item.technologyTemplate);
-
if (template && template.soundComplete)
{
var cmpSoundManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_SoundManager);