Skip to content

Commit

Permalink
fix: colored loot message on bosses
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires committed Feb 7, 2025
1 parent 11f9b0a commit 03fce0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/scripts/systems/reward_chest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function bossDeath.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUn
reward:addRewardBossItems(playerLoot)

if con.player then
local lootMessage = ("The following items dropped by %s are available in your reward chest: %s"):format(creature:getName(), reward:getContentDescription())
local collorMessage = player:getClient().version > 1200
local lootMessage = ("The following items dropped by %s are available in your reward chest: %s"):format(creature:getName(), reward:getContentDescription(collorMessage))
if rolls > 1 then
lootMessage = lootMessage .. " (boss bonus)"
end
Expand Down

0 comments on commit 03fce0b

Please sign in to comment.