diff --git a/src/client/game/demonware/loot/loot.cpp b/src/client/game/demonware/loot/loot.cpp index 8dde5c8..aa6b8f7 100644 --- a/src/client/game/demonware/loot/loot.cpp +++ b/src/client/game/demonware/loot/loot.cpp @@ -508,7 +508,7 @@ namespace demonware case 70005: // ZombieRareCardPack return get_random_loot_ZombieRareCardPack(); default: - printf("[DW]: Missing LootCrate logic for %d, using CommonCrate\n", lootbox_id); + printf("[DW]: Missing LootCrate logic for %d\n", lootbox_id); return {}; } } @@ -539,18 +539,6 @@ namespace demonware field = value; } - template void json_add(nlohmann::json& field, T value) - { - if (!field.is_null()) - { - field = field.get(); - } - else - { - field = value; - } - } - template T json_read(nlohmann::json& field) { if (!field.is_null()) diff --git a/src/client/game/demonware/reply.hpp b/src/client/game/demonware/reply.hpp index 2041d66..b97fb8f 100644 --- a/src/client/game/demonware/reply.hpp +++ b/src/client/game/demonware/reply.hpp @@ -171,11 +171,6 @@ namespace demonware this->objects_.emplace_back(std::move(object)); } - void set_error(uint32_t err) - { - this->error_ = err; - } - private: uint8_t type_; uint32_t error_; diff --git a/src/client/game/demonware/services/bdReward.cpp b/src/client/game/demonware/services/bdReward.cpp index 6fe9a48..c0cbd5b 100644 --- a/src/client/game/demonware/services/bdReward.cpp +++ b/src/client/game/demonware/services/bdReward.cpp @@ -51,6 +51,7 @@ namespace demonware buffer->read_uint16(&numEvents); buffer->read_int32(&rewardEventType); // none 0, json 1 + assert(rewardEventType == 1); assert(numEvents == 1); buffer->read_string(&json_buffer); @@ -205,7 +206,7 @@ namespace demonware send(json_reply); } - else if (action == "StartMission") + /*else if (action == "StartMission") { printf("%s\n", json_buffer.data()); //const auto match_id = json["MatchId"].get(); @@ -227,10 +228,10 @@ namespace demonware else if (action == "ResetMissions") { printf("%s\n", json_buffer.data()); - } + }*/ else { - printf("[DW]: unhandled reward action \"%s\"...\n", action.data()); + //printf("[DW]: unhandled reward action \"%s\"...\n", action.data()); } server->create_reply(this->task_id(), BD_NO_ERROR).send();