view abbreviations.lua @ 147:e1a90e398231

Add unique seconds to history timestamp. Rewrite :format_timestamp to suck less. Include seconds in the formatted history timestamp, because preening fails horribly when the same person has received multiple pieces of loot within the same "minute". Ensure the timestamps are unique if needed; fast looting easily results in multiple loot events per second. Tweak wording of some GUI warnings.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Tue, 30 Dec 2014 20:26:41 -0500
parents d7ece3ba6505
children 55018c10f3a5
line wrap: on
line source
--[==[
If you want to change these to something else, like in-jokes for your guild,
write a small addon like this.  Lines with * are crucial and should not be
changed from how they're shown here.

      Interface/AddOns/YourMod/YourMod.toc:
        =================================
        ## Interface: xxxxx
        ## Title: Ouro Loot For My Guild
      * ## RequiredDeps: Ouro_Loot
      * ## LoadOnDemand: 1
      * ## LoadWith: Ouro_Loot
    
        main.lua
        =================================

Then replace specific entries like this:

      Interface/AddOns/YourMod/main.lua:
        =================================
      * local ouroloot = LibStub("AceAddon-3.0"):GetAddon("Ouro Loot")
    
        ouroloot.instance_abbrev["The Bastion of Twilight"] =
            [[Steve Said He Would /gquit If We Make Him Go Here Ever Again]]

        ouroloot.boss_abbrev["Omnotron Defense System"] =
            [[Jim Will Facetank The Slimes Now]]

        ouroloot:Print [[Tweaked stuff for mah guildies!]]
        =================================

This lets you update Ouro Loot with a new version (which would overwrite
this file) without losing any of your changes.
]==]

local addon = select(2,...)
if addon.NOLOAD then return end

--[==[
The index is the universal InstanceMapID value, which can be looked up here:
   http://wowpedia.org/InstanceMapID
You can also use the official English localized name, which was the only
available method in the past.  Note that those names are case-sensistive.
]==]
addon.instance_abbrev = {
	-------- WoD
	--[1228] = "HM", -- Highmaul
	[1205] = "BRF", -- Blackrock Foundry

	-------- MoP
	[1008] = "MV", -- Mogu'shan Vaults
	[1009] = "HoF", -- Heart of Fear
	[996] = "ToES", -- Terrace of Endless Spring
	[1098] = "ToT", -- Throne of Thunder
	[1136] = "SoO", -- Siege of Orgrimmar

	-------- Cata
	[757] = "BH", -- Baradin Hold
	[671] = "BoT", -- The Bastion of Twilight
	[669] = "BWD", -- Blackwing Descent
	[754] = "To4W", -- Throne of the Four Winds
	-- surely these names are short enough already...?
	--[720] = "F", -- Firelands
	--[967] = "DS", -- Dragon Soul

	-------- WotLK
	[631] = "ICC", -- Icecrown Citadel
	[650] = "ToC", -- Trial of the Champion (dungeon)
	[649] = "ToC", -- Trial of the Crusader (raid)
	[624] = "VoA", -- Vault of Archavon
}

-- Currently indexed by "boss name" values, as generated by whatever boss mod
-- is in use; see specific boss mod handling code to see how they get it.  For
-- DBM, this is "mod.combatInfo.name" or "mod.id", preferring the first; that
-- name defaults to "mod.localization.general.name", which for modern raids
-- is from the encounter journal:  EJ_GetEncounterInfo or EJ_GetCreatureInfo.
-- For
--     DBM:NewMod (encid, "...", ..., ..., modifier)
-- this means
--     EJ_GetEncounterInfo (encid)
--     EJ_GetCreatureInfo (modifier, encid)   second return
--
-- As such, this table really needs to be thrown out and redone with modern
-- encounter IDs and sub-IDs.
addon.boss_abbrev = {
	-------- WoD
	-- HM
	["Kargath Bladefist"] = "Kill #100",
	["The Butcher"] = "Same Butcher as in Diablo, Honest",
	--["Brackenspore"] = "",
	--["Tectus"] = "",
	["Twin Ogron"] = "Polyphemos",
	--["Ko'ragh"] = "",
	--["Imperator Mar'gok"] = "",

	-------- MoP
	-- MV
	["Will of the Emperor"] = "Talk to the Open Hand",

	-------- Cata
	-- BoT
	["Halfus Wyrmbreaker"] = "Halfass Wyrmbreaker",
	["Valiona & Theralion"] = "Wonder Twins! Form of: Loot",
	-- BWD
	["Magmaw"] = "Earwig",
	["Omnotron Defense System"] = "Nomnomtron Defense System",
	["Chimaeron"] = "k'eye-MAIR-on",
	["Atramedes"] = "at-ruh-MEE-deez",
	["Nefarian's End"] = "Nef II:  Electric Boogaloo",
	-- To4W
	["Al'Akir"] = "Big Al",
	-- Firelands
	["Shannox"] = "Shnox",
	["Lord Rhyolith"] = "LEFT, LEFT, LEFT RIGHT LEFT",  -- left my wife and 49 kids, an old grey mare and a peanut stand
	["Alysrazor"] = "Steppin' Razor",  -- how many people have read Neuromancer, hmmmm
	["Majordomo Staghelm"] = "Mojododo",
	-- Dragon Soul
	["Morchok"] = "Porkchop",
	["Warlord Zon'ozz"] = "Warlord Beach Ball",
	["Yor'sahj the Unsleeping"] = "Yosimite Sam the Unsleeping",
	["Hagara the Stormbinder"] = "Hands Across America",
	["Ultraxion"] = "ul-TRAX-ee-on",

	-------- WotLK
	-- ToC
	["Northrend Beasts"] = "Animal House",
	["Lord Jaraxxus"] = "latest DIAF demon",
	["Faction Champions"] = "Alliance Clusterfuck",
	["Valkyr Twins"] = "Salt'N'Pepa",
	["Val'kyr Twins"] = "Salt'N'Pepa",
	["Anub'arak"] = "Whack-a-Spider",
	-- ICC
	["Lady Deathwhisper"] = "Lady Won't-Stop-Yammering",
	["Gunship"] = "Rocket Shirt Over the Side of the Damn Boat",
	["Gunship Battle"] = "Rocket Shirt Over the Side of the Damn Boat",
	["Deathbringer Saurfang"] = "Deathbringer Sauerkraut",
	["Professor Putricide"] = "Professor Farnsworth",
	["Valithria Dreamwalker"] = "Dreeeeaaamweaaaaaverrrr",
}

addon.FILES_LOADED = addon.FILES_LOADED + 1
-- vim:noet