Skip to content

Commit

Permalink
Mtn v3 - fix bug upon season reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Jul 29, 2024
1 parent 972b8d4 commit 3be9e85
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions maps/mountain_fortress_v3/stateful/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,17 @@ local function notify_season_over_to_discord()
for name, buff_data in pairs(stateful.buffs_collected) do
if type(buff_data.amount) ~= 'table' and name ~= 'starting_items' then
if name == 'xp_level' or name == 'xp_bonus' or name == 'character_health_bonus' then
buffs = buffs .. buff_to_string[name] .. ': ' .. buff_data.count
if buff_data.count and buff_to_string[name] then
buffs = buffs .. buff_to_string[name] .. ': ' .. buff_data.count
else
buffs = buffs .. name .. ': Active'
end
else
buffs = buffs .. buff_to_string[name] .. ': ' .. (buff_data.count * 100) .. '%'
if buff_data.count and buff_to_string[name] then
buffs = buffs .. buff_to_string[name] .. ': ' .. (buff_data.count * 100) .. '%'
else
buffs = buffs .. name .. ': Active'
end
end
buffs = buffs .. '\n'
end
Expand Down

0 comments on commit 3be9e85

Please sign in to comment.