Code: Select all
// Remove some categories that we don't think we need since we have too few of them
if (name.find("ctrl") != std::string::npos
|| name.find("arm") != std::string::npos
|| name.find("core") != std::string::npos
|| name.find("level") != std::string::npos
|| name.find("energy") != std::string::npos
|| name.find("storage") != std::string::npos
|| name.find("defensive") != std::string::npos
|| name.find("extractor") != std::string::npos
|| name.find("metal") != std::string::npos
|| name.find("torp") != std::string::npos)
return 0;