TaskMetaData now displays info about goal and location of the task.

This commit is contained in:
2017-12-12 01:38:22 -08:00
parent 34d072e7a4
commit 4b62f3746e
1 changed files with 9 additions and 3 deletions

View File

@ -138,13 +138,19 @@ namespace StarAI.ExecutionCore
s += "Queued Task:"+"\n";
s += " TaskName: " + this.name + "\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";
if(this.staminaPrerequisite.requiresStamina==true) s += " Requires : " + this.staminaPrerequisite.staminaCost + "Stamina.\n";
s += " Task Requires Tool: " + this.toolPrerequisite.requiresTool + "\n";
if (this.toolPrerequisite.requiresTool == true) s += " Requires a : " + this.toolPrerequisite.requiredTool + "\n";
if (this.toolPrerequisite.requiresTool == true) s += " Requires a : " + this.toolPrerequisite.requiredTool + "\n";
s += " Task Requires Tool: " + this.toolPrerequisite.requiresTool + "\n";
s += " Checks if inventory full: "+this.inventoryPrerequisite.doesTaskRequireInventorySpace.ToString() + "\n";
s += " Checks if inventory full: "+this.inventoryPrerequisite.doesTaskRequireInventorySpace.ToString() + "\n";
ModCore.CoreMonitor.Log(s);
}