This commit is contained in:
Regalis
2015-07-31 21:05:55 +03:00
parent 23d847a4ac
commit 85b0cda4ca
181 changed files with 4455 additions and 4073 deletions
+22
View File
@@ -0,0 +1,22 @@
namespace Subsurface
{
class RepairTask : Task
{
Item item;
public RepairTask(Item item, float priority, string name)
: base(priority, name)
{
if (taskManager == null) return;
this.item = item;
taskManager.TaskStarted(this);
}
public override void Update(float deltaTime)
{
if (item.Condition > 50.0f) Finished();
}
}
}