Updated LibOpenRaid and DetailsFramework
This commit is contained in:
+18
-18
@@ -121,7 +121,7 @@ function Details.packFunctions.PackCombatData(combatObject, flags)
|
||||
Details.packFunctions.PackUtility(combatObject)
|
||||
end
|
||||
|
||||
--> prepare data to send over network
|
||||
--prepare data to send over network
|
||||
local exportedString = flags .. ","
|
||||
|
||||
--add the combat info
|
||||
@@ -572,7 +572,7 @@ function Details.packFunctions.PackDamage(combatObject)
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------------------------
|
||||
--> unpack
|
||||
--unpack
|
||||
|
||||
--@currentCombat: details! combat object
|
||||
--@combatData: array with strings with combat information
|
||||
@@ -616,7 +616,7 @@ function Details.packFunctions.UnPackDamage(currentCombat, combatData, tablePosi
|
||||
actorObject.grupo = isActorInGroup(class, actorFlag)
|
||||
actorObject.flag_original = actorFlag
|
||||
|
||||
--> copy back the base damage
|
||||
--copy back the base damage
|
||||
actorObject.total = tonumber(combatData[tablePosition+1]) --[2]
|
||||
actorObject.totalabsorbed = tonumber(combatData[tablePosition+2]) --[3]
|
||||
actorObject.damage_taken = tonumber(combatData[tablePosition+3]) --[4]
|
||||
@@ -625,7 +625,7 @@ function Details.packFunctions.UnPackDamage(currentCombat, combatData, tablePosi
|
||||
|
||||
tablePosition = tablePosition + 6 --increase table position
|
||||
|
||||
--> copy back the actor spells
|
||||
--copy back the actor spells
|
||||
--amount of indexes used to store spells for this actor
|
||||
local spellsSize = tonumber(combatData [tablePosition]) --[7]
|
||||
if (isDebugging) then
|
||||
@@ -822,7 +822,7 @@ function Details.packFunctions.PackHeal(combatObject)
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------------------------
|
||||
--> unpack
|
||||
--unpack
|
||||
|
||||
function Details.packFunctions.UnPackHeal(currentCombat, combatData, tablePosition)
|
||||
|
||||
@@ -864,7 +864,7 @@ function Details.packFunctions.UnPackHeal(currentCombat, combatData, tablePositi
|
||||
actorObject.grupo = isActorInGroup(class, actorFlag)
|
||||
actorObject.flag_original = actorFlag
|
||||
|
||||
--> copy the base healing
|
||||
--copy the base healing
|
||||
actorObject.total = tonumber(combatData[tablePosition+1]) --[2]
|
||||
actorObject.totalabsorb = tonumber(combatData[tablePosition+2]) --[3]
|
||||
actorObject.totalover = tonumber(combatData[tablePosition+3]) --[4]
|
||||
@@ -873,7 +873,7 @@ function Details.packFunctions.UnPackHeal(currentCombat, combatData, tablePositi
|
||||
|
||||
tablePosition = tablePosition + 6
|
||||
|
||||
--> copy back the actor spells
|
||||
--copy back the actor spells
|
||||
--amount of indexes used to store spells for this actor
|
||||
local spellsSize = tonumber(combatData [tablePosition]) --[7]
|
||||
if (isDebugging) then
|
||||
@@ -916,7 +916,7 @@ function Details.packFunctions.UnPackHeal(currentCombat, combatData, tablePositi
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------------------------
|
||||
--> pack utility data
|
||||
--pack utility data
|
||||
|
||||
--pack utility passes the player utility info + pets the player own
|
||||
--each player will also send an enemy, the enemy will be in order of raidIndex of the player
|
||||
@@ -1135,7 +1135,7 @@ function Details.packFunctions.PackUtility(combatObject)
|
||||
|
||||
--]=]
|
||||
|
||||
--> cooldowns, pack player cooldowns used
|
||||
--cooldowns, pack player cooldowns used
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = "C"
|
||||
local cooldownContainer = actor.cooldowns_defensive_spells and actor.cooldowns_defensive_spells._ActorTable
|
||||
local totalSpellIndexes = 0
|
||||
@@ -1171,7 +1171,7 @@ function Details.packFunctions.PackUtility(combatObject)
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = 0
|
||||
end
|
||||
|
||||
--> interrupts, pack player interrupts
|
||||
--interrupts, pack player interrupts
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = "I"
|
||||
local interruptsContainer = actor.interrupt_spells and actor.interrupt_spells._ActorTable
|
||||
local totalSpellIndexes = 0
|
||||
@@ -1219,7 +1219,7 @@ function Details.packFunctions.PackUtility(combatObject)
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = 0
|
||||
end
|
||||
|
||||
--> cc break, pack player crowd control breaks
|
||||
--cc break, pack player crowd control breaks
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = "B"
|
||||
local ccBreakContainer = actor.cc_break_spells and actor.cc_break_spells._ActorTable
|
||||
local totalSpellIndexes = 0
|
||||
@@ -1267,7 +1267,7 @@ function Details.packFunctions.PackUtility(combatObject)
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = 0
|
||||
end
|
||||
|
||||
--> dispel, pack player dispels done
|
||||
--dispel, pack player dispels done
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = "D"
|
||||
local dispelsContainer = actor.dispell_spells and actor.dispell_spells._ActorTable
|
||||
local totalSpellIndexes = 0
|
||||
@@ -1315,7 +1315,7 @@ function Details.packFunctions.PackUtility(combatObject)
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = 0
|
||||
end
|
||||
|
||||
--> ress, pack player ress performed
|
||||
--ress, pack player ress performed
|
||||
actorUtilityInfo [#actorUtilityInfo + 1] = "R"
|
||||
local ressContainer = actor.ress_spells and actor.ress_spells._ActorTable
|
||||
local totalSpellIndexes = 0
|
||||
@@ -1402,7 +1402,7 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos
|
||||
--D - dispels
|
||||
--R - ress
|
||||
|
||||
--> copy back the actor cooldowns spells
|
||||
--copy back the actor cooldowns spells
|
||||
tablePosition = tablePosition + 1
|
||||
tablePosition = tablePosition + 1
|
||||
|
||||
@@ -1449,7 +1449,7 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos
|
||||
tablePosition = tablePosition + spellsSize --increase table position
|
||||
end
|
||||
|
||||
--> copy back the actor interrupts spells
|
||||
--copy back the actor interrupts spells
|
||||
--tablePosition = tablePosition + 1
|
||||
local startInterrupt = combatData[tablePosition]
|
||||
tablePosition = tablePosition + 1
|
||||
@@ -1506,7 +1506,7 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos
|
||||
tablePosition = tablePosition + spellsSize --increase table position
|
||||
end
|
||||
|
||||
--> copy back the actor cc break spells
|
||||
--copy back the actor cc break spells
|
||||
--tablePosition = tablePosition + 1
|
||||
local startCCBreak = combatData[tablePosition]
|
||||
tablePosition = tablePosition + 1
|
||||
@@ -1564,7 +1564,7 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos
|
||||
tablePosition = tablePosition + spellsSize --increase table position
|
||||
end
|
||||
|
||||
--> copy back the actor dispel spells
|
||||
--copy back the actor dispel spells
|
||||
--tablePosition = tablePosition + 1
|
||||
tablePosition = tablePosition + 1
|
||||
|
||||
@@ -1623,7 +1623,7 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos
|
||||
--ress
|
||||
--ress_targets
|
||||
--ress_spells
|
||||
--> copy back the actor ress spells
|
||||
--copy back the actor ress spells
|
||||
--tablePosition = tablePosition + 1
|
||||
tablePosition = tablePosition + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user