forked from aly/qstbak
18 lines
419 B
C#
18 lines
419 B
C#
namespace Questionable.Controller.Conditions;
|
|
|
|
internal sealed class InventoryFullCondition : StopCondition
|
|
{
|
|
public override bool IsSession => false;
|
|
|
|
public override EStopConditionType Type => EStopConditionType.InventoryFull;
|
|
|
|
public override bool Evaluate(StopEvaluationContext context)
|
|
{
|
|
return context.FreeInventorySlots == 0;
|
|
}
|
|
|
|
public override string GetDescription()
|
|
{
|
|
return "Inventory full";
|
|
}
|
|
}
|