v0.14.6.0
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
using Barotrauma.Items.Components;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
abstract class ShipIssueWorkerItem : ShipIssueWorker
|
||||
{
|
||||
public ShipIssueWorkerItem(ShipCommandManager shipCommandManager, Order order, Item targetItem, ItemComponent targetItemComponent, string option = null) : base(shipCommandManager, order, option)
|
||||
{
|
||||
TargetItemComponent = targetItemComponent;
|
||||
TargetItem = targetItem;
|
||||
}
|
||||
|
||||
protected override bool IsIssueViable()
|
||||
{
|
||||
if (TargetItemComponent == null)
|
||||
{
|
||||
DebugConsole.ThrowError("TargetItemComponent was null in " + this);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (TargetItem == null)
|
||||
{
|
||||
DebugConsole.ThrowError("TargetItem was null in " + this);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user