Skip to content

Commit

Permalink
Nuke pet happiness from orbit.
Browse files Browse the repository at this point in the history
  • Loading branch information
haste committed Apr 28, 2011
1 parent 5ee0f82 commit 13e9782
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 103 deletions.
8 changes: 0 additions & 8 deletions colors.lua
Expand Up @@ -18,14 +18,6 @@ local colors = {
reaction = {},
}

if(not WoW41) then
colors.happiness = {
[1] = {1, 0, 0}, -- need.... | unhappy
[2] = {1, 1, 0}, -- new..... | content
[3] = {0, 1, 0}, -- colors.. | happy
}
end

-- We do this because people edit the vars directly, and changing the default
-- globals makes SPICE FLOW!
if(IsAddOnLoaded'!ClassColors' and CUSTOM_CLASS_COLORS) then
Expand Down
65 changes: 0 additions & 65 deletions elements/happiness.lua

This file was deleted.

4 changes: 0 additions & 4 deletions elements/health.lua
@@ -1,5 +1,3 @@
local WoW41 = select(4, GetBuildInfo()) == 40100

local parent, ns = ...
local oUF = ns.oUF

Expand Down Expand Up @@ -28,8 +26,6 @@ local Update = function(self, event, unit, powerType)
t = self.colors.tapped
elseif(health.colorDisconnected and not UnitIsConnected(unit)) then
t = self.colors.disconnected
elseif(not WoW41 and health.colorHappiness and UnitIsUnit(unit, "pet") and GetPetHappiness()) then
t = self.colors.happiness[GetPetHappiness()]
elseif(health.colorClass and UnitIsPlayer(unit)) or
(health.colorClassNPC and not UnitIsPlayer(unit)) or
(health.colorClassPet and UnitPlayerControlled(unit) and not UnitIsPlayer(unit)) then
Expand Down
4 changes: 0 additions & 4 deletions elements/power.lua
@@ -1,5 +1,3 @@
local WoW41 = select(4, GetBuildInfo()) == 40100

local parent, ns = ...
local oUF = ns.oUF

Expand Down Expand Up @@ -33,8 +31,6 @@ local Update = function(self, event, unit)
t = self.colors.tapped
elseif(power.colorDisconnected and not UnitIsConnected(unit)) then
t = self.colors.disconnected
elseif(not WoW41 and power.colorHappiness and UnitIsUnit(unit, "pet") and GetPetHappiness()) then
t = self.colors.happiness[GetPetHappiness()]
elseif(power.colorPower) then
local ptype, ptoken, altR, altG, altB = UnitPowerType(unit)

Expand Down
21 changes: 0 additions & 21 deletions elements/tags.lua
Expand Up @@ -2,8 +2,6 @@
-- Credits: Vika, Cladhaire, Tekkub
]]

local WoW41 = select(4, GetBuildInfo()) == 40100

local parent, ns = ...
local oUF = ns.oUF

Expand Down Expand Up @@ -343,25 +341,6 @@ local tagEvents = {
["pereclipse"] = 'UNIT_POWER',
}

if(not WoW41) then
tagStrings['happiness'] = [[function(u)
if(UnitIsUnit(u, 'pet')) then
local happiness = GetPetHappiness()
if(happiness == 1) then
return ":<"
elseif(happiness == 2) then
return ":|"
elseif(happiness == 3) then
return ":D"
end
end
end]]

tagEvents['happiness'] = 'UNIT_POWER'
end



local unitlessEvents = {
PLAYER_LEVEL_UP = true,
PLAYER_UPDATE_RESTING = true,
Expand Down
1 change: 0 additions & 1 deletion oUF.xml
Expand Up @@ -20,7 +20,6 @@
<Script file='elements\pvp.lua' />
<Script file='elements\portraits.lua' />
<Script file='elements\range.lua' />
<Script file='elements\happiness.lua' />
<Script file='elements\castbar.lua' />
<Script file='elements\threat.lua' />
<Script file='elements\tags.lua' />
Expand Down

0 comments on commit 13e9782

Please sign in to comment.