TaskMetaData now displays info about goal and location of the task.
This commit is contained in:
parent
34d072e7a4
commit
4b62f3746e
|
@ -138,6 +138,12 @@ namespace StarAI.ExecutionCore
|
||||||
s += "Queued Task:"+"\n";
|
s += "Queued Task:"+"\n";
|
||||||
s += " TaskName: " + this.name + "\n";
|
s += " TaskName: " + this.name + "\n";
|
||||||
s += " TaskCost: " + this.cost + "\n";
|
s += " TaskCost: " + this.cost + "\n";
|
||||||
|
if (this.locationPrerequisite.location != null)
|
||||||
|
{
|
||||||
|
s += " Task Location: " + this.locationPrerequisite.location.name + "\n";
|
||||||
|
}
|
||||||
|
TileNode t = pathsToTake.ElementAt(pathsToTake.Count - 1).ElementAt(pathsToTake.ElementAt(pathsToTake.Count - 1).Count-1);
|
||||||
|
s += " Goal Location: " + t.thisLocation.name + " " + t.tileLocation;
|
||||||
|
|
||||||
s += " Task Requires Stamina: " + this.staminaPrerequisite.requiresStamina + "\n";
|
s += " Task Requires Stamina: " + this.staminaPrerequisite.requiresStamina + "\n";
|
||||||
if(this.staminaPrerequisite.requiresStamina==true) s += " Requires : " + this.staminaPrerequisite.staminaCost + "Stamina.\n";
|
if(this.staminaPrerequisite.requiresStamina==true) s += " Requires : " + this.staminaPrerequisite.staminaCost + "Stamina.\n";
|
||||||
|
|
Loading…
Reference in New Issue