add logging to ProductionItem
This commit is contained in:
@@ -123,7 +123,7 @@ namespace OpenRA.Traits
|
|||||||
return production[category];
|
return production[category];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CancelProduction( string itemName )
|
void CancelProduction( string itemName )
|
||||||
{
|
{
|
||||||
var category = Rules.Info[itemName].Category;
|
var category = Rules.Info[itemName].Category;
|
||||||
var queue = production[ category ];
|
var queue = production[ category ];
|
||||||
@@ -214,12 +214,13 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
public ProductionItem(string item, int time, int cost, Action onComplete)
|
public ProductionItem(string item, int time, int cost, Action onComplete)
|
||||||
{
|
{
|
||||||
if (time <= 0)
|
if (time <= 0) time = 1;
|
||||||
time = 1;
|
|
||||||
Item = item;
|
Item = item;
|
||||||
RemainingTime = TotalTime = time;
|
RemainingTime = TotalTime = time;
|
||||||
RemainingCost = TotalCost = cost;
|
RemainingCost = TotalCost = cost;
|
||||||
OnComplete = onComplete;
|
OnComplete = onComplete;
|
||||||
|
|
||||||
|
Log.Write("new ProductionItem: {0} time={1} cost={2}", item, time, cost);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Player player)
|
public void Tick(Player player)
|
||||||
|
|||||||
Reference in New Issue
Block a user