Added resource harvesting to DSL.
This commit is contained in:
@@ -8,7 +8,7 @@ public class GameResource
|
||||
bool isEndless;
|
||||
float extractionSpeed;
|
||||
double timeSinceLastExtraction;
|
||||
ItemData item;
|
||||
public ItemData item;
|
||||
|
||||
public GameResource(string name)
|
||||
{
|
||||
@@ -34,4 +34,9 @@ public class GameResource
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool CanExtract()
|
||||
{
|
||||
return isEndless || currentAmount > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user