Skip to content
Permalink
Browse files

fix up some research numbers

  • Loading branch information...
Warboy1982 committed Jun 5, 2019
1 parent d32e75c commit 3ef77151254723008f819743e64dba21d008efd7
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/Savegame/ResearchProject.cpp
@@ -22,9 +22,9 @@
namespace OpenXcom
{
const float PROGRESS_LIMIT_UNKNOWN = 0.333f;
const float PROGRESS_LIMIT_POOR = 0.008f;
const float PROGRESS_LIMIT_AVERAGE = 0.14f;
const float PROGRESS_LIMIT_GOOD = 0.26f;
const float PROGRESS_LIMIT_POOR = 0.07f;
const float PROGRESS_LIMIT_AVERAGE = 0.13f;
const float PROGRESS_LIMIT_GOOD = 0.25f;

ResearchProject::ResearchProject(RuleResearch * p, int c) : _project(p), _assigned(0), _spent(0), _cost(c)
{
@@ -143,23 +143,23 @@ std::string ResearchProject::getResearchProgress() const
{
return "STR_NONE";
}
else if (progress < PROGRESS_LIMIT_UNKNOWN)
else if (progress <= PROGRESS_LIMIT_UNKNOWN)
{
return "STR_UNKNOWN";
}
else
{
float rating = (float)getAssigned();
rating /= getRules()->getCost();
if (rating < PROGRESS_LIMIT_POOR)
if (rating <= PROGRESS_LIMIT_POOR)
{
return "STR_POOR";
}
else if (rating < PROGRESS_LIMIT_AVERAGE)
else if (rating <= PROGRESS_LIMIT_AVERAGE)
{
return "STR_AVERAGE";
}
else if (rating < PROGRESS_LIMIT_GOOD)
else if (rating <= PROGRESS_LIMIT_GOOD)
{
return "STR_GOOD";
}

0 comments on commit 3ef7715

Please sign in to comment.
You can’t perform that action at this time.