Skip to content

Commit

Permalink
v9.0.5.8357.144
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Mar 15, 2021
1 parent c6e17b1 commit f0554a6
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 26 deletions.
10 changes: 3 additions & 7 deletions Libs/LibRaidStatus/LibRaidStatus.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

local major = "LibRaidStatus-1.0"
local CONST_LIB_VERSION = 14
local CONST_LIB_VERSION = 15
LIB_RAID_STATUS_CAN_LOAD = false

--declae the library within the LibStub
Expand All @@ -14,7 +14,6 @@ LIB_RAID_STATUS_CAN_LOAD = false

--default values
raidStatusLib.inGroup = false
raidStatusLib.CanReceiveComms = false

--print failures (when the function return an error) results to chat
local CONST_DIAGNOSTIC_ERRORS = false
Expand Down Expand Up @@ -128,7 +127,7 @@ LIB_RAID_STATUS_CAN_LOAD = false

--return true if the lib is allowed to receive comms from other players
function raidStatusLib.IsCommAllowed()
return raidStatusLib.CanReceiveComms
return IsInGroup() or IsInRaid()
end

--stract some indexes of a table
Expand Down Expand Up @@ -497,7 +496,7 @@ LIB_RAID_STATUS_CAN_LOAD = false
--the group has changed, trigger a long timer to send full data
--as the timer is unique, a new change to the group will replace and refresh the time
--using random time, players won't trigger all at the same time
local randomTime = 4.0 + math.random(1.0, 4.5)
local randomTime = 1.0 + math.random(1.0, 5.5)
raidStatusLib.Schedules.NewUniqueTimer(randomTime, raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule")
end
end,
Expand Down Expand Up @@ -581,15 +580,13 @@ LIB_RAID_STATUS_CAN_LOAD = false
--the game client is fully loadded and all information is available
if (raidStatusLib.IsInGroup()) then
raidStatusLib.Schedules.NewUniqueTimer(1.0, raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule")
raidStatusLib.CanReceiveComms = true
end
end

raidStatusLib.mainControl.OnEnterGroup = function()
--the player entered in a group
--schedule to send data
raidStatusLib.Schedules.NewUniqueTimer(1.0, raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule")
raidStatusLib.CanReceiveComms = true
end

raidStatusLib.mainControl.OnLeftGroup = function()
Expand All @@ -603,7 +600,6 @@ LIB_RAID_STATUS_CAN_LOAD = false
table.wipe(raidStatusLib.mainControl.playerAliveStatus)

--toggle off comms
raidStatusLib.CanReceiveComms = false
end

raidStatusLib.mainControl.OnPlayerDeath = function()
Expand Down
22 changes: 18 additions & 4 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")

_detalhes.build_counter = 8316
_detalhes.alpha_build_counter = 8316 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 8357
_detalhes.alpha_build_counter = 8357 --if this is higher than the regular counter, use it instead
_detalhes.dont_open_news = true
_detalhes.game_version = "v9.0.2"
_detalhes.userversion = "v9.0.2." .. _detalhes.build_counter
_detalhes.game_version = "v9.0.5"
_detalhes.userversion = "v9.0.5." .. _detalhes.build_counter
_detalhes.realversion = 144 --core version, this is used to check API version for scripts and plugins (see alias below)
_detalhes.APIVersion = _detalhes.realversion --core version
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" --simple stirng to show to players
Expand All @@ -29,6 +29,20 @@ do
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale( "Details" )

local news = {
{"v9.0.5.8357.144", "March 15th, 2021"},
"Max amount of segments raised to 40, was 30.",
"Added a 'Sanguine Heal' actor to show how much the void zone healed enemies, shown on Everything mode.",
"Death events are now ignore after the necrolord triggers Forgeborne Reveries.",
"Mythic dungeon settings are reset after importing a profile.",
"Scripts now support Inline text feature.",
"Fixed a rare bug when exporting a profile would result into a bug.",
"Fixed an issue with Spirit Shell overhealing.",
"Fixed a rare bug on dispel toooltips giving errors.",
"Fixed a bug on exporting scripts.",
"Fixed an error given when an a battleground opponent die.",
"Fixed an issue where sometimes entering an arena cause errors.",
"Fixed some issues with pet detection.",

{"v9.0.2.8246.144", "February 17th, 2021"},
"Added healing done to Coach feature (in testing).",
"Ignore Forgeborne Reveries healing done (Necrolords ability).",
Expand Down
12 changes: 7 additions & 5 deletions plugins/Details_DataStorage/Details_DataStorage.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

DETAILS_STORAGE_VERSION = 4
DETAILS_STORAGE_VERSION = 5

function _detalhes:CreateStorageDB()
DetailsDataStorage = {
VERSION = DETAILS_STORAGE_VERSION,
[14] = {}, --normal mode
[15] = {}, --heroic mode
[16] = {}, --mythic mode
[14] = {}, --normal mode (raid)
[15] = {}, --heroic mode (raid)
[16] = {}, --mythic mode (raid)
["mythic_plus"] = {}, --(dungeons)
["saved_encounters"] = {}, --(a segment)
}
return DetailsDataStorage
end
Expand All @@ -23,7 +25,7 @@ f:SetScript ("OnEvent", function (self, event, addonName)

if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
--> do revisions
if (DetailsDataStorage.VERSION < 4) then
if (DetailsDataStorage.VERSION < 5) then
table.wipe (DetailsDataStorage)
DetailsDataStorage = _detalhes:CreateStorageDB()
end
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_DataStorage/Details_DataStorage.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90002
## Interface: 90005
## Title: Details!: Storage
## Notes: Stores information for Details! Damage Meter
## DefaultState: Enabled
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90002
## Interface: 90005
## Title: Details!: Encounter Breakdown (plugin)
## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation.
## RequiredDeps: Details
Expand Down
7 changes: 5 additions & 2 deletions plugins/Details_RaidCheck/Details_RaidCheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ end
if (playerTable) then
local line = self:GetLine (i)
if (line) then
local thisPlayerInfo = playerInfo[playerTable.Name]

local thisPlayerInfo = playerInfo[playerTable.UnitNameRealm]
if (thisPlayerInfo) then
local playerCovenantId = thisPlayerInfo.covenantId
if (playerCovenantId > 0) then
Expand All @@ -406,7 +407,7 @@ end
end

--repair status
local thisPlayerGearInfo = gearInfo[playerTable.Name]
local thisPlayerGearInfo = gearInfo[playerTable.UnitNameRealm]
if (thisPlayerGearInfo) then
line.RepairStatus:SetText(thisPlayerGearInfo.durability .. "%")
else
Expand Down Expand Up @@ -639,6 +640,7 @@ end
for i = 1, iterateAmount do
local unitID = groupTypeID .. i
local unitName = UnitName (unitID)
local unitNameWithRealm = GetUnitName(unitID, true)
local cleuName = _detalhes:GetCLName (unitID)
local unitSerial = UnitGUID (unitID)
local _, unitClass, unitClassID = UnitClass (unitID)
Expand All @@ -652,6 +654,7 @@ end

tinsert (PlayerData, {unitName, unitClassID,
Name = unitName,
UnitNameRealm = unitNameWithRealm,
Class = unitClass,
Serial = unitSerial,
Role = unitRole,
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_RaidCheck/Details_RaidCheck.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90002
## Interface: 90005
## Title: Details!: Raid Check (plugin)
## Notes: Show talents and item level for all members in your group, also shows food and flask state.
## RequiredDeps: Details
Expand Down
5 changes: 3 additions & 2 deletions plugins/Details_Streamer/Details_Streamer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ local function CreatePluginFrames()

if (castInfo and castInfo.Interrupted and castInfo.InterruptedPct) then
CooldownFrame_SetDisplayAsPercentage(square.cooldown, abs(castInfo.InterruptedPct - 1))
square.interruptedTexture:Show()
--square.interruptedTexture:Show()
return
end

Expand Down Expand Up @@ -372,6 +372,7 @@ local function CreatePluginFrames()
f.interruptedTexture = f:CreateTexture(nil, "overlay")
f.interruptedTexture:SetColorTexture(1, 0, 0, 0.4)
f.interruptedTexture:SetAllPoints()
f.interruptedTexture:Hide()

local cooldownFrame = CreateFrame("cooldown", "$parentCooldown", f, "CooldownFrameTemplate, BackdropTemplate")
cooldownFrame:SetAllPoints()
Expand Down Expand Up @@ -427,7 +428,7 @@ local function CreatePluginFrames()
StreamOverlay:UpdateCooldownFrame(square, true, startTime, endTime, castinfo)

if (castinfo.Interrupted) then
square.interruptedTexture:Show()
--square.interruptedTexture:Show()
else
square.interruptedTexture:Hide()
end
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Streamer/Details_Streamer.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90002
## Interface: 90005
## Title: Details!: Streamer (plugin)
## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps.
## RequiredDeps: Details
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_TinyThreat/Details_TinyThreat.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90002
## Interface: 90005
## Title: Details!: Tiny Threat (plugin)
## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel.
## RequiredDeps: Details
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Vanguard/Details_Vanguard.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 90002
## Interface: 90005
## Title: Details!: Vanguard (plugin)
## Notes: Show the health and debuffs for tanks in your group.
## SavedVariablesPerCharacter: _detalhes_databaseVanguard
Expand Down

0 comments on commit f0554a6

Please sign in to comment.