WoWInterface SVN BonusScannerContinued

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/BonusScanner
    from Rev 39 to Rev 40
    Reverse comparison

Rev 39 → Rev 40

BonusScanner.lua
1,5 → 1,5
--------------------------------------------------
-- BonusScanner Continued v5.1
-- BonusScanner Continued v5.2
-- Originally developed by Crowley <crowley@headshot.de>
-- performance improvements by Archarodim
-- Updated for WoW 2.0 by jmlsteele
15,7 → 15,7
local _G = getfenv(0);
 
-- Initialize locals/tables
local BONUSSCANNER_VERSION = "5.1";
local BONUSSCANNER_VERSION = "5.2";
 
-- Patterns
local BONUSSCANNER_PATTERN_SETNAME = "^(.*) %(%d/%d%)$";
174,8 → 174,8
local BaseRatings = {
{ effect = "EXPERTISE", baseval = 2.5},
{ effect = "DEFENSE", baseval = 1.5},
{ effect = "DODGE", baseval = 12},
{ effect = "PARRY", baseval = 15},
{ effect = "DODGE", baseval = 13.8}, -- 3.2 Dodge Rating: The amount of dodge rating required per percentage of dodge has been increased by 15%.
{ effect = "PARRY", baseval = 13.8}, -- 3.2 Parry Rating: The amount of parry rating required per percentage of parry has been reduced by 8%.
{ effect = "BLOCK", baseval = 5},
{ effect = "TOHIT", baseval = 10},
{ effect = "CRIT", baseval = 14},
186,7 → 186,7
{ effect = "SPELLCRIT", baseval = 14},
{ effect = "HOLYCRIT", baseval = 14},
{ effect = "SPELLH", baseval = 10},
{ effect = "RESILIENCE", baseval = 25},
{ effect = "RESILIENCE", baseval = 28.75}, -- 3.2 Resilience: The amount of resilience needed to reduce critical strike chance, critical strike damage and overall damage has been increased by 15%.
{ effect = "ARMORPEN", baseval = 3.756097412109376} -- 3.1 Armor Penetration Rating: All classes now receive 25% more benefit from Armor Penetration Rating.
}
 
280,7 → 280,7
level = 34
end
if level < 10 then
return 52 / (10 - 8)
return 52 / 2
elseif level <= 60 then
return 52 / (level - 8)
elseif level <= 70 then
1017,13 → 1017,13
if not value then
_, _, token, value = string.find(tmpStr, BONUSSCANNER_PATTERN_GENERIC_SUFFIX2)
end
 
 
if token and value then
-- trim token
token = string.gsub( token, "^%s+", "" )
token = string.gsub( token, "%s+$", "" )
token = string.gsub( token, "%.$", "" )
token = string.gsub( token, "|r", "" )
token = string.gsub( token, "|r", "" )
 
if self:CheckToken(token,value) then
found = true
1066,7 → 1066,7
-- Last fallback for non generic/special enchants/effects, like "Mana Regen x per 5 sec."
function BonusScanner:CheckOther(line)
local i, p, value, start, found
 
 
for i,p in pairs(L["BONUSSCANNER_PATTERNS_OTHER"]) do
start, _, value = string.find(line, "^" .. p.pattern)
if start then
BonusScanner.toc
1,6 → 1,6
## Interface: 30200
## Title: BonusScanner Continued |cff00aa005.1|r
## Version: 5.1
## Title: BonusScanner Continued |cff00aa005.2|r
## Version: 5.2
## Notes: Scans your Equipment for cumulative item bonuses and sums them up. Currently maintained and updated by Tristanian.
## Notes-deDE: Durchsucht die Ausrüstung nach Gegenstandboni und zählt diese zusammen.
## Author: Tristanian (tristanian@live.com)
Changelog.txt
1,3 → 1,10
5.2 Tristanian 2009.08.09
- Updated libraries.
- Updated base ratings for 3.2, in accordance with the following changes:
Dodge Rating: The amount of dodge rating required per percentage of dodge has been increased by 15%.
Parry Rating: The amount of parry rating required per percentage of parry has been reduced by 8%.
Resilience: The amount of resilience needed to reduce critical strike chance, critical strike damage and overall damage has been increased by 15%.
------------------------------------------------
5.1 Tristanian 2009.08.04
- Major update.
- Updated toc for 30200 (WoW 3.2).
libs/LibTipHooker-1.1/LibTipHooker-1.1.lua
1,18 → 1,24
--[[
Name: LibTipHooker-1.1.lua
Description: A Library for hooking tooltips.
Revision: $Revision: 5 $
Revision: $Revision: 7 $
Author: Whitetooth
Email: hotdogee [at] gmail [dot] com
LastUpdate: $Date: 2009-07-08 10:06:02 +0000 (Wed, 08 Jul 2009) $
LastUpdate: $Date: 2009-08-09 17:24:10 +0000 (Sun, 09 Aug 2009) $
Website:
Documentation:
SVN: $URL $
License: LGPL v3
]]
 
-- This library is still in early development
 
--[[ Features
{
1. Why not use the OnTooltipSetItem script hook?
OnTooltipSetItem is bugged that it's called twice on proffesion patterns, once for the pattern and once for the item it makes.
2. Maintains support for most tooltip mods
3. Hooks dynamically created tooltips
}
--]]
--[[ Tips for using TipHooker
{
This library provides tooltip hooks, mainly for use with item tooltip modification, you can easily append or modify text in a tooltip with TipHookerLib.
26,7 → 32,7
 
 
local MAJOR = "LibTipHooker-1.1"
local MINOR = "$Revision: 5 $"
local MINOR = "$Revision: 7 $"
 
local TipHooker = LibStub:NewLibrary(MAJOR, MINOR)
if not TipHooker then return end
65,14 → 71,12
"ShoppingTooltip",
"ComparisonTooltip",-- EquipCompare
"EQCompareTooltip",-- EQCompare
"tekKompareTooltip",-- takKompare
--"IRR_",-- LinkWrangler
"tekKompareTooltip",-- tekKompare
"LinkWrangler",-- LinkWrangler
"LinksTooltip",-- Links
"AtlasLootTooltip",-- AtlasLoot
"ItemMagicTooltip",-- ItemMagic
"SniffTooltip",-- Sniff
--"LH_",-- LinkHeaven
"MirrorTooltip",-- Mirror
"TooltipExchange_TooltipShow",-- TooltipExchange
"AtlasQuestTooltip",-- AtlasQuest
106,8 → 110,6
"SetLootItem",
"SetLootRollItem",
-- crafting
"SetCraftSpell",
"SetCraftItem",
"SetTradeSkillItem",
"SetTrainerService",
-- mail
130,6 → 132,9
"SetHyperlinkCompareItem",
-- 2.3.0
"SetGuildBankItem",
-- 3.0
"SetCurrencyToken",
"SetBackpackToken",
},
buff = {
"SetPlayerBuff",
155,9 → 160,8
 
local HandlerList = TipHooker.HandlerList or {}
TipHooker.HandlerList = HandlerList
local origs = {}
local Set = {
item = function(tooltip)
item = function(tooltip, ...)
if not tooltip.GetItem then return end
local name, link = tooltip:GetItem()
if not name then return end -- Check if tooltip really has an item