Changed craft times for all items,buildings, researches and added research that can change game stats/effects.
This commit is contained in:
@@ -25,13 +25,20 @@ public class Research
|
||||
elapsedResearchTime += delta;
|
||||
if (elapsedResearchTime >= data.CraftTime)
|
||||
{
|
||||
state = ResearchState.RESEARCHED;
|
||||
Complete();
|
||||
return ResearchResult.FINISHED;
|
||||
}
|
||||
|
||||
return ResearchResult.RESEARCHING;
|
||||
}
|
||||
|
||||
public void Complete()
|
||||
{
|
||||
if (state == ResearchState.RESEARCHED) return;
|
||||
|
||||
state = ResearchState.RESEARCHED;
|
||||
GameData.robotStats.Apply(data.Effects);
|
||||
}
|
||||
|
||||
public static string GetReadableName(string input)
|
||||
{
|
||||
string noUnderscore = input.Replace("_", " ").ToLower();
|
||||
|
||||
Reference in New Issue
Block a user