From 10823e3ba7a8cc4100fc56a5197421c71fc52042 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Tue, 24 Sep 2024 01:05:21 -0300 Subject: [PATCH] fix: nil value on soul war quest and log to debug (#2906) Resolves #2897 --- data-otservbr-global/lib/quests/soul_war.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-otservbr-global/lib/quests/soul_war.lua b/data-otservbr-global/lib/quests/soul_war.lua index a9e9d920e91..668c67f92b9 100644 --- a/data-otservbr-global/lib/quests/soul_war.lua +++ b/data-otservbr-global/lib/quests/soul_war.lua @@ -1112,9 +1112,9 @@ function MonsterType:calculateBagYouDesireChance(player, itemChance) itemChance = itemChance + (playerTaintLevel * SoulWarQuest.bagYouDesireChancePerTaint) end - logger.info("Player {} killed {} with {} taints, loot chance {}", player:getName(), monsterName, playerTaintLevel, itemChance) + logger.debug("Player {} killed {} with {} taints, loot chance {}", player:getName(), monsterName, playerTaintLevel, itemChance) - if math.random(1, 100000) <= totalChance then + if math.random(1, 100000) <= itemChance then logger.debug("Player {} killed {} and got a bag you desire with drop chance {}", player:getName(), monsterName, itemChance) if monsterName == "Goshnar's Megalomania" then -- Reset kill count on successful drop