Skip to content

Commit

Permalink
Fix strategy recent
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Sep 11, 2018
1 parent 613995e commit 2097e3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified SimpleTUOptimizeStarter.exe
Binary file not shown.
8 changes: 4 additions & 4 deletions tyrant_optimize.cpp
Expand Up @@ -1298,8 +1298,8 @@ inline std::vector<std::vector<const Card*>> get_candidate_lists(Process& proc)
}
if(!contains != invert_skills) continue; //XOR
}
if(only_recent && it + player_assaults_and_structures.size()*100/recent_percent > player_assaults_and_structures.end())continue; //latest %
if(prefered_recent && it + player_assaults_and_structures.size()*100/recent_percent > player_assaults_and_structures.end()) //latest %
if(only_recent && !((it + (player_assaults_and_structures.size()*recent_percent/100) )> player_assaults_and_structures.end()))continue; //latest %
if(prefered_recent && it + (player_assaults_and_structures.size()*recent_percent)/100 > player_assaults_and_structures.end()) //latest %
{
for(unsigned k=0; k < prefered_factor;++k)
card_candidates.emplace_back(card);
Expand Down Expand Up @@ -2128,7 +2128,7 @@ int main(int argc, char** argv)
}
else if (strcmp(argv[argIndex], "strategy") == 0 || strcmp(argv[argIndex], "skill") == 0)
{
if(strcmp(argv[argIndex], "recent") == 0)
if(strcmp(argv[argIndex+1], "recent") == 0)
{
only_recent = true;
}
Expand All @@ -2146,7 +2146,7 @@ int main(int argc, char** argv)
}
else if (strcmp(argv[argIndex], "prefered-strategy") == 0 || strcmp(argv[argIndex], "prefered-skill") == 0)
{
if(strcmp(argv[argIndex], "recent") == 0)
if(strcmp(argv[argIndex+1], "recent") == 0)
{
prefered_recent = true;
}
Expand Down

0 comments on commit 2097e3d

Please sign in to comment.