Skip to content

Commit

Permalink
Merge pull request #1722 from Nisugi/master
Browse files Browse the repository at this point in the history
[spellwindows.lic] v1.4 bug fix updates
  • Loading branch information
mrhoribu authored Dec 31, 2024
2 parents 96cdb9e + 1b20571 commit d701c8f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions scripts/SpellWindows.lic
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
contributors: Nisugi
game: Gemstone
tags: hunting, combat, tracking, spells, buffs, debuffs, cooldowns
version: 1.3
version: 1.4
required: Wrayth
Change Log:
v1.4 (2024-12-31)
- fixed syntax error
v1.3 (2024-12-14)
- target_window back in
- dynamic window updating
Expand Down Expand Up @@ -388,17 +390,16 @@ module SpellWindow
duration > (last_state[window][spell] || 0)
end

if current_state[window].keys.map(&:to_s).sort != last_state[window].keys.map(&:to_s).sort ||
status != last_state['status'][window] || duration_increased
if current_state[window].keys.map(&:to_s).sort != last_state[window].keys.map(&:to_s).sort || status != last_state['status'][window] || duration_increased
case window
when 'active_spells'
output += SpellWindow.build_output(Effects::Spells, 'Active Spells', last_state['status']['active_spells']) if @show_spells
output += SpellWindow.build_output(Effects::Spells, 'Active Spells') if @show_spells
when 'buffs'
output += SpellWindow.build_output(Effects::Buffs, 'Buffs', last_state['status']['buffs']) if @show_buffs
output += SpellWindow.build_output(Effects::Buffs, 'Buffs') if @show_buffs
when 'debuffs'
output += SpellWindow.build_output(Effects::Debuffs, 'Debuffs', last_state['status']['debuffs']) if @show_debuffs
output += SpellWindow.build_output(Effects::Debuffs, 'Debuffs') if @show_debuffs
when 'cooldowns'
output += SpellWindow.build_output(Effects::Cooldowns, 'Cooldowns', last_state['status']['cooldowns']) if @show_cooldowns
output += SpellWindow.build_output(Effects::Cooldowns, 'Cooldowns') if @show_cooldowns
when 'missing_spells'
output += SpellWindow.missing_spells
end
Expand All @@ -421,13 +422,13 @@ module SpellWindow

case window
when 'active_spells'
window_outputs[window] = SpellWindow.build_output(Effects::Spells, 'Active Spells', last_state['status']['active_spells']) if @show_spells
window_outputs[window] = SpellWindow.build_output(Effects::Spells, 'Active Spells') if @show_spells
when 'buffs'
window_outputs[window] = SpellWindow.build_output(Effects::Buffs, 'Buffs', last_state['status']['buffs']) if @show_buffs
window_outputs[window] = SpellWindow.build_output(Effects::Buffs, 'Buffs') if @show_buffs
when 'debuffs'
window_outputs[window] = SpellWindow.build_output(Effects::Debuffs, 'Debuffs', last_state['status']['debuffs']) if @show_debuffs
window_outputs[window] = SpellWindow.build_output(Effects::Debuffs, 'Debuffs') if @show_debuffs
when 'cooldowns'
window_outputs[window] = SpellWindow.build_output(Effects::Cooldowns, 'Cooldowns', last_state['status']['cooldowns']) if @show_cooldowns
window_outputs[window] = SpellWindow.build_output(Effects::Cooldowns, 'Cooldowns') if @show_cooldowns
end

if window_outputs[window] != old_outputs[window]
Expand Down

0 comments on commit d701c8f

Please sign in to comment.