Skip to content

Commit

Permalink
Merge pull request #5 from cdmichaelb/cdmichaelb-patch-1
Browse files Browse the repository at this point in the history
1.2.0
  • Loading branch information
cdmichaelb authored Jan 12, 2020
2 parents 3b5b3f6 + 0932fd1 commit 7badfac
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 57 deletions.
14 changes: 14 additions & 0 deletions Documentation/RevisionHistory.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
Version 1.2.0

* Fixed some outfit generation, can now calc by resistance

* Fixed outfitter window position (thanks stefan0uh)

* Fixed various errors

Version 1.0.0 changes

* Initial Commit

--Resetting Versions for Classic

Version 5.20.3 changes

* FIXED: Prevented more custom events from being registered with the system
Expand Down
25 changes: 22 additions & 3 deletions Libraries/MC2ItemStatsLib/MC2ItemStatsLib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ Addon.ItemStatsLib.strings.CriticalStrike = "Critical Strike"
Addon.ItemStatsLib.strings.Power = ATTACK_POWER
Addon.ItemStatsLib.strings.Dodge = STAT_DODGE
Addon.ItemStatsLib.strings.ItemLevel = "Item Level"
Addon.ItemStatsLib.strings.Frost_Res = "Frost Resistance"
Addon.ItemStatsLib.strings.NatureResistance = "Nature Resistance" --Miv
Addon.ItemStatsLib.strings.Hit = ITEM_MOD_HIT_RATING_SHORT
Addon.ItemStatsLib.strings.SpellHit = ITEM_MOD_HIT_SPELL_RATING_SHORT

Addon.ItemStatsLib.strings.FrostResist = RESISTANCE4_NAME
Addon.ItemStatsLib.strings.NatureResist = RESISTANCE3_NAME --Miv
Addon.ItemStatsLib.strings.FireResist = RESISTANCE2_NAME
Addon.ItemStatsLib.strings.ShadowResist = RESISTANCE5_NAME --Miv
Addon.ItemStatsLib.strings.ArcaneResist = RESISTANCE6_NAME

Addon.ItemStatsLib.statNormalization = {}
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.Stamina] = "STA"
Expand All @@ -49,7 +55,14 @@ Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.Versatility] = "
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.Mastery] = "MAS"
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.CriticalStrike] = "CRI"
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.ItemLevel] = "ITEM_LEVEL"
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.NatureResistance] = "Nature Resistance"
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.FireResist] = RESISTANCE2_NAME
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.NatureResist] = RESISTANCE3_NAME
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.FrostResist] = RESISTANCE4_NAME
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.ShadowResist] = RESISTANCE5_NAME
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.ArcaneResist] = RESISTANCE6_NAME
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.Hit] = ITEM_MOD_HIT_RATING_SHORT
Addon.ItemStatsLib.statNormalization[Addon.ItemStatsLib.strings.SpellHit] = ITEM_MOD_HIT_SPELL_RATING_SHORT


function Addon.ItemStatsLib:statsForBagItem(bag, slot)
local stats = Addon:new(self._Stats)
Expand Down Expand Up @@ -85,14 +98,20 @@ end

function Addon.ItemStatsLib._Stats:setToLink(link)
local stats = Addon.TooltipLib:StatsForLink(link)
--print(stats[0])
--print(stats[1])
--print(stats[2])
--print(stats[3])
self:setTooltipStats(stats)
self:setInfoFromLink(link)
end

function Addon.ItemStatsLib._Stats:setTooltipStats(tooltipStats)
self.values = {}
for key, value in pairs(Addon.ItemStatsLib.statNormalization) do
--print("Key: " .. key .. " Value: " .. value)
if tooltipStats[key] then
--print("Value: " .. value .. " " .. tooltipStats[key])
self.values[value] = tooltipStats[key]
end
end
Expand Down
1 change: 0 additions & 1 deletion Outfitter.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
----------------------------------------
-- Outfitter Copyright 2006-2018 John Stephen
-- All rights reserved, unauthorized redistribution is prohibited
----------------------------------------

