feat: define PLACEHOLDER_ITEMID
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#define PLACEHOLDER_ITEMID "Anniversary2025Offering"
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
static std::random_device rd;
|
||||
@@ -202,7 +204,7 @@ std::string Spoofer::getRandomItem()
|
||||
for (auto* s : allSets)
|
||||
if (!s->empty()) validSets.push_back(s);
|
||||
|
||||
if (validSets.empty()) return "Spring2024Offering";
|
||||
if (validSets.empty()) return PLACEHOLDER_ITEMID;
|
||||
|
||||
std::uniform_int_distribution<> setDist(0, static_cast<int>(validSets.size()) - 1);
|
||||
const auto& selectedSet = *validSets[setDist(gen)];
|
||||
|
||||
Reference in New Issue
Block a user