Skip to content

Commit

Permalink
fix: nil value on soul war quest and log to debug (opentibiabr#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Sep 24, 2024
1 parent ae39682 commit 10823e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-otservbr-global/lib/quests/soul_war.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10823e3

Please sign in to comment.