1

Renamed iPickupDelay to iPickupDelayMs

This commit is contained in:
Eddoursul 2024-07-04 22:07:23 +02:00
parent 5f70eeba61
commit 29ee948bd4

View File

@ -8,7 +8,7 @@ RE::BGSKeyword* EventListener::keywordIngot;
inline std::map<std::string, std::any> g_settings{ inline std::map<std::string, std::any> g_settings{
{ "iRadius", 350 }, { "iRadius", 350 },
{ "iPickupDelay", 100 }, { "iPickupDelayMs", 100 },
{ "bPickupGold", true }, { "bPickupGold", true },
{ "bPickupLockpicks", true }, { "bPickupLockpicks", true },
{ "bPickupMaterials", true }, { "bPickupMaterials", true },
@ -164,7 +164,7 @@ auto EventListener::ProcessEvent(
std::thread([refQueue]() { std::thread([refQueue]() {
RE::ScriptEventSourceHolder::GetSingleton()->GetEventSource<RE::TESActivateEvent>()->RemoveEventSink(EventListener::GetSingleton()); RE::ScriptEventSourceHolder::GetSingleton()->GetEventSource<RE::TESActivateEvent>()->RemoveEventSink(EventListener::GetSingleton());
int iPickupDelay = std::any_cast<int>(g_settings["iPickupDelay"]); int iPickupDelay = std::any_cast<int>(g_settings["iPickupDelayMs"]);
for (const auto& item : refQueue) { for (const auto& item : refQueue) {
std::this_thread::sleep_for(std::chrono::milliseconds(iPickupDelay)); std::this_thread::sleep_for(std::chrono::milliseconds(iPickupDelay));