Skip to content

Commit

Permalink
refactor: clean up default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevallin committed Dec 20, 2020
1 parent 17768fd commit f0f492a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ function Addon:OnInitialize()
descStyle = "inline",
args = instances
}


-- Set up some common state variables
self.is_in_party_or_raid = false
self.current_difficulty = "NORMAL"

-- Setup the items cache
self.items = {}
Expand Down Expand Up @@ -542,8 +542,8 @@ function Addon:UPDATE_INSTANCE_INFO(event, ...)
local raid = itype == "raid"
local party = itype == "party"

self["is_in_party_or_raid"] = (raid or party)
self["current_difficulty"] = Difficulty:LookupID(difficultyID)
self.is_in_party_or_raid = (raid or party)
self.current_difficulty = Difficulty:LookupID(difficultyID)

self:Debug("updating instance info")
end
Expand Down

0 comments on commit f0f492a

Please sign in to comment.