From a8b5e0148f78f6b84360a356c7add7e93e5ce4dd Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 11 Apr 2026 15:51:11 -0300 Subject: [PATCH] style: add additional comments --- src/unlocker/spoofing.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/unlocker/spoofing.cpp b/src/unlocker/spoofing.cpp index 492ca65..8c0feae 100644 --- a/src/unlocker/spoofing.cpp +++ b/src/unlocker/spoofing.cpp @@ -327,9 +327,9 @@ void Spoofer::modifyCharacterData(json& js) for (auto& item : js["characterItems"]) { - /* - set existing items to rnd number - */ + /* + set existing items to rnd number + */ if (item.contains("itemId") && item["itemId"].is_string()) { std::string itemId = item["itemId"]; @@ -539,6 +539,9 @@ void Spoofer::onBloodweb(std::string& body, std::string& respHeaders) json doc = json::parse(body, nullptr, false); if (doc.is_discarded()) return Log::error("JSON parse error for bloodweb response"); + /* + return fake bloodweb data + */ if (_config.spoofCharacterOwnership) { if (body.find("NotAllowedException") != std::string::npos && body.find("not owned") != std::string::npos) @@ -596,6 +599,9 @@ void Spoofer::onBloodweb(std::string& body, std::string& respHeaders) } } + /* + prevent bloodweb reqs from overriding inventory values + */ modifyCharacterData(doc); body = doc.dump(); #ifdef _DEBUG