Outfitter.Debug =
Expand Down
2 changes: 1 addition & 1 deletion Outfitter.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 11302
## Author: John Stephen
## Title: Outfitter [Classic]
## Version: 5.22.1.classic
## Version: 1.2.0
## Notes: Clothing and weapon management and automated equipment changes. Updated for classic by Miv(aka Restoshaman) of <Onslaught>.
## OptionalDeps:
## RequiredDeps:
Expand Down
94 changes: 47 additions & 47 deletions OutfitterItemStats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,48 +218,48 @@ Outfitter.SimpleStatCategories =
{ID = "ITEM_LEVEL", Name = Outfitter.cItemLevelName},
},
},
-- {
-- CategoryID = "Melee",
-- Name = PLAYERSTAT_MELEE_COMBAT,
-- Stats =
-- {
-- {ID = "MELEE_DMG"},
-- {ID = "MELEE_HASTE_RATING"},
-- {ID = "AP"},
-- {ID = "RANGED_AP"},
-- {ID = "MELEE_HIT_RATING"},
-- {ID = "MELEE_CRIT_RATING"},
-- {ID = "EXPERTISE_RATING"},
-- {ID = "ARMOR_PENETRATION_RATING"},
-- },
-- },
-- {
-- CategoryID = "Ranged",
-- Name = PLAYERSTAT_RANGED_COMBAT,
-- Stats =
-- {
-- {ID = "RANGED_DMG"},
-- {ID = "RANGED_HASTE_RATING"},
-- {ID = "RANGED_AP"},
-- {ID = "RANGED_HIT_RATING"},
-- {ID = "RANGED_CRIT_RATING"},
-- },
-- },
-- {
-- CategoryID = "Spell",
-- Name = PLAYERSTAT_SPELL_COMBAT,
-- Stats =
-- {
-- {ID = "SPELL_DMG"},
-- {ID = "HEAL"},
-- {ID = "SPELL_HIT_RATING"},
-- {ID = "SPELL_CRIT_RATING"},
-- {ID = "SPELL_HASTE_RATING"},
-- {ID = "SPELLPEN"},
-- {ID = "MANA"},
-- {ID = "MANA_REG"},
-- },
-- },
{
CategoryID = "Melee",
Name = PLAYERSTAT_MELEE_COMBAT,
Stats =
{
--{ID = "MELEE_DMG"},
--{ID = "MELEE_HASTE_RATING"},
--{ID = "AP"},
--{ID = "RANGED_AP"},
{ID = ITEM_MOD_HIT_RATING_SHORT, Name = Outfitter.ItemStatsLib.strings.Hit},
--{ID = "MELEE_CRIT_RATING"},
--{ID = "EXPERTISE_RATING"},
--{ID = "ARMOR_PENETRATION_RATING"},
},
},
{
CategoryID = "Ranged",
Name = PLAYERSTAT_RANGED_COMBAT,
Stats =
{
--{ID = "RANGED_DMG"},
--{ID = "RANGED_HASTE_RATING"},
--{ID = "RANGED_AP"},
--{ID = "RANGED_HIT_RATING"},
--{ID = "RANGED_CRIT_RATING"},
},
},
{
CategoryID = "Spell",
Name = PLAYERSTAT_SPELL_COMBAT,
Stats =
{
--{ID = "SPELL_DMG"},
--{ID = "HEAL"},
{ID = ITEM_MOD_HIT_SPELL_RATING_SHORT, Name = Outfitter.ItemStatsLib.strings.SpellHit},
--{ID = "SPELL_CRIT_RATING"},
--{ID = "SPELL_HASTE_RATING"},
--{ID = "SPELLPEN"},
--{ID = "MANA"},
--{ID = "MANA_REG"},
},
},
-- {
-- CategoryID = "Defense",
-- Name = PLAYERSTAT_DEFENSES,
Expand All @@ -280,11 +280,11 @@ Outfitter.SimpleStatCategories =
Name = Outfitter.cResistCategory,
Stats =
{
{ID = "ARCANE_RES"},
{ID = "FIRE_RES"},
{ID = "FROST_RES", Name = Outfitter.ItemStatsLib.strings.FrostResistance},
{ID = "NATURE_RES", Name = Outfitter.ItemStatsLib.strings.NatureResistance}, --Miv
{ID = "SHADOW_RES"},
{ID = RESISTANCE6_NAME, Name = Outfitter.ItemStatsLib.strings.ArcaneResist},
{ID = RESISTANCE2_NAME, Name = Outfitter.ItemStatsLib.strings.FireResist},
{ID = RESISTANCE4_NAME, Name = Outfitter.ItemStatsLib.strings.FrostResist},
{ID = ESISTANCE3_NAME, Name = Outfitter.ItemStatsLib.strings.NatureResist}, --Miv
{ID = RESISTANCE5_NAME, Name = Outfitter.ItemStatsLib.strings.ShadowResist},
},
},
-- {
Expand Down
5 changes: 3 additions & 2 deletions OutfitterOptimize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Outfitter.cStatIDItems =

function Outfitter:GenerateSmartOutfit(pName, pStatConfig, pInventoryCache, pAllowEmptyOutfit, pCompletionFunc)
pInventoryCache:ResetIgnoreItemFlags()

--print(pStatConfig)
if type(pStatConfig) == "string" then
local vStatID = pStatConfig

Expand Down Expand Up @@ -63,9 +63,10 @@ function Outfitter:GenerateSmartOutfit(pName, pStatConfig, pInventoryCache, pAll

if not vStat then
Outfitter:ErrorMessage("Unknown stat ID: %s", tostring(vConfig.StatID))
--print("Unknown stat ID: %s", tostring(vConfig.StatID))
return
end

--print(vConfig.StatID)
table.insert(vStatConfig, {Stat = vStat, StatID = vConfig.StatID, MinValue = vConfig.MinValue, MaxValue = vConfig.MaxValue})
end

Expand Down
2 changes: 1 addition & 1 deletion OutfitterScripting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ end
function Outfitter:GenerateSmartUnequipScript(pEventID, pDescription, pUnequipDelay, pIncludeSpecEnables)
local vScript
local vEventIDs

pIncludeSpecEnables = false
vEventIDs = pEventID.." NOT_"..pEventID
if pIncludeSpecEnables then
vEventIDs = vEventIDs.." ACTIVE_TALENT_GROUP_CHANGED"
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
Initial Release of Classic Port

Forked from https://github.com/Mundocani/Outfitter by John Stephen






----------------------------------------------
<ONSLAUGHT> on Skeram PvP is recruiting. World First Horde Ragnaros and Fastest Horde MC in Phase One. If you're interested in pushing speed/faction first and server first kills then apply here: http://onslaught-wow.com/recruitment-application/

0 comments on commit 7badfac

Please sign in to comment.