content
stringlengths
5
1.05M
b.pathfinder.register("b:builtin", { metatable = { init = function(self) self.path = minetest.find_path(self.from, self.to, self.def.search_distance, self.def.jump_height, self.def.drop_height) self.i = 1 return not not self.path end, next = function(self) self.i = self.i + 1 return self.path[self.i] end, }, priority = 1, groups = b.set{ "specify_vertical", }, })
log("5dim_automatization")
-- Copyright 2018-2019, Firaxis Games include("InstanceManager"); include("PopupDialog") include("GameCapabilities"); include("GreatWorksSupport"); include("ModalScreen_PlayerYieldsHelper"); -- CUI include("cui_settings"); -- CUI -- =========================================================================== -- CONSTANTS -- =========================================================================== local RELOAD_CACHE_ID:string = "GreatWorksOverview"; -- Must be unique (usually the same as the file name) local SIZE_SLOT_TYPE_ICON:number = 40; local SIZE_GREAT_WORK_ICON:number = 64; local PADDING_PROVIDING_LABEL:number = 10; local MIN_PADDING_SLOTS:number = 2; local MAX_PADDING_SLOTS:number = 30; local MAX_NUM_SLOTS:number = 6; local DEFAULT_LOCK_TURNS:number = 10; local NUM_RELIC_TEXTURES:number = 48; local NUM_ARIFACT_TEXTURES:number = 25; local GREAT_WORK_RELIC_TYPE:string = "GREATWORKOBJECT_RELIC"; local GREAT_WORK_ARTIFACT_TYPE:string = "GREATWORKOBJECT_ARTIFACT"; local LOC_TOURISM:string = Locale.Lookup("LOC_GREAT_WORKS_TOURISM"); local LOC_THEME_BONUS:string = Locale.Lookup("LOC_GREAT_WORKS_THEMED_BONUS"); local LOC_SCREEN_TITLE:string = Locale.Lookup("LOC_GREAT_WORKS_SCREEN_TITLE"); local DATA_FIELD_SLOT_CACHE:string = "SlotCache"; local DATA_FIELD_GREAT_WORK_IM:string = "GreatWorkIM"; local DATA_FIELD_TOURISM_YIELD:string = "TourismYield"; local DATA_FIELD_THEME_BONUS_IM:string = "ThemeBonusIM"; local DATA_FIELD_CITY_ID :string = "DataField_CityID"; local DATA_FIELD_BUILDING_ID :string = "DataField_BuildingID"; local DATA_FIELD_GREAT_WORK_INDEX :string = "DataField_GreatWorkIndex"; local DATA_FIELD_SLOT_INDEX :string = "DataField_SlotIndex"; local DATA_FIELD_GREAT_WORK_TYPE :string = "DataField_GreatWorkType"; local YIELD_FONT_ICONS:table = { YIELD_FOOD = "[ICON_FoodLarge]", YIELD_PRODUCTION = "[ICON_ProductionLarge]", YIELD_GOLD = "[ICON_GoldLarge]", YIELD_SCIENCE = "[ICON_ScienceLarge]", YIELD_CULTURE = "[ICON_CultureLarge]", YIELD_FAITH = "[ICON_FaithLarge]", TourismYield = "[ICON_TourismLarge]" }; local DEFAULT_GREAT_WORKS_ICONS:table = { GREATWORKSLOT_WRITING = "ICON_GREATWORKOBJECT_WRITING", GREATWORKSLOT_PALACE = "ICON_GREATWORKOBJECT_SCULPTURE", GREATWORKSLOT_ART = "ICON_GREATWORKOBJECT_PORTRAIT", GREATWORKSLOT_CATHEDRAL = "ICON_GREATWORKOBJECT_RELIGIOUS", GREATWORKSLOT_ARTIFACT = "ICON_GREATWORKOBJECT_ARTIFACT_ERA_ANCIENT", GREATWORKSLOT_MUSIC = "ICON_GREATWORKOBJECT_MUSIC", GREATWORKSLOT_RELIC = "ICON_GREATWORKOBJECT_RELIC" }; -- =========================================================================== -- SCREEN VARIABLES -- =========================================================================== local m_FirstGreatWork:table = nil; local m_GreatWorkYields:table = nil; local m_GreatWorkSelected:table = nil; local m_GreatWorkBuildings:table = nil; local m_GreatWorkSlotsIM:table = InstanceManager:new("GreatWorkSlot", "TopControl", Controls.GreatWorksStack); local m_TotalResourcesIM:table = InstanceManager:new("AgregateResource", "Resource", Controls.TotalResources); local m_kViableDropTargets:table = {}; local m_kControlToInstanceMap:table = {}; local m_uiSelectedDropTarget:table = nil; local m_TopPanelConsideredHeight = 0; -- CUI -- =========================================================================== -- PLAYER VARIABLES -- =========================================================================== local m_LocalPlayer:table; local m_LocalPlayerID:number; local m_during_move:boolean = false; local m_dest_building:number = 0; local m_dest_city; local m_isLocalPlayerTurn:boolean = true; local cui_ThemeHelper = false; -- CUI -- =========================================================================== -- Called every time screen is shown -- =========================================================================== function UpdatePlayerData() m_LocalPlayerID = Game.GetLocalPlayer(); if m_LocalPlayerID ~= -1 then m_LocalPlayer = Players[m_LocalPlayerID]; end end -- =========================================================================== -- Called every time screen is shown -- =========================================================================== function UpdateGreatWorks() m_FirstGreatWork = nil; m_GreatWorkSelected = nil; m_GreatWorkSlotsIM:ResetInstances(); Controls.PlacingContainer:SetHide(true); Controls.HeaderStatsContainer:SetHide(false); if (m_LocalPlayer == nil) then return; end m_GreatWorkYields = {}; m_GreatWorkBuildings = {}; local numGreatWorks:number = 0; local numDisplaySpaces:number = 0; local cui_tmpBuildings = {}; -- CUI local pCities:table = m_LocalPlayer:GetCities(); for i, pCity in pCities:Members() do if pCity ~= nil and pCity:GetOwner() == m_LocalPlayerID then local pCityBldgs:table = pCity:GetBuildings(); for buildingInfo in GameInfo.Buildings() do local buildingIndex:number = buildingInfo.Index; local buildingType:string = buildingInfo.BuildingType; if(pCityBldgs:HasBuilding(buildingIndex)) then local numSlots:number = pCityBldgs:GetNumGreatWorkSlots(buildingIndex); if (numSlots ~= nil and numSlots > 0) then --[[ local instance:table = m_GreatWorkSlotsIM:GetInstance(); local greatWorks:number = PopulateGreatWorkSlot(instance, pCity, pCityBldgs, buildingInfo); table.insert(m_GreatWorkBuildings, {Instance=instance, Type=buildingType, Index=buildingIndex, CityBldgs=pCityBldgs}); numDisplaySpaces = numDisplaySpaces + pCityBldgs:GetNumGreatWorkSlots(buildingIndex); numGreatWorks = numGreatWorks + greatWorks; ]] -- CUI >> sort table.insert( cui_tmpBuildings, { Type = buildingType, Index = buildingIndex, CityBldgs = pCityBldgs, City = pCity, Info = buildingInfo } ) -- << CUI end end end end end -- CUI >> sort local IsSortByCity = CuiSettings:GetBoolean(CuiSettings.SORT_BY_CITY) if not IsSortByCity then table.sort( cui_tmpBuildings, function(a, b) if a.Index == b.Index then return a.City:GetID() < b.City:GetID(); else return a.Index < b.Index; end end ); end for _, item in ipairs(cui_tmpBuildings) do local instance = m_GreatWorkSlotsIM:GetInstance(); local greatWorks = PopulateGreatWorkSlot(instance, item.City, item.CityBldgs, item.Info); table.insert( m_GreatWorkBuildings, {Instance = instance, Type = item.Type, Index = item.Index, CityBldgs = item.CityBldgs} ) numDisplaySpaces = numDisplaySpaces + item.CityBldgs:GetNumGreatWorkSlots(item.Index); numGreatWorks = numGreatWorks + greatWorks; end -- << CUI Controls.NumGreatWorks:SetText(numGreatWorks); Controls.NumDisplaySpaces:SetText(numDisplaySpaces); -- Realize stack and scrollbar Controls.GreatWorksStack:CalculateSize(); Controls.GreatWorksStack:ReprocessAnchoring(); Controls.GreatWorksScrollPanel:CalculateInternalSize(); Controls.GreatWorksScrollPanel:ReprocessAnchoring(); m_TotalResourcesIM:ResetInstances(); if table.count(m_GreatWorkYields) > 0 then table.sort(m_GreatWorkYields, function(a,b) return a.Name < b.Name; end); for _, data in ipairs(m_GreatWorkYields) do local instance:table = m_TotalResourcesIM:GetInstance(); instance.Resource:SetText(data.Icon .. data.Value); instance.Resource:SetToolTipString(data.Name); end Controls.TotalResources:CalculateSize(); Controls.TotalResources:ReprocessAnchoring(); Controls.ProvidingLabel:SetOffsetX(Controls.TotalResources:GetOffsetX() + Controls.TotalResources:GetSizeX() + PADDING_PROVIDING_LABEL); Controls.ProvidingLabel:SetHide(false); else Controls.ProvidingLabel:SetHide(true); end -- Hide "View Gallery" button if we don't have a single great work Controls.ViewGallery:SetHide(m_FirstGreatWork == nil); -- CUI >> Controls.SortGreatWork:SetHide(m_FirstGreatWork == nil); Controls.ThemeHelper:SetHide(m_FirstGreatWork == nil); -- << CUI end function PopulateGreatWorkSlot(instance:table, pCity:table, pCityBldgs:table, pBuildingInfo:table) instance.DefaultBG:SetHide(false); instance.DisabledBG:SetHide(true); instance.HighlightedBG:SetHide(true); -- CUI >> reset Theme label instance.ThemingLabel:SetText(""); instance.ThemingLabel:SetToolTipString(""); -- << CUI local buildingType:string = pBuildingInfo.BuildingType; local buildingIndex:number = pBuildingInfo.Index; local themeDescription = GetThemeDescription(buildingType); instance.CityName:SetText(Locale.Lookup(pCity:GetName())); instance.BuildingName:SetText(Locale.ToUpper(Locale.Lookup(pBuildingInfo.Name))); -- Ensure we have Instance Managers for the great works local greatWorkIM:table = instance[DATA_FIELD_GREAT_WORK_IM]; if(greatWorkIM == nil) then greatWorkIM = InstanceManager:new("GreatWork", "TopControl", instance.GreatWorks); instance[DATA_FIELD_GREAT_WORK_IM] = greatWorkIM; else greatWorkIM:ResetInstances(); end local index:number = 0; local numGreatWorks:number = 0; local numThemedGreatWorks:number = 0; local instanceCache:table = {}; local firstGreatWork:table = nil; local numSlots:number = pCityBldgs:GetNumGreatWorkSlots(buildingIndex); if (numSlots ~= nil and numSlots > 0) then for _:number=0, numSlots - 1 do local instance:table = greatWorkIM:GetInstance(); local greatWorkIndex:number = pCityBldgs:GetGreatWorkInSlot(buildingIndex, index); local greatWorkSlotType:number = pCityBldgs:GetGreatWorkSlotType(buildingIndex, index); local greatWorkSlotString:string = GameInfo.GreatWorkSlotTypes[greatWorkSlotType].GreatWorkSlotType; PopulateGreatWork(instance, pCityBldgs, pBuildingInfo, index, greatWorkIndex, greatWorkSlotString); index = index + 1; instanceCache[index] = instance; if greatWorkIndex ~= -1 then numGreatWorks = numGreatWorks + 1; local greatWorkType:number = pCityBldgs:GetGreatWorkTypeFromIndex(greatWorkIndex); local greatWorkInfo:table = GameInfo.GreatWorks[greatWorkType]; if firstGreatWork == nil then firstGreatWork = greatWorkInfo; end if greatWorkInfo ~= nil and GreatWorkFitsTheme(pCityBldgs, pBuildingInfo, greatWorkIndex, greatWorkInfo) then numThemedGreatWorks = numThemedGreatWorks + 1; end end end if firstGreatWork ~= nil and themeDescription ~= nil then local slotTypeIcon:string = "ICON_" .. firstGreatWork.GreatWorkObjectType; if firstGreatWork.GreatWorkObjectType == GREAT_WORK_ARTIFACT_TYPE then slotTypeIcon = slotTypeIcon .. "_" .. firstGreatWork.EraType; end local textureOffsetX:number, textureOffsetY:number, textureSheet:string = IconManager:FindIconAtlas(slotTypeIcon, SIZE_SLOT_TYPE_ICON); if(textureSheet == nil or textureSheet == "") then UI.DataError("Could not find slot type icon in PopulateGreatWorkSlot: icon=\""..slotTypeIcon.."\", iconSize="..tostring(SIZE_SLOT_TYPE_ICON)); else for i:number=0, numSlots - 1 do local slotIndex:number = index - i; instanceCache[slotIndex].SlotTypeIcon:SetTexture(textureOffsetX, textureOffsetY, textureSheet); end end end end instance[DATA_FIELD_SLOT_CACHE] = instanceCache; local numSlots:number = table.count(instanceCache); if(numSlots > 1) then local slotRange:number = MAX_NUM_SLOTS - 2; local paddingRange:number = MAX_PADDING_SLOTS - MIN_PADDING_SLOTS; local finalPadding:number = ((MAX_NUM_SLOTS - numSlots) * paddingRange / slotRange) + MIN_PADDING_SLOTS; instance.GreatWorks:SetStackPadding(finalPadding); else instance.GreatWorks:SetStackPadding(0); end -- Ensure we have Instance Managers for the theme bonuses local themeBonusIM:table = instance[DATA_FIELD_THEME_BONUS_IM]; if(themeBonusIM == nil) then themeBonusIM = InstanceManager:new("Resource", "Resource", instance.ThemeBonuses); instance[DATA_FIELD_THEME_BONUS_IM] = themeBonusIM; else themeBonusIM:ResetInstances(); end if numGreatWorks == 0 then if themeDescription ~= nil then instance.ThemingLabel:SetText(Locale.Lookup("LOC_GREAT_WORKS_THEME_BONUS_PROGRESS", numThemedGreatWorks, numSlots)); instance.ThemingLabel:SetToolTipString(themeDescription); end else instance.ThemingLabel:SetText(""); instance.ThemingLabel:SetToolTipString(""); if pCityBldgs:IsBuildingThemedCorrectly(buildingIndex) then instance.ThemingLabel:SetText(LOC_THEME_BONUS); if m_during_move then if buildingIndex == m_dest_building then if (m_dest_city == pCityBldgs:GetCity():GetID()) then UI.PlaySound("UI_GREAT_WORKS_BONUS_ACHIEVED"); end end end else if themeDescription ~= nil then -- if we're being called due to moving a work if numSlots > 1 then instance.ThemingLabel:SetText(Locale.Lookup("LOC_GREAT_WORKS_THEME_BONUS_PROGRESS", numThemedGreatWorks, numSlots)); if m_during_move then if buildingIndex == m_dest_building then if (m_dest_city == pCityBldgs:GetCity():GetID()) then if numThemedGreatWorks == 2 then UI.PlaySound("UI_GreatWorks_Bonus_Increased"); end end end end end if instance.ThemingLabel:GetText() ~= "" then instance.ThemingLabel:SetToolTipString(themeDescription); end end end end for row in GameInfo.Yields() do local yieldValue:number = pCityBldgs:GetBuildingYieldFromGreatWorks(row.Index, buildingIndex); if yieldValue > 0 then AddYield(themeBonusIM:GetInstance(), Locale.Lookup(row.Name), YIELD_FONT_ICONS[row.YieldType], yieldValue); end end local regularTourism:number = pCityBldgs:GetBuildingTourismFromGreatWorks(false, buildingIndex); local religionTourism:number = pCityBldgs:GetBuildingTourismFromGreatWorks(true, buildingIndex); local totalTourism:number = regularTourism + religionTourism; if totalTourism > 0 then AddYield(themeBonusIM:GetInstance(), LOC_TOURISM, YIELD_FONT_ICONS[DATA_FIELD_TOURISM_YIELD], totalTourism); end instance.ThemeBonuses:CalculateSize(); instance.ThemeBonuses:ReprocessAnchoring(); return numGreatWorks; end -- IMPORTANT: This logic is largely derived from GetGreatWorkTooltip() - if you make an update here, make sure to update that function as well function GreatWorkFitsTheme(pCityBldgs:table, pBuildingInfo:table, greatWorkIndex:number, greatWorkInfo:table) local firstGreatWork:number = GetFirstGreatWorkInBuilding(pCityBldgs, pBuildingInfo); if firstGreatWork < 0 then return false; end local firstGreatWorkObjectTypeID:number = pCityBldgs:GetGreatWorkTypeFromIndex(firstGreatWork); local firstGreatWorkObjectType:string = GameInfo.GreatWorks[firstGreatWorkObjectTypeID].GreatWorkObjectType; if pCityBldgs:IsBuildingThemedCorrectly(GameInfo.Buildings[pBuildingInfo.BuildingType].Index) then return true; else if pBuildingInfo.BuildingType == "BUILDING_MUSEUM_ART" then if firstGreatWork == greatWorkIndex then return true; elseif not IsFirstGreatWorkByArtist(greatWorkIndex, pCityBldgs, pBuildingInfo) then return false; else return firstGreatWorkObjectType == greatWorkInfo.GreatWorkObjectType; end elseif pBuildingInfo.BuildingType == "BUILDING_MUSEUM_ARTIFACT" then if firstGreatWork == greatWorkIndex then return true; else if greatWorkInfo.EraType ~= GameInfo.GreatWorks[firstGreatWorkObjectTypeID].EraType then return false; else local greatWorkPlayer:number = Game.GetGreatWorkPlayer(greatWorkIndex); local greatWorks:table = GetGreatWorksInBuilding(pCityBldgs, pBuildingInfo); -- Find duplicates for theming description local hash:table = {} local duplicates:table = {} for _,index in ipairs(greatWorks) do local gwPlayer:number = Game.GetGreatWorkPlayer(index); if (not hash[gwPlayer]) then hash[gwPlayer] = true; else table.insert(duplicates, gwPlayer); end end return table.count(duplicates) == 0; end end end end end function GetGreatWorkIcon(greatWorkInfo:table) local greatWorkIcon:string; if greatWorkInfo.GreatWorkObjectType == GREAT_WORK_ARTIFACT_TYPE then local greatWorkType:string = greatWorkInfo.GreatWorkType; greatWorkType = greatWorkType:gsub("GREATWORK_ARTIFACT_", ""); local greatWorkID:number = tonumber(greatWorkType); greatWorkID = ((greatWorkID - 1) % NUM_ARIFACT_TEXTURES) + 1; greatWorkIcon = "ICON_GREATWORK_ARTIFACT_" .. greatWorkID; elseif greatWorkInfo.GreatWorkObjectType == GREAT_WORK_RELIC_TYPE then local greatWorkType:string = greatWorkInfo.GreatWorkType; greatWorkType = greatWorkType:gsub("GREATWORK_RELIC_", ""); local greatWorkID:number = tonumber(greatWorkType); greatWorkID = ((greatWorkID - 1) % NUM_RELIC_TEXTURES) + 1; greatWorkIcon = "ICON_GREATWORK_RELIC_" .. greatWorkID; else greatWorkIcon = "ICON_" .. greatWorkInfo.GreatWorkType; end local textureOffsetX:number, textureOffsetY:number, textureSheet:string = IconManager:FindIconAtlas(greatWorkIcon, SIZE_GREAT_WORK_ICON); if(textureSheet == nil or textureSheet == "") then UI.DataError("Could not find slot type icon in GetGreatWorkIcon: icon=\""..greatWorkIcon.."\", iconSize="..tostring(SIZE_GREAT_WORK_ICON)); end return textureOffsetX, textureOffsetY, textureSheet; end function GetThemeDescription(buildingType:string) local eBuilding = m_LocalPlayer:GetCulture():GetAutoThemedBuilding(); if (GameInfo.Buildings[buildingType].Index == eBuilding) then return Locale.Lookup("LOC_BUILDING_THEMINGBONUS_FULL_MUSEUM"); else for row in GameInfo.Building_GreatWorks() do if row.BuildingType == buildingType then if row.ThemingBonusDescription ~= nil then return Locale.Lookup(row.ThemingBonusDescription); end end end end return nil; end function PopulateGreatWork(instance:table, pCityBldgs:table, pBuildingInfo:table, slotIndex:number, greatWorkIndex:number, slotType:string) local buildingIndex:number = pBuildingInfo.Index; local slotTypeIcon:string = DEFAULT_GREAT_WORKS_ICONS[slotType]; local textureOffsetX:number, textureOffsetY:number, textureSheet:string = IconManager:FindIconAtlas(slotTypeIcon, SIZE_SLOT_TYPE_ICON); if(textureSheet == nil or textureSheet == "") then UI.DataError("Could not find slot type icon in PopulateGreatWork: icon=\""..slotTypeIcon.."\", iconSize="..tostring(SIZE_SLOT_TYPE_ICON)); else instance.SlotTypeIcon:SetTexture(textureOffsetX, textureOffsetY, textureSheet); end -- CUI >> reset masks instance.LockIcon:SetHide(true); instance.LockMask:SetHide(true); instance.ThemeMask:SetHide(true); -- << CUI instance[DATA_FIELD_CITY_ID] = pCityBldgs:GetCity():GetID(); instance[DATA_FIELD_BUILDING_ID] = buildingIndex; instance[DATA_FIELD_SLOT_INDEX] = slotIndex; instance[DATA_FIELD_GREAT_WORK_INDEX] = greatWorkIndex; instance[DATA_FIELD_GREAT_WORK_TYPE] = -1; if greatWorkIndex == -1 then instance.GreatWorkIcon:SetHide(true); local validWorks:string = ""; for row in GameInfo.GreatWork_ValidSubTypes() do if slotType == row.GreatWorkSlotType then if validWorks ~= "" then validWorks = validWorks .. "[NEWLINE]"; end validWorks = validWorks .. Locale.Lookup("LOC_" .. row.GreatWorkObjectType); end end instance.EmptySlot:ClearCallback(Mouse.eLClick); instance.EmptySlot:SetToolTipString(Locale.Lookup("LOC_GREAT_WORKS_EMPTY_TOOLTIP", validWorks)); else instance.GreatWorkIcon:SetHide(false); -- CUI >> setup masks CuiSetLockMask(instance, pCityBldgs, buildingIndex, slotIndex) CuiSetThemeMask(instance, pCityBldgs, buildingIndex, slotIndex) instance.LockMask:SetHide(cui_ThemeHelper) instance.ThemeMask:SetHide(not cui_ThemeHelper) -- << CUI local srcGreatWork:number = pCityBldgs:GetGreatWorkInSlot(buildingIndex, slotIndex); local srcGreatWorkType:number = pCityBldgs:GetGreatWorkTypeFromIndex(srcGreatWork); local srcGreatWorkObjectType:string = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType; instance[DATA_FIELD_GREAT_WORK_TYPE] = srcGreatWorkType; local greatWorkType:number = pCityBldgs:GetGreatWorkTypeFromIndex(greatWorkIndex); local textureOffsetX:number, textureOffsetY:number, textureSheet:string = GetGreatWorkIcon(GameInfo.GreatWorks[greatWorkType]); instance.GreatWorkIcon:SetTexture(textureOffsetX, textureOffsetY, textureSheet); instance.EmptySlot:SetToolTipString(GetGreatWorkTooltip(pCityBldgs, greatWorkIndex, greatWorkType, pBuildingInfo)); local bAllowMove:boolean = true; -- Don't allow moving artifacts if the museum is not full if bAllowMove and srcGreatWorkObjectType == GREAT_WORK_ARTIFACT_TYPE then if not IsBuildingFull(pCityBldgs, buildingIndex) then instance.GreatWorkDraggable:RegisterCallback(Drag.eDragDisabled, function() ShowCannotMoveMessage(Locale.Lookup("LOC_GREAT_WORKS_ARTIFACT_LOCKED_FROM_MOVE")); end); bAllowMove = false; end end -- Don't allow moving art that has been recently created if bAllowMove and srcGreatWorkObjectType == "GREATWORKOBJECT_SCULPTURE" or srcGreatWorkObjectType == "GREATWORKOBJECT_LANDSCAPE" or srcGreatWorkObjectType == "GREATWORKOBJECT_PORTRAIT" or srcGreatWorkObjectType == "GREATWORKOBJECT_RELIGIOUS" then local iTurnCreated:number = pCityBldgs:GetTurnFromIndex(greatWorkIndex); local iCurrentTurn:number = Game.GetCurrentGameTurn(); local iTurnsBeforeMove:number = GlobalParameters.GREATWORK_ART_LOCK_TIME or DEFAULT_LOCK_TURNS; local iTurnsToWait = iTurnCreated + iTurnsBeforeMove - iCurrentTurn; if iTurnsToWait > 0 then instance.GreatWorkDraggable:RegisterCallback(Drag.eDragDisabled, function() ShowCannotMoveMessage(Locale.Lookup("LOC_GREAT_WORKS_LOCKED_FROM_MOVE", iTurnsToWait)); end); bAllowMove = false; end end if bAllowMove then instance.GreatWorkDraggable:SetDisabled(false); instance.GreatWorkDraggable:RegisterCallback(Drag.eDown, function(kDragStruct) OnClickGreatWork( kDragStruct,pCityBldgs, buildingIndex, greatWorkIndex, slotIndex ); end); instance.GreatWorkDraggable:RegisterCallback(Drag.eDrop, function(kDragStruct) OnGreatWorkDrop( kDragStruct, instance ); end); instance.GreatWorkDraggable:RegisterCallback(Drag.eDrag, function(kDragStruct) OnGreatWorkDrag( kDragStruct, instance ); end); else instance.GreatWorkDraggable:SetDisabled(true); end if m_FirstGreatWork == nil then m_FirstGreatWork = {Index=greatWorkIndex, Building=buildingIndex, CityBldgs=pCityBldgs}; end end instance.EmptySlotHighlight:SetHide(true); end -- =========================================================================== function OnGreatWorkDrop( kDragStruct:table, kInstance:table ) if m_uiSelectedDropTarget ~= nil then if m_uiSelectedDropTarget == Controls.ViewGreatWork then OnViewGreatWork() else local kSelectedDropInstance = m_kControlToInstanceMap[m_uiSelectedDropTarget]; if kSelectedDropInstance then MoveGreatWork(kInstance, kSelectedDropInstance); end end end ClearGreatWorkTransfer(); end -- =========================================================================== function OnGreatWorkDrag( kDragStruct:table, kInstance:table ) local uiDragControl:table = kDragStruct:GetControl(); local uiBestDropTarget = uiDragControl:GetBestOverlappingControl( m_kViableDropTargets ); if uiBestDropTarget then HighlightDropTarget(uiBestDropTarget); m_uiSelectedDropTarget = uiBestDropTarget; else HighlightDropTarget(); m_uiSelectedDropTarget = nil; end end -- =========================================================================== function HighlightDropTarget( uiBestDropTarget:table ) for _,uiDropTarget in ipairs(m_kViableDropTargets) do if uiDropTarget == Controls.ViewGreatWork then Controls.ViewGreatWork:SetSelected(uiBestDropTarget == Controls.ViewGreatWork); else local pDropInstance = m_kControlToInstanceMap[uiDropTarget]; if pDropInstance ~= nil then pDropInstance.EmptySlotHighlight:SetHide(uiDropTarget ~= uiBestDropTarget); end end end end -- IMPORTANT: This logic is largely duplicated in GreatWorkFitsTheme() - if you make an update here, make sure to update that function as well function GetGreatWorkTooltip(pCityBldgs:table, greatWorkIndex:number, greatWorkType:number, pBuildingInfo:table) local greatWorkTypeName:string; local greatWorkInfo:table = GameInfo.GreatWorks[greatWorkType]; local greatWorkCreator:string = Locale.Lookup(pCityBldgs:GetCreatorNameFromIndex(greatWorkIndex)); local bIsThemeable :boolean = GetThemeDescription(pBuildingInfo.BuildingType) ~= nil; local strBasicTooltip :string = GreatWorksSupport_GetBasicTooltip( greatWorkIndex, bIsThemeable ); local buildingName:string = Locale.Lookup(GameInfo.Buildings[pBuildingInfo.BuildingType].Name); if greatWorkInfo.EraType ~= nil then greatWorkTypeName = Locale.Lookup("LOC_" .. greatWorkInfo.GreatWorkObjectType .. "_" .. greatWorkInfo.EraType); else greatWorkTypeName = Locale.Lookup("LOC_" .. greatWorkInfo.GreatWorkObjectType); end if bIsThemeable then local strThemeTooltip :string; local firstGreatWork:number = GetFirstGreatWorkInBuilding(pCityBldgs, pBuildingInfo); if firstGreatWork < 0 then return strBasicTooltip; end local firstGreatWorkObjectTypeID:number = pCityBldgs:GetGreatWorkTypeFromIndex(firstGreatWork); local firstGreatWorkObjectType:string = GameInfo.GreatWorks[firstGreatWorkObjectTypeID].GreatWorkObjectType; if pCityBldgs:IsBuildingThemedCorrectly(GameInfo.Buildings[pBuildingInfo.BuildingType].Index) then strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_ART_MATCHED_THEME", buildingName); else if pBuildingInfo.BuildingType == "BUILDING_MUSEUM_ART" then if firstGreatWork == greatWorkIndex then strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_ART_THEME_SINGLE", Locale.Lookup("LOC_" .. firstGreatWorkObjectType)); elseif not IsFirstGreatWorkByArtist(greatWorkIndex, pCityBldgs, pBuildingInfo) then -- Override the basic tooltip with the duplicate tooltip, this could be moved to GreatWorksSupport.lua depending on how it should work with artifacts local nTurnCreated:number = Game.GetGreatWorkDataFromIndex(greatWorkIndex).TurnCreated; local greatWorkName:string = Locale.Lookup(greatWorkInfo.Name); local greatWorkCreationDate:string = Calendar.MakeDateStr(nTurnCreated, GameConfiguration.GetCalendarType(), GameConfiguration.GetGameSpeedType(), false); strBasicTooltip = Locale.Lookup("LOC_GREAT_WORKS_TOOLTIP_DUPLICATE", greatWorkName, greatWorkTypeName, greatWorkCreator, greatWorkCreationDate); strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_ART_THEME_DUPLICATE_ARTIST"); elseif firstGreatWorkObjectType == greatWorkInfo.GreatWorkObjectType then strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_ART_THEME_DUAL", Locale.Lookup("LOC_" .. firstGreatWorkObjectType)); else strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_MISMATCHED_THEME", greatWorkTypeName, Locale.Lookup("LOC_" .. firstGreatWorkObjectType .. "_PLURAL")); end elseif pBuildingInfo.BuildingType == "BUILDING_MUSEUM_ARTIFACT" then local artifactEraName:string = Locale.Lookup("LOC_" .. greatWorkInfo.GreatWorkObjectType .. "_" .. greatWorkInfo.EraType); if firstGreatWork == greatWorkIndex then strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_ART_THEME_SINGLE", artifactEraName); else local firstArtifactEraName:string = Locale.Lookup("LOC_" .. firstGreatWorkObjectType .. "_" .. GameInfo.GreatWorks[firstGreatWorkObjectTypeID].EraType .. "_PLURAL"); if greatWorkInfo.EraType ~= GameInfo.GreatWorks[firstGreatWorkObjectTypeID].EraType then strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_MISMATCHED_ERA", artifactEraName, firstArtifactEraName); else local greatWorkPlayer:number = Game.GetGreatWorkPlayer(greatWorkIndex); local greatWorks:table = GetGreatWorksInBuilding(pCityBldgs, pBuildingInfo); -- Find duplicates for theming description local hash:table = {} local duplicates:table = {} for _,index in ipairs(greatWorks) do local gwPlayer:number = Game.GetGreatWorkPlayer(index); if (not hash[gwPlayer]) then hash[gwPlayer] = true; else table.insert(duplicates, gwPlayer); end end if table.count(duplicates) > 0 then strThemeTooltip = Locale.Lookup("LOC_GREAT_WORKS_DUPLICATE_ARTIFACT_CIVS", PlayerConfigurations[duplicates[1]]:GetCivilizationShortDescription(), firstArtifactEraName); end end end end end if strThemeTooltip ~= nil then return strBasicTooltip .. "[NEWLINE][NEWLINE]" .. strThemeTooltip; end end return strBasicTooltip; end function GetFirstGreatWorkInBuilding(pCityBldgs:table, pBuildingInfo:table) local index:number = 0; local buildingIndex:number = pBuildingInfo.Index; local numSlots:number = pCityBldgs:GetNumGreatWorkSlots(buildingIndex); for _:number=0, numSlots - 1 do local greatWorkIndex:number = pCityBldgs:GetGreatWorkInSlot(buildingIndex, index); if greatWorkIndex ~= -1 then return greatWorkIndex; end index = index + 1; end return -1; end function GetGreatWorksInBuilding(pCityBldgs:table, pBuildingInfo:table) local index:number = 0; local results:table = {}; local buildingIndex:number = pBuildingInfo.Index; local numSlots:number = pCityBldgs:GetNumGreatWorkSlots(buildingIndex); for _:number=0, numSlots - 1 do local greatWorkIndex:number = pCityBldgs:GetGreatWorkInSlot(buildingIndex, index); if greatWorkIndex ~= -1 then table.insert(results, greatWorkIndex); end index = index + 1; end return results; end function IsFirstGreatWorkByArtist(greatWorkIndex, pCityBldgs, pBuildingInfo) local greatWorks:table = GetGreatWorksInBuilding(pCityBldgs, pBuildingInfo); local artist = pCityBldgs:GetCreatorNameFromIndex(greatWorkIndex); -- no need to localize -- Find duplicates for theming description for _,index in ipairs(greatWorks) do if (index == greatWorkIndex) then -- Didn't find a duplicate before the specified great work return true; end local creator = pCityBldgs:GetCreatorNameFromIndex(index); -- no need to localize if (creator == artist) then -- Found a duplicate before the specified great work return false; end end -- The specified great work isn't in this building, if it was added it would be unique return true; end function AddYield(instance:table, yieldName:string, yieldIcon:string, yieldValue:number) local bFoundYield:boolean = false; for _,data in ipairs(m_GreatWorkYields) do if data.Name == yieldName then data.Value = data.Value + yieldValue; bFoundYield = true; break; end end if bFoundYield == false then table.insert(m_GreatWorkYields, {Name=yieldName, Icon=yieldIcon, Value=yieldValue}); end instance.Resource:SetText(yieldIcon .. yieldValue); instance.Resource:SetToolTipString(yieldName); end function OnClickGreatWork(kDragStruct:table, pCityBldgs:table, buildingIndex:number, greatWorkIndex:number, slotIndex:number) -- Don't allow moving great works unless it's the local player's turn if not m_isLocalPlayerTurn then return; end -- Don't allow moving artifacts if the museum is not full if not CanMoveWorkAtAll(pCityBldgs, buildingIndex, slotIndex) then return; end local greatWorkType:number = pCityBldgs:GetGreatWorkTypeFromIndex(greatWorkIndex); -- Subscribe to updates to keep great work icon attached to mouse m_GreatWorkSelected = {Index=greatWorkIndex, Slot=slotIndex, Building=buildingIndex, CityBldgs=pCityBldgs}; -- Set placing label and details Controls.PlacingContainer:SetHide(false); Controls.HeaderStatsContainer:SetHide(true); Controls.PlacingName:SetText(Locale.ToUpper(Locale.Lookup(GameInfo.GreatWorks[greatWorkType].Name))); local textureOffsetX:number, textureOffsetY:number, textureSheet:string = GetGreatWorkIcon(GameInfo.GreatWorks[greatWorkType]); Controls.PlacingIcon:SetTexture(textureOffsetX, textureOffsetY, textureSheet); for _:number, destination:table in ipairs(m_GreatWorkBuildings) do local firstValidSlot:number = -1; local instance:table = destination.Instance; local dstBuilding:number = destination.Index; local dstBldgs:table = destination.CityBldgs; local slotCache:table = instance[DATA_FIELD_SLOT_CACHE]; local numSlots:number = dstBldgs:GetNumGreatWorkSlots(dstBuilding); for index:number = 0, numSlots - 1 do if CanMoveGreatWork(pCityBldgs, buildingIndex, slotIndex, dstBldgs, dstBuilding, index) then if firstValidSlot == -1 then firstValidSlot = index; end local slotInstance:table = slotCache[index + 1]; if slotInstance then table.insert(m_kViableDropTargets, slotInstance.TopControl); m_kControlToInstanceMap[slotInstance.TopControl] = slotInstance; end end end if firstValidSlot ~= -1 then UI.PlaySound("UI_GreatWorks_Pick_Up"); end instance.HighlightedBG:SetHide(firstValidSlot == -1); instance.DefaultBG:SetHide(firstValidSlot == -1); instance.DisabledBG:SetHide(firstValidSlot ~= -1); end -- Add ViewGreatWorks button to drop targets so we can view specific works table.insert(m_kViableDropTargets, Controls.ViewGreatWork); end -- =========================================================================== function CanMoveWorkAtAll(srcBldgs:table, srcBuilding:number, srcSlot:number) local srcGreatWork:number = srcBldgs:GetGreatWorkInSlot(srcBuilding, srcSlot); local srcGreatWorkType:number = srcBldgs:GetGreatWorkTypeFromIndex(srcGreatWork); local srcGreatWorkObjectType:string = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType; -- Don't allow moving artifacts if the museum is not full if (srcGreatWorkObjectType == GREAT_WORK_ARTIFACT_TYPE) then if not IsBuildingFull(srcBldgs, srcBuilding) then return false; end end -- Don't allow moving art that has been recently created if (srcGreatWorkObjectType == "GREATWORKOBJECT_SCULPTURE" or srcGreatWorkObjectType == "GREATWORKOBJECT_LANDSCAPE" or srcGreatWorkObjectType == "GREATWORKOBJECT_PORTRAIT" or srcGreatWorkObjectType == "GREATWORKOBJECT_RELIGIOUS") then local iTurnCreated:number = srcBldgs:GetTurnFromIndex(srcGreatWork); local iCurrentTurn:number = Game.GetCurrentGameTurn(); local iTurnsBeforeMove:number = GlobalParameters.GREATWORK_ART_LOCK_TIME or DEFAULT_LOCK_TURNS; local iTurnsToWait = iTurnCreated + iTurnsBeforeMove - iCurrentTurn; if iTurnsToWait > 0 then return false; end end return true; end -- =========================================================================== function IsBuildingFull( pBuildings:table, buildingIndex:number ) local numSlots:number = pBuildings:GetNumGreatWorkSlots(buildingIndex); for index:number = 0, numSlots - 1 do local greatWorkIndex:number = pBuildings:GetGreatWorkInSlot(buildingIndex, index); if (greatWorkIndex == -1) then return false; end end return true; end -- =========================================================================== function ShowCannotMoveMessage(sMessage:string) local cannotMoveWorkDialog = PopupDialogInGame:new("CannotMoveWork"); cannotMoveWorkDialog:ShowOkDialog(sMessage); end -- =========================================================================== function CanMoveToSlot(destBldgs:table, destBuilding:number) -- Don't allow moving artifacts if the museum is not full local srcGreatWorkType:number = m_GreatWorkSelected.CityBldgs:GetGreatWorkTypeFromIndex(m_GreatWorkSelected.Index); local srcGreatWorkObjectType:string = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType; if (srcGreatWorkObjectType ~= GREAT_WORK_ARTIFACT_TYPE) then return true; end -- Don't allow moving artifacts if the museum is not full local numSlots:number = destBldgs:GetNumGreatWorkSlots(destBuilding); for index:number = 0, numSlots - 1 do local greatWorkIndex:number = destBldgs:GetGreatWorkInSlot(destBuilding, index); if (greatWorkIndex == -1) then return false; end end return true; end -- =========================================================================== function CanMoveGreatWork(srcBldgs:table, srcBuilding:number, srcSlot:number, dstBldgs:table, dstBuilding:number, dstSlot:number) local srcGreatWork:number = srcBldgs:GetGreatWorkInSlot(srcBuilding, srcSlot); local srcGreatWorkType:number = srcBldgs:GetGreatWorkTypeFromIndex(srcGreatWork); local srcGreatWorkObjectType:string = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType; local dstGreatWork:number = dstBldgs:GetGreatWorkInSlot(dstBuilding, dstSlot); local dstSlotType:number = dstBldgs:GetGreatWorkSlotType(dstBuilding, dstSlot); local dstSlotTypeString:string = GameInfo.GreatWorkSlotTypes[dstSlotType].GreatWorkSlotType; for row in GameInfo.GreatWork_ValidSubTypes() do -- Ensure source great work can be placed into destination slot if dstSlotTypeString == row.GreatWorkSlotType and srcGreatWorkObjectType == row.GreatWorkObjectType then if dstGreatWork == -1 then -- Artifacts can never be moved to an empty slot as -- they can only be swapped between other full museums return row.GreatWorkObjectType ~= GREAT_WORK_ARTIFACT_TYPE; else -- If destination slot has a great work, ensure it can be swapped to the source slot local srcSlotType:number = srcBldgs:GetGreatWorkSlotType(srcBuilding, srcSlot); local srcSlotTypeString:string = GameInfo.GreatWorkSlotTypes[srcSlotType].GreatWorkSlotType; local dstGreatWorkType:number = dstBldgs:GetGreatWorkTypeFromIndex(dstGreatWork); local dstGreatWorkObjectType:string = GameInfo.GreatWorks[dstGreatWorkType].GreatWorkObjectType; for row in GameInfo.GreatWork_ValidSubTypes() do if srcSlotTypeString == row.GreatWorkSlotType and dstGreatWorkObjectType == row.GreatWorkObjectType then return CanMoveWorkAtAll(dstBldgs, dstBuilding, dstSlot); end end end end end return false; end -- =========================================================================== function MoveGreatWork( kSrcInstance:table, kDestInstance:table ) if kSrcInstance ~= nil and kDestInstance ~= nil then -- Don't try to move the great work if it was dropped on the slot it was already in if kSrcInstance[DATA_FIELD_CITY_ID] == kDestInstance[DATA_FIELD_CITY_ID] and kSrcInstance[DATA_FIELD_BUILDING_ID] == kDestInstance[DATA_FIELD_BUILDING_ID] and kSrcInstance[DATA_FIELD_SLOT_INDEX] == kDestInstance[DATA_FIELD_SLOT_INDEX] then kSrcInstance.EmptySlotHighlight:SetHide(true); return; end -- Swap instance great work icons while we wait for the game core to update local sourceGreatWorkType:number = kSrcInstance[DATA_FIELD_GREAT_WORK_TYPE]; local destGreatWorkType:number = kDestInstance[DATA_FIELD_GREAT_WORK_TYPE]; if destGreatWorkType == -1 then kSrcInstance.GreatWorkIcon:SetHide(true); else local textureOffsetX:number, textureOffsetY:number, textureSheet:string = GetGreatWorkIcon(GameInfo.GreatWorks[destGreatWorkType]); kSrcInstance.GreatWorkIcon:SetHide(false); kSrcInstance.GreatWorkIcon:SetTexture(textureOffsetX, textureOffsetY, textureSheet); end if sourceGreatWorkType == -1 then kDestInstance.GreatWorkIcon:SetHide(true); else local textureOffsetX:number, textureOffsetY:number, textureSheet:string = GetGreatWorkIcon(GameInfo.GreatWorks[sourceGreatWorkType]); kDestInstance.GreatWorkIcon:SetHide(false); kDestInstance.GreatWorkIcon:SetTexture(textureOffsetX, textureOffsetY, textureSheet); end m_dest_building = kDestInstance[DATA_FIELD_BUILDING_ID]; m_dest_city = kDestInstance[DATA_FIELD_CITY_ID]; local tParameters = {}; tParameters[PlayerOperations.PARAM_PLAYER_ONE] = Game.GetLocalPlayer(); tParameters[PlayerOperations.PARAM_CITY_SRC] = kSrcInstance[DATA_FIELD_CITY_ID]; tParameters[PlayerOperations.PARAM_CITY_DEST] = kDestInstance[DATA_FIELD_CITY_ID]; tParameters[PlayerOperations.PARAM_BUILDING_SRC] = kSrcInstance[DATA_FIELD_BUILDING_ID]; tParameters[PlayerOperations.PARAM_BUILDING_DEST] = kDestInstance[DATA_FIELD_BUILDING_ID]; tParameters[PlayerOperations.PARAM_GREAT_WORK_INDEX] = kSrcInstance[DATA_FIELD_GREAT_WORK_INDEX]; tParameters[PlayerOperations.PARAM_SLOT] = kDestInstance[DATA_FIELD_SLOT_INDEX]; UI.RequestPlayerOperation(Game.GetLocalPlayer(), PlayerOperations.MOVE_GREAT_WORK, tParameters); UI.PlaySound("UI_GreatWorks_Put_Down"); end ContextPtr:ClearUpdate(); end -- =========================================================================== function ClearGreatWorkTransfer() m_GreatWorkSelected = nil; m_kViableDropTargets = {}; m_kControlToInstanceMap = {}; for _:number, destination:table in ipairs(m_GreatWorkBuildings) do local instance:table = destination.Instance; instance.HighlightedBG:SetHide(true); instance.DefaultBG:SetHide(false); instance.DisabledBG:SetHide(true); end Controls.PlacingContainer:SetHide(true); Controls.HeaderStatsContainer:SetHide(false); ContextPtr:ClearUpdate(); end -- =========================================================================== -- Update player data and refresh the display state -- =========================================================================== function UpdateData() UpdatePlayerData(); UpdateGreatWorks(); end -- =========================================================================== -- Show / Hide -- =========================================================================== function Open() if (Game.GetLocalPlayer() == -1) then return end -- CUI >> cui_ThemeHelper = false; if not UIManager:IsInPopupQueue(ContextPtr) then local kParameters = {}; kParameters.RenderAtCurrentParent = true; kParameters.InputAtCurrentParent = true; kParameters.AlwaysVisibleInQueue = true; UIManager:QueuePopup(ContextPtr, PopupPriority.Low, kParameters); UI.PlaySound("UI_Screen_Open"); end -- << CUI UpdateData(); ContextPtr:SetHide(false); -- From Civ6_styles: FullScreenVignetteConsumer Controls.ScreenAnimIn:SetToBeginning(); Controls.ScreenAnimIn:Play(); LuaEvents.GreatWorks_OpenGreatWorks(); end function Close() -- CUI >> cui_ThemeHelper = false; if not ContextPtr:IsHidden() then UI.PlaySound("UI_Screen_Close"); end if UIManager:DequeuePopup(ContextPtr) then LuaEvents.GreatPeople_CloseGreatPeople(); end -- << CUI ContextPtr:SetHide(true); ContextPtr:ClearUpdate(); end function ViewGreatWork(greatWorkData:table) local city:table = greatWorkData.CityBldgs:GetCity(); local buildingID:number = greatWorkData.Building; local greatWorkIndex:number = greatWorkData.Index; LuaEvents.GreatWorksOverview_ViewGreatWork(city, buildingID, greatWorkIndex); end -- =========================================================================== -- Game Event Callbacks -- =========================================================================== function OnShowScreen() if (Game.GetLocalPlayer() == -1) then return end Open(); -- UI.PlaySound("UI_Screen_Open"); -- CUI end -- =========================================================================== function OnHideScreen() if not ContextPtr:IsHidden() then UI.PlaySound("UI_Screen_Close"); end Close(); LuaEvents.GreatWorks_CloseGreatWorks(); end -- =========================================================================== function OnInputHandler(pInputStruct:table) local uiMsg = pInputStruct:GetMessageType(); if uiMsg == KeyEvents.KeyUp and pInputStruct:GetKey() == Keys.VK_ESCAPE then if m_GreatWorkSelected ~= nil then ClearGreatWorkTransfer(); else OnHideScreen(); end return true; end return false; end -- =========================================================================== function OnViewGallery() if m_FirstGreatWork ~= nil then ViewGreatWork(m_FirstGreatWork); if m_GreatWorkSelected ~= nil then ClearGreatWorkTransfer(); end UI.PlaySound("Play_GreatWorks_Gallery_Ambience"); end end -- =========================================================================== function OnViewGreatWork() if m_GreatWorkSelected ~= nil then ViewGreatWork(m_GreatWorkSelected); ClearGreatWorkTransfer(); UpdateData(); UI.PlaySound("Play_GreatWorks_Gallery_Ambience"); end end ------------------------------------------------------------------------------ -- A great work was moved. function OnGreatWorkMoved(fromCityOwner, fromCityID, toCityOwner, toCityID, buildingID, greatWorkType) if (not ContextPtr:IsHidden() and (fromCityOwner == Game.GetLocalPlayer() or toCityOwner == Game.GetLocalPlayer())) then m_during_move = true; UpdateData(); m_during_move = false; end end -- =========================================================================== -- Hot Reload Related Events -- =========================================================================== function OnInit(isReload:boolean) if isReload then LuaEvents.GameDebug_GetValues(RELOAD_CACHE_ID); end end function OnShutdown() LuaEvents.GameDebug_AddValue(RELOAD_CACHE_ID, "isHidden", ContextPtr:IsHidden()); LuaEvents.GameDebug_Return.Remove(OnGameDebugReturn); LuaEvents.LaunchBar_OpenGreatWorksOverview.Remove(OnShowScreen); LuaEvents.GreatWorkCreated_OpenGreatWorksOverview.Remove(OnShowScreen); LuaEvents.LaunchBar_CloseGreatWorksOverview.Remove(OnHideScreen); Events.GreatWorkMoved.Remove(OnGreatWorkMoved); Events.LocalPlayerTurnBegin.Remove(OnLocalPlayerTurnBegin); Events.LocalPlayerTurnEnd.Remove(OnLocalPlayerTurnEnd); end function OnGameDebugReturn(context:string, contextTable:table) if context == RELOAD_CACHE_ID and contextTable["isHidden"] ~= nil and not contextTable["isHidden"] then Open(); end end -- =========================================================================== -- Player Turn Events -- =========================================================================== function OnLocalPlayerTurnBegin() m_isLocalPlayerTurn = true; end function OnLocalPlayerTurnEnd() m_isLocalPlayerTurn = false; if(GameConfiguration.IsHotseat()) then OnHideScreen(); end end -- CUI ----------------------------------------------------------------------- function CuiSetThemeMask(instance, srcBldgs, srcBuilding, srcSlot) local srcGreatWork = srcBldgs:GetGreatWorkInSlot(srcBuilding, srcSlot) local srcGreatWorkType = srcBldgs:GetGreatWorkTypeFromIndex(srcGreatWork) local srcGreatWorkObjectType = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType local greatWorkInfo = GameInfo.GreatWorks[srcGreatWorkType] local artist = 0 if greatWorkInfo.GreatPersonReference then artist = greatWorkInfo.GreatPersonReference.Index elseif greatWorkInfo.EraType then artist = Game.GetGreatWorkPlayer(srcGreatWork) end instance.ThemeText:SetText(artist) instance.ThemeBacking:SetHide(false) if srcGreatWorkObjectType == "GREATWORKOBJECT_ARTIFACT" then if greatWorkInfo.EraType == "ERA_ANCIENT" then instance.ThemeColor:SetColorByName("Civ6Blue") elseif greatWorkInfo.EraType == "ERA_CLASSICAL" then instance.ThemeColor:SetColorByName("Civ6DarkRed") elseif greatWorkInfo.EraType == "ERA_MEDIEVAL" then instance.ThemeColor:SetColorByName("Civ6Green") elseif greatWorkInfo.EraType == "ERA_RENAISSANCE" then instance.ThemeColor:SetColorByName("Civ6LightBlue") elseif greatWorkInfo.EraType == "ERA_INDUSTRIAL" then instance.ThemeColor:SetColorByName("Civ6Red") end elseif srcGreatWorkObjectType == "GREATWORKOBJECT_SCULPTURE" then instance.ThemeColor:SetColorByName("COLOR_FLOAT_CULTURE") elseif srcGreatWorkObjectType == "GREATWORKOBJECT_LANDSCAPE" then instance.ThemeColor:SetColorByName("COLOR_FLOAT_FOOD") elseif srcGreatWorkObjectType == "GREATWORKOBJECT_PORTRAIT" then instance.ThemeColor:SetColorByName("COLOR_FLOAT_GOLD") elseif srcGreatWorkObjectType == "GREATWORKOBJECT_RELIGIOUS" then instance.ThemeColor:SetColorByName("COLOR_FLOAT_PRODUCTION") else instance.ThemeColor:SetColorByName("Clear") instance.ThemeBacking:SetHide(true) instance.ThemeText:SetText(" ") end end -- CUI ----------------------------------------------------------------------- function CuiSetLockMask(instance, srcBldgs, srcBuilding, srcSlot) local srcGreatWork = srcBldgs:GetGreatWorkInSlot(srcBuilding, srcSlot) local srcGreatWorkType = srcBldgs:GetGreatWorkTypeFromIndex(srcGreatWork) local srcGreatWorkObjectType = GameInfo.GreatWorks[srcGreatWorkType].GreatWorkObjectType instance.LockIcon:SetHide(true) instance.LockMask:SetHide(true) instance.LockColor:SetColorByName("Clear") instance.LockText:SetText(" ") -- lock no turns if (srcGreatWorkObjectType == "GREATWORKOBJECT_ARTIFACT") then -- lock with turns local numSlots = srcBldgs:GetNumGreatWorkSlots(srcBuilding) for index = 0, numSlots - 1 do local greatWorkIndex = srcBldgs:GetGreatWorkInSlot(srcBuilding, index) if (greatWorkIndex == -1) then instance.LockIcon:SetHide(false) instance.LockMask:SetHide(false) instance.LockColor:SetColorByName("Black") instance.LockText:SetText(" ") end end elseif (srcGreatWorkObjectType == "GREATWORKOBJECT_SCULPTURE" or srcGreatWorkObjectType == "GREATWORKOBJECT_LANDSCAPE" or srcGreatWorkObjectType == "GREATWORKOBJECT_PORTRAIT" or srcGreatWorkObjectType == "GREATWORKOBJECT_RELIGIOUS") then local iTurnCreated = srcBldgs:GetTurnFromIndex(srcGreatWork) local iCurrentTurn = Game.GetCurrentGameTurn() local iTurnsBeforeMove = GlobalParameters.GREATWORK_ART_LOCK_TIME or 10 local iTurnsToWait = iTurnCreated + iTurnsBeforeMove - iCurrentTurn if iTurnsToWait > 0 then instance.LockIcon:SetHide(false) instance.LockMask:SetHide(false) instance.LockColor:SetColorByName("Black") instance.LockText:SetText(iTurnsToWait .. "[ICON_TURN]") end end end -- CUI ----------------------------------------------------------------------- function CuiOnSortButtonClick() local IsSortByCity = CuiSettings:ReverseAndGetBoolean(CuiSettings.SORT_BY_CITY) if IsSortByCity then Controls.SortGreatWork:SetText(Locale.Lookup("LOC_CUI_GW_SORT_BY_BUILDING")) else Controls.SortGreatWork:SetText(Locale.Lookup("LOC_CUI_GW_SORT_BY_CITY")) end UpdateData() end -- CUI ----------------------------------------------------------------------- function CuiOnThemeButtonClick() cui_ThemeHelper = not cui_ThemeHelper UpdateData() end -- CUI ----------------------------------------------------------------------- function CuiInit() local IsSortByCity = CuiSettings:GetBoolean(CuiSettings.SORT_BY_CITY) if IsSortByCity then Controls.SortGreatWork:SetText(Locale.Lookup("LOC_CUI_GW_SORT_BY_BUILDING")) else Controls.SortGreatWork:SetText(Locale.Lookup("LOC_CUI_GW_SORT_BY_CITY")) end Controls.SortGreatWork:RegisterCallback(Mouse.eLClick, CuiOnSortButtonClick) Controls.SortGreatWork:RegisterCallback( Mouse.eMouseEnter, function() UI.PlaySound("Main_Menu_Mouse_Over") end ) Controls.ThemeHelper:RegisterCallback(Mouse.eLClick, CuiOnThemeButtonClick) Controls.ThemeHelper:RegisterCallback( Mouse.eMouseEnter, function() UI.PlaySound("Main_Menu_Mouse_Over") end ) Controls.ThemeHelper:SetToolTipString(Locale.Lookup("LOC_CUI_GW_THEMING_HELPER_TOOLTIP")) end -- =========================================================================== -- INIT -- =========================================================================== function Initialize() if (not HasCapability("CAPABILITY_GREAT_WORKS_VIEW")) then -- Viewing Great Works is off, just exit return; end CuiInit(); -- CUI ContextPtr:SetInitHandler(OnInit); ContextPtr:SetShutdown(OnShutdown); ContextPtr:SetInputHandler(OnInputHandler, true); Controls.ModalBG:SetTexture("GreatWorks_Background"); Controls.ModalScreenTitle:SetText(Locale.ToUpper(LOC_SCREEN_TITLE)); Controls.ModalScreenClose:RegisterCallback(Mouse.eLClick, OnHideScreen); Controls.ModalScreenClose:RegisterCallback( Mouse.eMouseEnter, function() UI.PlaySound("Main_Menu_Mouse_Over"); end); Controls.ViewGallery:RegisterCallback(Mouse.eLClick, OnViewGallery); Controls.ViewGallery:RegisterCallback( Mouse.eMouseEnter, function() UI.PlaySound("Main_Menu_Mouse_Over"); end); Controls.ViewGreatWork:RegisterCallback(Mouse.eLClick, OnViewGreatWork); Controls.ViewGreatWork:RegisterCallback( Mouse.eMouseEnter, function() UI.PlaySound("Main_Menu_Mouse_Over"); end); LuaEvents.GameDebug_Return.Add(OnGameDebugReturn); LuaEvents.LaunchBar_OpenGreatWorksOverview.Add(OnShowScreen); LuaEvents.GreatWorkCreated_OpenGreatWorksOverview.Add(OnShowScreen); LuaEvents.LaunchBar_CloseGreatWorksOverview.Add(OnHideScreen); Events.GreatWorkMoved.Add(OnGreatWorkMoved); Events.LocalPlayerTurnBegin.Add(OnLocalPlayerTurnBegin); Events.LocalPlayerTurnEnd.Add(OnLocalPlayerTurnEnd); m_TopPanelConsideredHeight = Controls.Vignette:GetSizeY() - TOP_PANEL_OFFSET; -- CUI end Initialize();
--[[---------------------------------------------------------------------------- Classic Guild Frame Restoring the old GuildUI for BfA (c) 2018 - Sanex @ EU-Arathor / ahak @ Curseforge /run GuildFrame_Toggle() /run ToggleCommunitiesFrame() /run ToggleGuildFinder() ----------------------------------------------------------------------------]]-- local ADDON_NAME, _ = ... local _G = _G local LibDD = LibStub:GetLibrary("LibUIDropDownMenu-4.0") local L = {} do -- Translations local LOCALE = GetLocale() -- English, 16 Phrases -- Options L.enableTabs = "Enable Tabs:" L.cWarningText = "You have to leave at least one tab enabled!" L.defaultTab = "Default Tab for the first opening:" L.dWarningText = "You have to select tab that is enabled!" L.alwaysDefault = "Always open to Default Tab:" L.alwaysDefaultHelp = "If disabled, addon will open to the last open tab after first opening." L.miniModeDefault = "Open Chat in Minimized-mode" L.miniModeDefaultHelp = "Pressing the Maximize/Minimize-button on the Chat-frame will change this." L.highlightStyle = "Chat-tab Highlight" L.highlightStyleHelp = "If you have selected highlight style, you get pulsing glow in the Chat-tab to notify you when there are unread messages in the Chat-frame. Select style from the dropdown menu on the left and see the preview on the right." -- Style names , "None" is same as _G.NONE L.styleBlueHighlight = "Blue Highlight" L.styleYellowHighlight = "Yellow Highlight" L.styleBlueBorder = "Blue Border" L.styleGreenSphere = "Green Sphere" L.styleGoldSphere = "Golden Sphere" L.styleWhiteLine = "White Line" if LOCALE == "deDE" then elseif LOCALE == "esES" then elseif LOCALE == "esMX" then elseif LOCALE == "frFR" then elseif LOCALE == "itIT" then elseif LOCALE == "ptBR" then elseif LOCALE == "ruRU" then -- Russian 100% translated, translations 16 -- By Hubbotu L["alwaysDefault"] = "Всегда открывайте вкладку по умолчанию:" L["alwaysDefaultHelp"] = "Если отключено, аддон откроется до последней открытой вкладки после первого открытия." L["cWarningText"] = "Вы должны оставить хотя бы одну вкладку включенной!" L["defaultTab"] = "Вкладка По умолчанию для первого открытия:" L["dWarningText"] = "Вы должны выбрать вкладку, которая включена!" L["enableTabs"] = "Включить вкладки:" L["highlightStyle"] = "Выделите вкладку чата" L["highlightStyleHelp"] = "Если вы выбрали стиль выделения, вы получите пульсирующий свет на вкладке Чата, чтобы уведомить вас, когда в чате есть непрочитанные сообщения. Выберите стиль в выпадающем меню слева и посмотрите предварительный просмотр справа." L["miniModeDefault"] = "Открыть чат в мини-режиме" L["miniModeDefaultHelp"] = "Нажмите кнопку максимизировать / максимизировать на чате изменит его." L["styleBlueBorder"] = "Голубая граница" L["styleBlueHighlight"] = "Голубая подсветка" L["styleGoldSphere"] = "Золотая сфера" L["styleGreenSphere"] = "Зеленая сфера" L["styleWhiteLine"] = "Белая линия" L["styleYellowHighlight"] = "Желтая подсветка" elseif LOCALE == "koKR" then elseif LOCALE == "zhCN" then elseif LOCALE == "zhTW" then end end local communitiesTabs = { -- Parent-keys of CommunitiesUI sidetabs "ChatTab", "RosterTab", "GuildBenefitsTab", "GuildInfoTab" } local tabNames = { -- Names of the tabs COMMUNITIES_CHAT_TAB_TOOLTIP, GUILD_TAB_NEWS, GUILD_TAB_ROSTER, GUILD_TAB_PERKS, GUILD_TAB_REWARDS, GUILD_TAB_INFO } local highlightStyles = { -- Styles for Chat-tab Highlight { name = NONE, tex = "", l = 0, r = 1, t = 0, b = 1 }, -- None { name = L.styleBlueHighlight, tex = "Interface\\PaperDollInfoFrame\\UI-Character-Tab-Highlight", l = 0, r = 1, t = 0, b = 1 }, -- Highlight { name = L.styleYellowHighlight, tex = "Interface\\PaperDollInfoFrame\\UI-Character-Tab-Highlight-yellow", l = 0, r = 1, t = 0, b = 1 }, -- Highlight - Yellow { name = L.styleBlueBorder, tex = "Interface\\GMChatFrame\\UI-GMStatusFrame-Pulse", l = 0, r = 1, t = 0, b = 1 }, -- GMStatusFrame - Pulse { name = L.styleGreenSphere, tex = "Interface\\LevelUp\\LevelUpTex", l = 287/512, r = 510/512, t = 364/512, b = 249/512 }, -- LevelUp - Green { name = L.styleGoldSphere, tex = "Interface\\LevelUp\\LevelUpTex", l = 287/512, r = 510/512, t = 239/512, b = 124/512 }, -- LevelUp - Gold { name = L.styleWhiteLine, tex = "Interface\\CHATFRAME\\ChatFrameTab-NewMessage", l = 0, r = 1, t = 1, b = 0 }, -- Chat - NewMessage } local defaultStyle = 5 local defaults = { -- This table defines the addon's default settings: show = { true, -- Chat true, -- News true, -- Roster true, -- Perks true, -- Rewards true -- Info }, --miniMode = false, defaultTab = 1, openAlwaysToDefault = false, highlightStyle = defaultStyle, highlightHold = .5 } local cfg local f = CreateFrame("Frame") f:SetScript("OnEvent", function(self, event, ...) return self[event] and self[event](self, event, ...) end) f:RegisterEvent("ADDON_LOADED") local classicTabFrame = CreateFrame("Frame", ADDON_NAME.."Tabs", UIParent) classicTabFrame:SetSize(10, 10) local function initDB(db, defaults) -- This function copies values from one table into another: if type(db) ~= "table" then db = {} end if type(defaults) ~= "table" then return db end for k, v in pairs(defaults) do if type(v) == "table" then db[k] = initDB(db[k], v) elseif type(v) ~= type(db[k]) then db[k] = v end end return db end local function _stopFlashing() -- If flashing, stop flashing local glow = classicTabFrame.Tabs[1].Glow if UIFrameIsFlashing(glow) then UIFrameFlashStop(glow) end end local function HasUnseenInvitations() -- https://www.townlong-yak.com/framexml/30993/MainMenuBarMicroButtons.lua#320 local invitations = _G.C_Club.GetInvitationsForSelf() for _, invitation in ipairs(invitations) do if not _G.DISPLAYED_COMMUNITIES_INVITATIONS[invitation.club.clubId] then return true end end return false end local function _checkUnreadMessages(calledFrom) -- UIFrameFlash the Glow-texture (other option was SetButtonPulse() on the tab) if not cfg.show[1] then return end -- Chat tab is hidden local unreadMessages = _G.CommunitiesUtil.DoesAnyCommunityHaveUnreadMessages() or HasUnseenInvitations() local glow = classicTabFrame.Tabs[1].Glow if cfg.highlightStyle > #highlightStyles then cfg.highlightStyle = defaultStyle end --print(string.format("_checkUnreadMessages -> unreadMessages: %s, calledFrom: %s, highlightStyle: %d", tostring(unreadMessages), calledFrom, cfg.highlightStyle)) if cfg.highlightStyle > 1 and unreadMessages then -- Unread messages --print(string.format("_checkUnreadMessages -> unreadMessages: %s, calledFrom: %s, highlightStyle: %d", tostring(unreadMessages), calledFrom, cfg.highlightStyle)) --print("-> +++ New unreadMessages") local tex = highlightStyles[cfg.highlightStyle].tex local l, r, t, b = highlightStyles[cfg.highlightStyle].l, highlightStyles[cfg.highlightStyle].r, highlightStyles[cfg.highlightStyle].t, highlightStyles[cfg.highlightStyle].b glow:SetTexture(tex) glow:SetTexCoord(l, r, t, b) if not UIFrameIsFlashing(glow) then -- Not flashing, start flashing glow:Show() UIFrameFlash(glow, 1, 1, -1, false, cfg.highlightHold, cfg.highlightHold, ADDON_NAME) end else -- No unread messages --print("-> --- No unreadMessages") _stopFlashing() end end local function _TabShow(self, ...) -- Resize tabs on show PanelTemplates_TabResize(self, -7) --local oldWidth = self:GetWidth() --self:SetWidth(oldWidth - 4) -- Tighten the tabs a bit to make sure they all fit under the frame --print("Tab width:", tostring(oldWidth), tostring(self:GetWidth())) end local function _hideBlizzardTabs(self) -- Hide Blizzard's own tabs local CommunitiesFrame = _G.CommunitiesFrame if not CommunitiesFrame then return end for _, key in ipairs(communitiesTabs) do CommunitiesFrame[key]:Hide() end if self then classicTabFrame:SetParent(self) classicTabFrame:SetPoint("TOPLEFT", self, "BOTTOMLEFT") classicTabFrame:Show() end end local function _TabClick(self, ...) -- Handle Tab clicks --[[ CommunitiesFrame Max: 814, 426 CommunitiesFrame Min: 322, 406 CommunitiesFrame Frame: 608 CommunitiesFrame CList: 171 ]]-- local tabIndex = self:GetID() PanelTemplates_SetTab(classicTabFrame, tabIndex) PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB) local CommunitiesFrame = _G.CommunitiesFrame if not CommunitiesFrame then return end if tabIndex == 1 then -- Chat --if cfg.miniMode then if C_CVar.GetCVar("miniCommunitiesFrame") == "1" then -- CVars are strings, value 0/1 -- https://www.townlong-yak.com/framexml/8.2/Util.lua#1521 CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.MINIMIZED) CommunitiesFrame:SetWidth(322) else CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.CHAT) CommunitiesFrame:SetWidth(814) end _stopFlashing() -- Stop flashing if flashing elseif tabIndex > 1 then -- GuildUI _checkUnreadMessages("_TabClick") local CommunitiesList = _G.CommunitiesFrame.CommunitiesList local GuildDetailsFrame = _G.CommunitiesFrame.GuildDetailsFrame local GuildBenefitsFrame = _G.CommunitiesFrame.GuildBenefitsFrame local GuildLogButton = _G.CommunitiesFrame.GuildLogButton local CommunitiesControlFrame = _G.CommunitiesFrame.CommunitiesControlFrame local MemberList = _G.CommunitiesFrame.MemberList if ( tabIndex == 2 ) then -- News CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.GUILD_INFO) CommunitiesList:Hide() GuildLogButton:Hide() GuildDetailsFrame.Info:Hide() GuildDetailsFrame.News:Show() CommunitiesControlFrame:Hide() -- Let's hide this if you visited Info-tab and showed 'GuildControlButton' CommunitiesFrame:SetWidth(336) elseif ( tabIndex == 3 ) then -- Roster C_Timer.After(0, function() -- Fire on the next frame instead of the current frame CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.ROSTER) CommunitiesFrame:SetWidth(814) -- Some of the columns get stacked on top of each other sometimes when we go to the smaller tabs before coming to Roster-tab -- This should update the Roster-list so the colums should be on right places MemberList:Update() end) elseif ( tabIndex == 4 ) then -- Perks CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.GUILD_BENEFITS) CommunitiesList:Hide() GuildBenefitsFrame.Perks:Show() GuildBenefitsFrame.FactionFrame:Show() GuildBenefitsFrame.Rewards:Hide() GuildBenefitsFrame.GuildRewardsTutorialButton:Hide() CommunitiesFrame:SetWidth(301) elseif ( tabIndex == 5 ) then -- Rewards CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.GUILD_BENEFITS) CommunitiesList:Hide() GuildBenefitsFrame.Perks:Hide() GuildBenefitsFrame.FactionFrame:Hide() GuildBenefitsFrame.Rewards:Show() GuildBenefitsFrame.GuildRewardsTutorialButton:Show() CommunitiesFrame:SetWidth(336) elseif ( tabIndex == 6 ) then -- Info CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.GUILD_INFO) CommunitiesList:Hide() GuildLogButton:Show() GuildDetailsFrame.Info:Show() GuildDetailsFrame.News:Hide() CommunitiesControlFrame:Show() -- Let's show this if you visited News-tab and hid 'GuildControlButton' CommunitiesFrame:SetWidth(301) end end _hideBlizzardTabs() -- Apparently the Blizzard Tabs show up again sometimes, so we hide them with every tab-click end local function _createClassicTabs() -- Create new tabs for Classic Guild Frame classicTabFrame.Tabs = classicTabFrame.Tabs or {} if #classicTabFrame.Tabs >= 6 then return end -- Buttons already crated for i = 1, 6 do local tab = CreateFrame("Button", "ClassicTab"..i, classicTabFrame, "CharacterFrameTabButtonTemplate", i) if i == 1 then tab:SetPoint("BOTTOMLEFT", 0, -20) local t = tab:CreateTexture("$parentHighlightGlow", "ARTWORK") t:SetPoint("TOPLEFT", 12, -2) t:SetPoint("BOTTOMRIGHT", -12, 7) t:SetBlendMode("ADD") t:Hide() tab.Glow = t else tab:SetPoint("LEFT", classicTabFrame.Tabs[i-1], "RIGHT", -15, 0) end tab:SetText(tabNames[i]) tab:SetScript("OnShow", _TabShow) tab:SetScript("OnClick", _TabClick) classicTabFrame.Tabs[i] = tab end PanelTemplates_SetNumTabs(classicTabFrame, 6) classicTabFrame:Hide() end local function _selectTab() if not IsInGuild() then return end -- Abort if not in a guild, otherwise this breaks Guild Finder... if cfg.openAlwaysToDefault or (not PanelTemplates_GetSelectedTab(classicTabFrame)) then -- Always open to Default Tab or no SelectedTab _TabClick(classicTabFrame.Tabs[cfg.defaultTab]) else _TabClick(classicTabFrame.Tabs[PanelTemplates_GetSelectedTab(classicTabFrame)]) end end local function _HandleTabs(self) -- Handle hiding and anchoring Classic Guild Frame tabs local firstTab = false local previousTab = 0 local isGuilded = IsInGuild() -- Hide tabs if not in a guild for i, show in ipairs(cfg.show) do if isGuilded and show then classicTabFrame.Tabs[i]:Show() classicTabFrame.Tabs[i]:ClearAllPoints() if not firstTab then firstTab = true classicTabFrame.Tabs[i]:SetPoint("BOTTOMLEFT", 0, -20) else classicTabFrame.Tabs[i]:SetPoint("LEFT", classicTabFrame.Tabs[previousTab], "RIGHT", -15, 0) end previousTab = i else classicTabFrame.Tabs[i]:Hide() end end _checkUnreadMessages("_HandleTabs") _hideBlizzardTabs(self) _selectTab() end local setupDone = false local function _setUpCommunities() -- Finetuning to the Communities UI, this should be taint-safe if done out of combat? if setupDone then return end local point, relativeTo, relativePoint, xOfs, yOfs local GuildDetailsFrame = _G.CommunitiesFrame.GuildDetailsFrame local GuildBenefitsFrame = _G.CommunitiesFrame.GuildBenefitsFrame local GuildLogButton = _G.CommunitiesFrame.GuildLogButton -- Without the CommunitiesList -- News -- Finetuning -- -170/+40 -- TitleText -- TOPLEFT News TOPLEFT 3 35 -- 13 pixels, +7 pixels to match Perks point, relativeTo, relativePoint, xOfs, yOfs = GuildDetailsFrame.News.TitleText:GetPoint() GuildDetailsFrame.News.TitleText:SetPoint(point, relativeTo, relativePoint, 60, yOfs) -- InsetBorders -- TOPLEFT Info TOPRIGHT 12 3 point, relativeTo, relativePoint, xOfs, yOfs = GuildDetailsFrame.InsetBorderTopRight:GetPoint() GuildDetailsFrame.InsetBorderTopRight:SetPoint(point, relativeTo, relativePoint, -158, yOfs) point, relativeTo, relativePoint, xOfs, yOfs = GuildDetailsFrame.InsetBorderBottomRight:GetPoint() GuildDetailsFrame.InsetBorderBottomRight:SetPoint(point, relativeTo, relativePoint, -158, yOfs) -- Roster -- Perks -- Finetuning -- -187/+57 -- TitleText -- TOPLEFT Info TOPLEFT 10 35 -- 0 pixels point, relativeTo, relativePoint, xOfs, yOfs = GuildBenefitsFrame.Perks.TitleText:GetPoint() GuildBenefitsFrame.Perks.TitleText:SetPoint(point, relativeTo, relativePoint, 57, yOfs) -- Perks -- TOPLEFT GuildBenefitsFrame TOPLEFT 0 0 point, relativeTo, relativePoint, xOfs, yOfs = GuildBenefitsFrame.Perks:GetPoint() GuildBenefitsFrame.Perks:SetPoint(point, relativeTo, relativePoint, -187, yOfs) -- FactionFrame -- BOTTOMLEFT GuildBenefitsFrame BOTTOMLEFT 0 -25 point, relativeTo, relativePoint, xOfs, yOfs = GuildBenefitsFrame.FactionFrame:GetPoint() GuildBenefitsFrame.FactionFrame:SetPoint(point, GuildBenefitsFrame.Perks, relativePoint, xOfs, yOfs) -- Rewards -- Finetuning -- -170/+40 -- TitleText -- TOPLEFT Rewards TOPLEFT 0 35 -- 10 pixels, +7 pixels to match Perks point, relativeTo, relativePoint, xOfs, yOfs = GuildBenefitsFrame.Rewards.TitleText:GetPoint() GuildBenefitsFrame.Rewards.TitleText:SetPoint(point, relativeTo, relativePoint, 57, yOfs) -- InsetBorders -- TOPLEFT Perks TOPRIGHT 12 3 point, relativeTo, relativePoint, xOfs, yOfs = GuildBenefitsFrame.InsetBorderTopRight:GetPoint() GuildBenefitsFrame.InsetBorderTopRight:SetPoint(point, relativeTo, relativePoint, -158, yOfs) point, relativeTo, relativePoint, xOfs, yOfs = GuildBenefitsFrame.InsetBorderBottomRight:GetPoint() GuildBenefitsFrame.InsetBorderBottomRight:SetPoint(point, relativeTo, relativePoint, -158, yOfs) -- Info -- Finetuning -- -187/+57 -- TitleText -- TOPLEFT Info TOPLEFT 10 35 -- 0 pixels point, relativeTo, relativePoint, xOfs, yOfs = GuildDetailsFrame.Info.TitleText:GetPoint() GuildDetailsFrame.Info.TitleText:SetPoint(point, relativeTo, relativePoint, 57, yOfs) -- Info -- TOPLEFT GuildDetailsFrame TOPLEFT 0 0 point, relativeTo, relativePoint, xOfs, yOfs = GuildDetailsFrame.Info:GetPoint() GuildDetailsFrame.Info:SetPoint(point, relativeTo, relativePoint, -187, yOfs) -- GuildLogButton -- BOTTOMLEFT CommunitiesFrame BOTTOMLEFT 190 5 point, relativeTo, relativePoint, xOfs, yOfs = GuildLogButton:GetPoint() GuildLogButton:SetPoint(point, relativeTo, relativePoint, 3, yOfs) setupDone = true end local function _MinimizeHook() --cfg.miniMode = true --_TabClick(classicTabFrame.Tabs[1]) _selectTab() -- Return to the last open tab after pressing the MaximizeMinimizeFrame end local function _MaximizeHook() --cfg.miniMode = false --_TabClick(classicTabFrame.Tabs[1]) _selectTab() -- Return to the last open tab after pressing the MaximizeMinimizeFrame end local hooked = false function f:ADDON_LOADED(event, addon) if addon == ADDON_NAME then ClassicGuildFrameConfig = initDB(ClassicGuildFrameConfig, defaults) cfg = ClassicGuildFrameConfig _createClassicTabs() -- Create Tabs self:RegisterEvent("INITIAL_CLUBS_LOADED") -- Chat loaded self:RegisterEvent("STREAM_VIEW_MARKER_UPDATED") -- Chat updated self:RegisterEvent("CLUB_INVITATION_ADDED_FOR_SELF") -- Invitation added for self self:RegisterEvent("CLUB_INVITATION_REMOVED_FOR_SELF") -- Invitation removed for self self:RegisterEvent("PLAYER_GUILD_UPDATE") -- This appears to be fired when a player is gkicked, gquits, etc. if not hooked and IsAddOnLoaded("Blizzard_Communities") and _G.CommunitiesFrame then _G.CommunitiesFrame:HookScript("OnShow", _HandleTabs) hooksecurefunc(_G.CommunitiesFrame.MaximizeMinimizeFrame, "Minimize", _MinimizeHook) hooksecurefunc(_G.CommunitiesFrame.MaximizeMinimizeFrame, "Maximize", _MaximizeHook) _setUpCommunities() -- Setup the Communities fixes hooked = true self:UnregisterEvent(event) end elseif addon == "Blizzard_Communities" then if not hooked and IsAddOnLoaded(ADDON_NAME) then _G.CommunitiesFrame:HookScript("OnShow", _HandleTabs) hooksecurefunc(_G.CommunitiesFrame.MaximizeMinimizeFrame, "Minimize", _MinimizeHook) hooksecurefunc(_G.CommunitiesFrame.MaximizeMinimizeFrame, "Maximize", _MaximizeHook) _setUpCommunities() -- Setup the Communities fixes hooked = true self:UnregisterEvent(event) end else return end end function f:INITIAL_CLUBS_LOADED(event) _checkUnreadMessages("INITIAL_CLUBS_LOADED") self:UnregisterEvent(event) end function f:STREAM_VIEW_MARKER_UPDATED(event, clubId, streamId, lastUnreadTime) _checkUnreadMessages("STREAM_VIEW_MARKER_UPDATED") end function f:CLUB_INVITATION_ADDED_FOR_SELF(event, invitation) _checkUnreadMessages("CLUB_INVITATION_ADDED_FOR_SELF") end function f:CLUB_INVITATION_REMOVED_FOR_SELF(event, invitationId) _checkUnreadMessages("CLUB_INVITATION_REMOVED_FOR_SELF") end function f:PLAYER_GUILD_UPDATE(event, unitTarget) _HandleTabs() end do -- Blizzard Options local Options = CreateFrame("Frame", ADDON_NAME.."Options", InterfaceOptionsFramePanelContainer) Options.name = ADDON_NAME InterfaceOptions_AddCategory(Options) Options:Hide() Options:SetScript("OnShow", function(self) local cfg = ClassicGuildFrameConfig local Title, EnableTabsText, CWarningText, DefaultDropDownText, DWarningText, DefaultDropDown local AlwaysDefaultText, AlwaysDefaultCheckBox, AlwaysDefaultHelpText local MiniModeDefaultText, MiniModeDefaultCheckBox, MiniModeDefaultHelpText local HighlightDropDownText, HighlightDropDown, HighlightTestTab, HighlightDropDownHelpText local function CheckBoxOnClick(button) local checked = not not button:GetChecked() PlaySound(checked and SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON or SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF) -- Make sure at least one tab is enabled local count = 0 for _, show in ipairs(cfg.show) do if show then count = count + 1 end end if count > 1 or (count == 1 and checked) then cfg.show[button:GetID()] = checked CWarningText:Hide() else button:SetChecked(true) UIFrameFadeOut(CWarningText, 5, 1, 0) end if not checked and cfg.defaultTab == button:GetID() then -- Default tab was hidden, select new one for i, show in ipairs(cfg.show) do if show then cfg.defaultTab = i LibDD:UIDropDownMenu_SetSelectedValue(_G[ADDON_NAME.."OptionsDefaultDropDown"], cfg.defaultTab) _TabClick(classicTabFrame.Tabs[i]) break end end end if not cfg.show[PanelTemplates_GetSelectedTab(classicTabFrame)] then _TabClick(classicTabFrame.Tabs[cfg.defaultTab]) end _HandleTabs() end local function DefaultDropDownOnClick(button) if cfg.show[button.value] then cfg.defaultTab = button.value LibDD:UIDropDownMenu_SetSelectedValue(_G[ADDON_NAME.."OptionsDefaultDropDown"], cfg.defaultTab) DWarningText:Hide() _TabClick(classicTabFrame.Tabs[button.value]) else UIFrameFadeOut(DWarningText, 5, 1, 0) end end local function DefaultDropDown_Initialize() local info = LibDD:UIDropDownMenu_CreateInfo() for i, name in ipairs(tabNames) do info.text = name info.value = i info.checked = i == cfg.defaultTab info.func = DefaultDropDownOnClick LibDD:UIDropDownMenu_AddButton(info) end end local function _TestTabUpdate() if cfg.highlightStyle > #highlightStyles then cfg.highlightStyle = defaultStyle end local glow = HighlightTestTab.Glow if UIFrameIsFlashing(glow) then UIFrameFlashStop(glow) end if glow and cfg.highlightStyle > 1 then local tex = highlightStyles[cfg.highlightStyle].tex local l, r, t, b = highlightStyles[cfg.highlightStyle].l, highlightStyles[cfg.highlightStyle].r, highlightStyles[cfg.highlightStyle].t, highlightStyles[cfg.highlightStyle].b glow:SetTexture(tex) glow:SetTexCoord(l, r, t, b) if not UIFrameIsFlashing(glow) then glow:Show() UIFrameFlash(glow, 1, 1, -1, false, cfg.highlightHold, cfg.highlightHold, ADDON_NAME) end end end local function HighlightDropDownOnClick(button) cfg.highlightStyle = button.value LibDD:UIDropDownMenu_SetSelectedValue(_G[ADDON_NAME.."OptionsHighlightDropDown"], cfg.highlightStyle) _TestTabUpdate() end local function HighlightDropDown_Initialize() local info = LibDD:UIDropDownMenu_CreateInfo() for i, data in ipairs(highlightStyles) do info.text = data.name info.value = i info.checked = i == cfg.highlightStyle info.func = HighlightDropDownOnClick LibDD:UIDropDownMenu_AddButton(info) end end Title = self:CreateFontString("$parentTitle", "ARTWORK", "GameFontNormalLarge") Title:SetPoint("TOPLEFT", 16, -16) Title:SetText(ADDON_NAME) EnableTabsText = self:CreateFontString("$parentEnableTabs", "ARTWORK", "GameFontHighlight") EnableTabsText:SetPoint("TOPLEFT", Title, "BOTTOMLEFT", 0, -8) EnableTabsText:SetJustifyH("LEFT") EnableTabsText:SetText(L.enableTabs) for i = 1, #tabNames do local checkbox = CreateFrame("CheckButton", "$parentCheckButton"..i, self, "InterfaceOptionsCheckButtonTemplate", i) if i == 1 then checkbox:SetPoint("TOPLEFT", EnableTabsText, "BOTTOMLEFT", 10, -8) elseif i == math.ceil(#tabNames / 2 + 1) then -- Leave one more to the left column if there is odd number or tabNames to be future proof. Now 50/50 split and 4th with 6 tabNames. checkbox:SetPoint("TOPLEFT", "$parentCheckButton1", "TOPLEFT", math.floor(Options:GetWidth() / 5), 0) else checkbox:SetPoint("TOPLEFT", "$parentCheckButton"..i-1, "BOTTOMLEFT", 0, -8) end checkbox.Text:SetText(tabNames[i]) checkbox:SetScript("OnClick", CheckBoxOnClick) checkbox:SetChecked(cfg.show[i]) end CWarningText = self:CreateFontString("$parentCWarningText", "ARTWORK", "GameFontNormalSmall") CWarningText:SetPoint("TOPLEFT", "$parentCheckButton"..math.ceil(#tabNames / 2), "BOTTOMLEFT", 0, -8) -- SetPoint to the last CheckButton on left column CWarningText:SetJustifyH("LEFT") CWarningText:SetText(L.cWarningText) CWarningText:Hide() DefaultDropDownText = self:CreateFontString("$parentDefaultDropDownText", "ARTWORK", "GameFontHighlight") DefaultDropDownText:SetPoint("TOPLEFT", CWarningText, "BOTTOMLEFT", -10, -8) DefaultDropDownText:SetJustifyH("LEFT") DefaultDropDownText:SetText(L.defaultTab) --DefaultDropDown = CreateFrame("Button", "$parentDefaultDropDown", self, "L_UIDropDownMenuTemplate") DefaultDropDown = LibDD:Create_UIDropDownMenu(self:GetName().."DefaultDropDown", self) -- https://www.curseforge.com/wow/addons/libuidropdownmenu/pages/faq/changes-regarding-to-dropdown-templates-usage LibDD:UIDropDownMenu_Initialize(DefaultDropDown, DefaultDropDown_Initialize) LibDD:UIDropDownMenu_SetSelectedValue(DefaultDropDown, cfg.defaultTab) LibDD:UIDropDownMenu_JustifyText(DefaultDropDown, "CENTER") DefaultDropDown:SetPoint("TOPLEFT", DefaultDropDownText, "BOTTOMLEFT", 10, -12) DWarningText = self:CreateFontString("$parentCWarningText", "ARTWORK", "GameFontNormalSmall") DWarningText:SetPoint("TOPLEFT", DefaultDropDown, "BOTTOMLEFT", 0, -8) DWarningText:SetJustifyH("LEFT") DWarningText:SetText(L.dWarningText) DWarningText:Hide() AlwaysDefaultText = self:CreateFontString("$parentAlwaysDefault", "ARTWORK", "GameFontHighlight") AlwaysDefaultText:SetPoint("TOPLEFT", DWarningText, "BOTTOMLEFT", -10, -8) AlwaysDefaultText:SetJustifyH("LEFT") AlwaysDefaultText:SetText(L.alwaysDefault) AlwaysDefaultCheckBox = CreateFrame("CheckButton", "$parentAlwaysDefaultCheckButton", self, "InterfaceOptionsCheckButtonTemplate") AlwaysDefaultCheckBox:SetPoint("TOPLEFT", AlwaysDefaultText, "BOTTOMLEFT", 10, -8) AlwaysDefaultCheckBox.Text:SetText(ENABLE) AlwaysDefaultCheckBox:SetScript("OnClick", function(button) local checked = not not button:GetChecked() PlaySound(checked and SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON or SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF) cfg.openAlwaysToDefault = checked end) AlwaysDefaultCheckBox:SetChecked(cfg.openAlwaysToDefault) AlwaysDefaultHelpText = self:CreateFontString("$parentAlwaysDefault", "ARTWORK", "GameFontNormalSmall") AlwaysDefaultHelpText:SetPoint("TOPLEFT", AlwaysDefaultCheckBox, "BOTTOMLEFT", 0, -8) AlwaysDefaultHelpText:SetJustifyH("LEFT") AlwaysDefaultHelpText:SetText(L.alwaysDefaultHelp) MiniModeDefaultText = self:CreateFontString("$parentMiniModeDefault", "ARTWORK", "GameFontHighlight") MiniModeDefaultText:SetPoint("TOPLEFT", AlwaysDefaultHelpText, "BOTTOMLEFT", -10, -8) MiniModeDefaultText:SetJustifyH("LEFT") MiniModeDefaultText:SetText(L.miniModeDefault) MiniModeDefaultCheckBox = CreateFrame("CheckButton", "$parentMiniModeDefaultCheckButton", self, "InterfaceOptionsCheckButtonTemplate") MiniModeDefaultCheckBox:SetPoint("TOPLEFT", MiniModeDefaultText, "BOTTOMLEFT", 10, -8) MiniModeDefaultCheckBox.Text:SetText(MINIMIZE) MiniModeDefaultCheckBox:SetScript("OnClick", function(button) local checked = not not button:GetChecked() PlaySound(checked and SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON or SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF) --cfg.miniMode = checked C_CVar.SetCVar("miniCommunitiesFrame", checked and "1" or "0") -- CVars are strings, value 0/1 -- https://www.townlong-yak.com/framexml/8.2/Util.lua#1514 end) MiniModeDefaultCheckBox:SetChecked(C_CVar.GetCVar("miniCommunitiesFrame") == "1" and true or false) -- CVars are strings, value 0/1 -- https://www.townlong-yak.com/framexml/8.2/Util.lua#1521 MiniModeDefaultCheckBox:SetScript("OnShow", function(self) -- This can be changed outside of Options so we need it to be reactive self:SetChecked(C_CVar.GetCVar("miniCommunitiesFrame") == "1" and true or false) -- CVars are strings, value 0/1 -- https://www.townlong-yak.com/framexml/8.2/Util.lua#1521 end) MiniModeDefaultHelpText = self:CreateFontString("$parentMiniModeDefaultHelp", "ARTWORK", "GameFontNormalSmall") MiniModeDefaultHelpText:SetPoint("TOPLEFT", MiniModeDefaultCheckBox, "BOTTOMLEFT", 0, -8) MiniModeDefaultHelpText:SetWidth(571) MiniModeDefaultHelpText:SetJustifyH("LEFT") MiniModeDefaultHelpText:SetText(L.miniModeDefaultHelp) HighlightDropDownText = self:CreateFontString("$parentHighlightDropDownText", "ARTWORK", "GameFontHighlight") HighlightDropDownText:SetPoint("TOPLEFT", MiniModeDefaultHelpText, "BOTTOMLEFT", -10, -(8 * 2 + CWarningText:GetHeight())) -- Add extra pixels to make the space appear as big as others HighlightDropDownText:SetJustifyH("LEFT") HighlightDropDownText:SetText(L.highlightStyle) --HighlightDropDown = CreateFrame("Button", "$parentHighlightDropDown", self, "L_UIDropDownMenuTemplate") HighlightDropDown = LibDD:Create_UIDropDownMenu(self:GetName().."HighlightDropDown", self) -- https://www.curseforge.com/wow/addons/libuidropdownmenu/pages/faq/changes-regarding-to-dropdown-templates-usage LibDD:UIDropDownMenu_Initialize(HighlightDropDown, HighlightDropDown_Initialize) LibDD:UIDropDownMenu_SetSelectedValue(HighlightDropDown, cfg.highlightStyle) LibDD:UIDropDownMenu_JustifyText(HighlightDropDown, "CENTER") HighlightDropDown:SetPoint("TOPLEFT", HighlightDropDownText, "BOTTOMLEFT", 10, -12) HighlightTestTab = CreateFrame("Button", "$parentHighlightTestTab", self, "CharacterFrameTabButtonTemplate") HighlightTestTab:SetPoint("TOP", HighlightDropDown) HighlightTestTab:SetText(tabNames[1]) PanelTemplates_DeselectTab(HighlightTestTab) PanelTemplates_TabResize(HighlightTestTab, 0) HighlightTestTab:SetPoint("LEFT", floor(self:GetWidth()/2 - HighlightTestTab:GetWidth()/2), 0) local t = HighlightTestTab:CreateTexture("$parentHighlightGlow", "ARTWORK") t:SetPoint("TOPLEFT", 12, -2) t:SetPoint("BOTTOMRIGHT", -12, 7) t:SetBlendMode("ADD") HighlightTestTab.Glow = t _TestTabUpdate() HighlightDropDownHelpText = self:CreateFontString("$parentHighlightDropDownHelpText", "ARTWORK", "GameFontNormalSmall") HighlightDropDownHelpText:SetPoint("TOPLEFT", HighlightDropDown, "BOTTOMLEFT", 0, -8) HighlightDropDownHelpText:SetWidth(571) HighlightDropDownHelpText:SetJustifyH("LEFT") HighlightDropDownHelpText:SetText(L.highlightStyleHelp) self:SetScript("OnShow", nil) end) end -- Taint prevention for CommunitiesUI -- -- Replaced by TaintLess -- https://www.townlong-yak.com/addons/taintless
-------------------------------------------------------------------------------- -- pk-rocks-manifest.lua: PK rocks manifest -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) -------------------------------------------------------------------------------- local ROCKS = { { "rockspec/lua-nucleo-scm-1.rockspec"; generator = { "pk-lua-interpreter", "etc/rockspec/generate.lua", "scm-1", ">", "rockspec/lua-nucleo-scm-1.rockspec" }; }; } return { ROCKS = ROCKS; }
require 'factories.camera' require 'lib.eal.manager' local async = require 'lib.async' describe("test camera eal #ogre", function() local ninja = data:createEntity({ id = 'ninja', render = { resources = { Ninja = { "Zip;bundles/models/v1/packs/ninja.zip" } }, root = { position = Vector3.new(0, 0, 0), scale = Vector3.new(0.01, 0.01, 0.01), rotation = Quaternion.new(1, 0, 0.5, 0), orientationVector = Vector3.new(0, 0, -1), children = { { type = "model", query = "dynamic", name = "model", mesh = "ninja.mesh", castShadows = true } } } } }) it("should properly register eal for the orbit camera", function() local orbit = camera:create('orbit', 'orbit', {target=ninja.id, cameraOffset=Vector3.new(0, 4, 0), distance=20}) assert.is_not.is_nil(orbit.attach) local s = spy.on(orbit, "follow") -- attach camera and wait for update assert.truthy(orbit:attach()) assert.is_not.is_nil(orbit.renderTargetName) ninja:render().position = Vector3.new(0, 1, 0) assert.spy(s).was.called() -- detach, so update must be stopped orbit:detach() assert.is_nil(orbit.renderTargetName) ninja:render().position = Vector3.new(0, 0, 0) s = spy.on(orbit, "follow") assert.spy(s).was.not_called() -- verify proper removal game:reset() assert.is_nil(orbit.targetName) assert.is_nil(orbit.target) end) it("should properly register eal for the free camera", function() local free = camera:create('free', 'free') assert.falsy(free.attached) assert.truthy(free:attach()) assert.is_not.is_nil(free.renderTargetName) local s = spy.on(free, "update") async.waitSeconds(1) assert.spy(s).was.called() free:detach() s = spy.on(free, "update") async.waitSeconds(1) assert.is_nil(free.renderTargetName) assert.spy(s).was.not_called() end) it("should render to texture", function() local free = camera:create('free') free:renderToTexture("texture") end) it("should attach to and detach from renderTarget", function() local rtex = 'rtex test' local free1 = camera:create('free', 'free1') free1:renderToTexture(rtex) local free2 = camera:create('free', 'free2') free2:renderToTexture(rtex) game:reset() local free2 = camera:create('free', 'free2') free2:renderToTexture(rtex) end) end)
local Packages = script.Parent.Parent.Parent.Parent local TextService = game:GetService("TextService") local Roact = require(Packages.Roact) local t = require(Packages.t) local Cryo = require(Packages.Cryo) local RoactGamepad = require(Packages.RoactGamepad) local UIBloxConfig = require(Packages.UIBlox.UIBloxConfig) local withStyle = require(Packages.UIBlox.Core.Style.withStyle) local ImageSetComponent = require(Packages.UIBlox.Core.ImageSet.ImageSetComponent) local Controllable = require(Packages.UIBlox.Core.Control.Controllable) local ControlState = require(Packages.UIBlox.Core.Control.Enum.ControlState) local FitTextLabel = require(Packages.FitFrame).FitTextLabel local FitFrameHorizontal = require(Packages.FitFrame).FitFrameHorizontal -- TODO AVBURST-3748: Remove this soon after TextBoundsRoundUp is turned on to make the UIBlox places display -- the same way as the App local EngineFeatureTextBoundsRoundUp do local success, value = pcall(function() return game:GetEngineFeature("TextBoundsRoundUp") end) EngineFeatureTextBoundsRoundUp = success and value end local InputButton = Roact.PureComponent:extend("InputButton") local validateProps = t.strictInterface({ text = t.string, size = t.optional(t.UDim2), image = t.table, imageColor = t.Color3, fillImage = t.optional(t.table), fillImageSize = t.optional(t.UDim2), fillImageColor = t.optional(t.Color3), selectedColor = t.Color3, textColor = t.Color3, transparency = t.number, onActivated = t.callback, isDisabled = t.optional(t.boolean), layoutOrder = t.optional(t.number), frameRef = t.optional(t.table), SelectionImageObject = t.optional(t.table), }) InputButton.defaultProps = { layoutOrder = 0, isDisabled = false, } local SELECTION_BUTTON_SIZE = 26 local HORIZONTAL_PADDING = 8 function InputButton:init() self.state = { outerImage = self.props.image, outerTransparency = 1, outerImageColor = self.props.imageColor, innerImage = self.props.image, innerImageColor = self.props.fillImageColor, innerTransparency = 1, } self.changeSprite = function(buttonState) if buttonState == ControlState.Hover then if not self.props.isDisabled then self:setState({ outerImageColor = self.props.selectedColor }) end elseif buttonState == ControlState.Default then self:setState({ outerImageColor = self.props.imageColor }) end end if not self.props.size then --Initalize height to SELECTION_BUTTON_SIZE as the height can't be smaller than the button height self.sizeBinding, self.updateSizeBinding = Roact.createBinding(UDim2.new(1, 0, 0, SELECTION_BUTTON_SIZE)) self.textAbsoluteSizeChanged = function(rbx) local sizeY = SELECTION_BUTTON_SIZE if rbx.AbsoluteSize.Y > sizeY then sizeY = rbx.AbsoluteSize.Y end self.updateSizeBinding(UDim2.new(1, 0, 0, sizeY)) end end end function InputButton:render() assert(validateProps(self.props)) return withStyle(function(stylePalette) local font = stylePalette.Font local fontSize = font.Body.RelativeSize * font.BaseSize local textComponent local textComponentProps = { LayoutOrder = 2, BackgroundTransparency = 1, Text = self.props.text, TextXAlignment = Enum.TextXAlignment.Left, TextSize = fontSize, Font = font.Body.Font, TextWrapped = true, TextColor3 = self.props.textColor, TextTransparency = self.props.transparency, } local frameComponent = "Frame" local useAutomaticSizing = false if self.props.size then local size = self.props.size local frameSize = Vector2.new(size.X.Offset - SELECTION_BUTTON_SIZE - HORIZONTAL_PADDING, size.Y.Offset) local touchZoneWidth = TextService:GetTextSize(self.props.text, fontSize, font.Body.Font, frameSize).X if (not EngineFeatureTextBoundsRoundUp) and touchZoneWidth > 0 then -- GetTextSize documentation recommends to add a pixel of padding to the result to ensure no text is cut off -- Only add that extra padding if there is text to display touchZoneWidth = touchZoneWidth + 1 end textComponent = "TextButton" textComponentProps = Cryo.Dictionary.join(textComponentProps, { Size = UDim2.new(0, touchZoneWidth, 1, 0), [Roact.Event.Activated] = not self.props.isDisabled and self.props.onActivated or nil, }) else if UIBloxConfig.useUpdatedCheckbox then useAutomaticSizing = true frameComponent = FitFrameHorizontal end textComponent = FitTextLabel textComponentProps = Cryo.Dictionary.join(textComponentProps, { width = UIBloxConfig.useUpdatedCheckbox and FitTextLabel.Width.FitToText or UDim.new(1, -SELECTION_BUTTON_SIZE - HORIZONTAL_PADDING), onActivated = self.props.onActivated, [Roact.Change.AbsoluteSize] = self.textAbsoluteSizeChanged, }) end if UIBloxConfig.useUpdatedCheckbox then frameComponent = RoactGamepad.Focusable[frameComponent] end local fillImage = self.props.fillImage return Roact.createElement(frameComponent, { Size = not useAutomaticSizing and (self.props.size or self.sizeBinding) or nil, height = useAutomaticSizing and UDim.new(0, SELECTION_BUTTON_SIZE) or nil, BackgroundTransparency = 1, LayoutOrder = self.props.layoutOrder, [Roact.Ref] = UIBloxConfig.useUpdatedCheckbox and self.props.frameRef or nil, SelectionImageObject = UIBloxConfig.useUpdatedCheckbox and self.props.SelectionImageObject or nil, inputBindings = UIBloxConfig.useUpdatedCheckbox and { Activated = RoactGamepad.Input.onBegin(Enum.KeyCode.ButtonA, self.props.onActivated), } or nil, FillDirection = useAutomaticSizing and Enum.FillDirection.Horizontal or nil, VerticalAlignment = useAutomaticSizing and Enum.VerticalAlignment.Center or nil, contentPadding = useAutomaticSizing and UDim.new(0, HORIZONTAL_PADDING) or nil, }, { HorizontalLayout = not useAutomaticSizing and Roact.createElement("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder, FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, HORIZONTAL_PADDING), VerticalAlignment = Enum.VerticalAlignment.Center }) or nil, Padding = not useAutomaticSizing and Roact.createElement("UIPadding", { PaddingLeft = UDim.new(0, HORIZONTAL_PADDING), }) or nil, InputButtonImage = Roact.createElement(Controllable, { controlComponent = { component = ImageSetComponent.Button, props = { BackgroundTransparency = 1, Size = UDim2.new(0, SELECTION_BUTTON_SIZE, 0, SELECTION_BUTTON_SIZE), Image = self.props.image, ImageTransparency = self.props.transparency, ScaleType = self.props.buttonSliceType, SliceCenter = self.props.buttonSliceCenter, ImageColor3 = self.state.outerImageColor, [Roact.Event.Activated] = self.props.onActivated, LayoutOrder = 1, }, children = { InputFillImage = fillImage and Roact.createElement(ImageSetComponent.Label, { BackgroundTransparency = 1, Size = self.props.fillImageSize, Image = fillImage, ImageTransparency = self.props.transparency, ImageColor3 = self.props.fillImageColor, AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.5, 0), }) } }, isDisabled = self.props.isDisabled, onStateChanged = function(_, newState) self.changeSprite(newState) end, }), -- Only create this element if there is text to display InputButtonText = (self.props.text ~= "") and Roact.createElement(Controllable, { controlComponent = { component = textComponent, props = textComponentProps, }, isDisabled = self.props.isDisabled, onStateChanged = function(_, newState) self.changeSprite(newState) end, }) } ) end) end return Roact.forwardRef(function(props, ref) return Roact.createElement(InputButton, Cryo.Dictionary.join(props, { frameRef = ref })) end)
-- vim.cmd [[packadd telescope-fzy-native.nvim]] local map = require "settings.utils".map local finders = require "telescope.builtin" local actions = require "telescope.actions" local telescope = require "telescope" local sorters = require "telescope.sorters" local previewers = require "telescope.previewers" local transform_mod = require("telescope.actions.mt").transform_mod -- require("telescope").load_extension("fzy_native") require("telescope").load_extension("fzf") vim.fn.setenv("FZF_DEFAULT_COMMAND", "rg --files --hidden --glob '!.git/**'") telescope.setup { defaults = { -- prompt_position = "top", prompt_prefix = " ❯ ", file_ignore_patterns = {".git/*", "node_modules"}, shorten_path = true, color_devicons = true, winblend = 20, -- layout_config = {preview_width = 0.75}, -- preview_cutoff = 120, mappings = { i = { ["<esc>"] = actions.close, ["<C-q>"] = actions.send_to_qflist }, n = { ["<esc>"] = actions.close } }, -- file_sorter = sorters.get_fzy_sorter, file_previewer = previewers.vim_buffer_cat.new, grep_previewer = previewers.vim_buffer_vimgrep.new, qflist_previewer = previewers.vim_buffer_qflist.new }, extensions = { fzf = { override_generic_sorter = true, -- override the generic sorter override_file_sorter = true, -- override the file sorter case_mode = "smart_case" -- "smart_case" | "ignore_case" | "respect_case" } -- fzy_native = { -- override_generic_sorter = false, -- override_file_sorter = true -- } } } function TelescopeOpen(fn) require "settings.utils".move_cursor_from_tree() finders[fn](require("telescope.themes").get_dropdown({previewer = false})) end function TelescopeOpenPrewiev(fn) require "settings.utils".move_cursor_from_tree() finders[fn](require("telescope.themes").get_dropdown({})) end map("n", "<leader>ff", "<CMD>lua TelescopeOpenPrewiev('find_files')<CR>") -- map("n", "<C-p>", "<CMD>lua TelescopeOpenPrewiev('git_files')<CR>") -- map("n", "<C-w>", "<CMD>lua TelescopeOpenPrewiev('oldfiles')<CR>") map("n", "<leader>fb", "<CMD>lua TelescopeOpen('buffers')<CR>") map("n", "<leader>fh", "<CMD>lua TelescopeOpen('help_tags')<CR>") map("n", "<leader>bt", "<CMD>lua TelescopeOpenPrewiev('current_buffer_tags')<CR>") map("n", "<leader>cc", "<CMD>lua TelescopeOpen('commands')<CR>") map("n", "<leader>cb", "<CMD>lua TelescopeOpen('builtin')<CR>") map("n", "<leader>sw", "<CMD>lua require('telescope.builtin').grep_string { search = vim.fn.expand('<cword>')}<CR>") map("n", "<leader>st", "<CMD>lua require('telescope.builtin').grep_string({ search = vim.fn.input('Grep For > ')})<CR>") -- map("n", "<leader>sw", "<CMD>lua TelescopeOpenPrewiev('grep_string')<CR>") map("n", "<leader>fg", "<CMD>lua TelescopeOpenPrewiev('live_grep')<CR>") map("n", "<leader>cr", "<CMD>lua TelescopeOpenPrewiev('lsp_references')<CR>") map("n", "<leader>cs", "<CMD>lua TelescopeOpenPrewiev('symbols')<CR>") map("n", "<leader>cg", "<CMD>lua TelescopeOpenPrewiev('git_status')<CR>") map("n", "<leader>gb", "<CMD>lua TelescopeOpenPrewiev('git_branches')<CR>") map("n", "<leader>csd", "<CMD>lua TelescopeOpenPrewiev('lsp_document_symbols')<CR>") map("n", "<leader>csw", "<CMD>lua TelescopeOpenPrewiev('lsp_workspace_symbols')<CR>") map("n", "<leader>ca", "<CMD>lua TelescopeOpenPrewiev('lsp_code_actions')<CR>") map("n", "<leader>cw", "<CMD>lua TelescopeOpenPrewiev('spell_suggest')<CR>") map("n", "<leader>cm", "<CMD>lua TelescopeOpenPrewiev('keymaps')<CR>") map("n", "<leader>cl", "<CMD>lua TelescopeOpenPrewiev('reloader')<CR>") map("n", "<leader>cv", "<CMD>lua TelescopeOpenPrewiev('vim_options')<CR>") -- map("n", "<leader>", "<CMD>lua TelescopeOpenPrewiev('')<CR>") function _G.fzf_omni() if vim.fn.isdirectory(".git") == 1 then return "git_files" else return "find_files" end end -- map("n", "<C-f>", ":lua TelescopeOpenPrewiev(fzf_omni())<CR>") function _G.show_diagnostic(opts) opts = opts or {} vim.lsp.diagnostic.set_loclist({open_loclis = false}) require "settings.utils".move_cursor_from_tree() finders.loclist(require("telescope.themes").get_dropdown({})) end map("n", "<leader>d", "<cmd>lua show_diagnostic()<CR>", {})
Predicter = {}; function Predicter.predictAge(...) sum = 0 for _,age in ipairs({...}) do sum = sum + age*age end return math.sqrt(sum)//2 end
-- Optimize FS -- doFile( file{lc,lua} ) local doFile = function(f) -- check file present if file.open(f..'.lua') then file.close() dofile(f..'.lua') elseif file.open(f..'.lc') then file.close() dofile(f..'.lc') else print('file:'..f..' not present') end end return doFile
return { source = { location = 'git@bitbucket.org:bazurbat/hi-utils.git' }, build = { type = 'cmake' }, requires = { 'cmake-modules', 'glib', 'hi-sdk', }, uses = 'hi-sdk' }
---@diagnostic disable:unused-local local str1 = strtrim(" hello world ") local str2 = format("%s %d", "greedisgood", 999) local num1 = bit.bor(0x1, 0x2) hooksecurefunc("test", function() end) -- api C_AccountInfo.GetIDFromBattleNetAccountGUID() C_CVar.GetCVar("autoClearAFK") -- widgets local f = CreateFrame("Frame") local checkbtn = CreateFrame("CheckButton") local dressup = CreateFrame("DressUpModel") local tooltip = CreateFrame("GameTooltip") local group = f:CreateAnimationGroup() local anim1 = group:CreateAnimation() local anim2 = group:CreateAnimation("Animation") local alpha = f:CreateAnimationGroup():CreateAnimation("Alpha") local tex = f:CreateTexture() local fs = f:CreateFontString() f:RegisterEvent("ACHIEVEMENT_EARNED") -- frames local isVisible = UIParent:IsVisible() local text = GameTooltip.ItemTooltip.Tooltip.TextLeft1
--ZFUNC-func1a-v1 local function func1a() return "a" end return func1a
local dns = require('dns'); local fse = require('fs-extra'); local function printUsage() print('Usage:') print('\t\t dns help - print this message') print('\t\t dns register [name] - try to register with the current hostname if name arg is not provided') print('\t\t dns unregister - try to unregister') print('') print('type `man dns` for more details') end local function getHostname() local hostname, err = fse.readFile('/etc/hostname'); if err or isEmpty(hostname) then return nil; end return hostname; end local function register(name) if isEmpty(name) then name = getHostname(); end if isEmpty(name) then error('> no hostname found!'); end local ok, err = dns.register(name); if ok then print(name .. ' registered!') else error('> ' .. err); end end local function unregister() local ok, err = dns.unregister(); if ok then print('unregistered!') else error('> ' .. err); end end -- Program start here local cmd, arg = ...; if cmd == 'register' then register(arg); elseif cmd == 'unregister' then unregister() else printUsage(); end
-- DEPRECATED: This story is provided for backwards compatibility with horsecat and will be removed. -- Please only make changes to `src\Stories\Private\App\Container\FreeFlowCarousel.story.lua` local ReplicatedStorage = game:GetService("ReplicatedStorage") local StoryView = require(ReplicatedStorage.Packages.StoryComponents.StoryView) local StoryItem = require(ReplicatedStorage.Packages.StoryComponents.StoryItem) local Carousel = script.Parent.Parent local Container = Carousel.Parent local App = Container.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local FreeFlowCarousel = require(Carousel.FreeFlowCarousel) return function(target) local items = {} for i = 1, 10 do table.insert(items, { Text = i, Size = UDim2.fromOffset(100, 100), }) end local renderItem = function(props) return Roact.createElement("TextLabel", props) end local loadNext = function() for i = 1, 10 do table.insert(items, { Text = i, Size = UDim2.fromOffset(100, 100), }) end end local element = Roact.createElement(StoryItem, { size = UDim2.fromScale(1, 1), title = "Carousel", subTitle = "App.Container.Carousel.FreeFlowCarousel", }, { Roact.createElement(FreeFlowCarousel, { identifier = function(item) return tostring(item) end, headerText = "test header", onSeeAll = function()end, itemList = items, renderItem = renderItem, itemSize = Vector2.new(100, 100), itemPadding = 12, carouselMargin = 36, layoutOrder = 1, loadNext = loadNext, }) }) local handle = Roact.mount(Roact.createElement(StoryView, {}, { Story = element }), target, "Carousel") return function() Roact.unmount(handle) end end
object_tangible_loot_generic_usable_shared_bacta_ampules_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_bacta_ampules_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_bacta_ampules_generic, "object/tangible/loot/generic_usable/shared_bacta_ampules_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_bacta_tank = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_bacta_tank.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_bacta_tank, "object/tangible/loot/generic_usable/shared_bacta_tank.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_binoculars_s1_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_binoculars_s1_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_binoculars_s1_generic, "object/tangible/loot/generic_usable/shared_binoculars_s1_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_binoculars_s2_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_binoculars_s2_generic, "object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_bottle_liquid_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_bottle_liquid_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_bottle_liquid_generic, "object/tangible/loot/generic_usable/shared_bottle_liquid_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_building_repair_device_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_building_repair_device_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_building_repair_device_generic, "object/tangible/loot/generic_usable/shared_building_repair_device_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_building_repair_device_generic_lt_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_building_repair_device_generic_lt_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_building_repair_device_generic_lt_4, "object/tangible/loot/generic_usable/shared_building_repair_device_generic_lt_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_building_repair_device_generic_st_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_building_repair_device_generic_st_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_building_repair_device_generic_st_4, "object/tangible/loot/generic_usable/shared_building_repair_device_generic_st_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_chassis_blueprint_usuable = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_chassis_blueprint_usuable.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_chassis_blueprint_usuable, "object/tangible/loot/generic_usable/shared_chassis_blueprint_usuable.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_chem_dispersion_device_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_chem_dispersion_device_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_chem_dispersion_device_generic, "object/tangible/loot/generic_usable/shared_chem_dispersion_device_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_copper_battery_usuable = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_copper_battery_usuable.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_copper_battery_usuable, "object/tangible/loot/generic_usable/shared_copper_battery_usuable.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_crystal_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_crystal_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_crystal_generic, "object/tangible/loot/generic_usable/shared_crystal_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_datadisk_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_datadisk_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_datadisk_generic, "object/tangible/loot/generic_usable/shared_datadisk_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_disease_grenade_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_disease_grenade_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_disease_grenade_generic, "object/tangible/loot/generic_usable/shared_disease_grenade_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_elect_power_unit_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_elect_power_unit_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_elect_power_unit_generic, "object/tangible/loot/generic_usable/shared_elect_power_unit_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_frag_grenade = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_frag_grenade.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_frag_grenade, "object/tangible/loot/generic_usable/shared_frag_grenade.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_frequency_jammer_wire_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_frequency_jammer_wire_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_frequency_jammer_wire_generic, "object/tangible/loot/generic_usable/shared_frequency_jammer_wire_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_generator_device_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_generator_device_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_generator_device_generic, "object/tangible/loot/generic_usable/shared_generator_device_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_generator_device_generic_lt_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_generator_device_generic_lt_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_generator_device_generic_lt_4, "object/tangible/loot/generic_usable/shared_generator_device_generic_lt_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_generic_crystal = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_generic_crystal.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_generic_crystal, "object/tangible/loot/generic_usable/shared_generic_crystal.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_generic_storage_increase = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_generic_storage_increase.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_generic_storage_increase, "object/tangible/loot/generic_usable/shared_generic_storage_increase.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_handheld_viewscreen_2_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_handheld_viewscreen_2_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_handheld_viewscreen_2_generic, "object/tangible/loot/generic_usable/shared_handheld_viewscreen_2_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_impulse_detector_01_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_impulse_detector_01_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_impulse_detector_01_generic, "object/tangible/loot/generic_usable/shared_impulse_detector_01_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_jedi_relic_01_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_jedi_relic_01_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_jedi_relic_01_generic, "object/tangible/loot/generic_usable/shared_jedi_relic_01_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_large_dispersal_unit_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_large_dispersal_unit_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_large_dispersal_unit_generic, "object/tangible/loot/generic_usable/shared_large_dispersal_unit_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_large_dispersal_unit_generic_lt_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_large_dispersal_unit_generic_lt_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_large_dispersal_unit_generic_lt_4, "object/tangible/loot/generic_usable/shared_large_dispersal_unit_generic_lt_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_medic_powder_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_medic_powder_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_medic_powder_generic, "object/tangible/loot/generic_usable/shared_medic_powder_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_motivator_device_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_motivator_device_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_motivator_device_generic, "object/tangible/loot/generic_usable/shared_motivator_device_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_poison_grenade_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_poison_grenade_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_poison_grenade_generic, "object/tangible/loot/generic_usable/shared_poison_grenade_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_power_output_analyzer_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_power_output_analyzer_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_power_output_analyzer_generic, "object/tangible/loot/generic_usable/shared_power_output_analyzer_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_ration_kit_device_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_ration_kit_device_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_ration_kit_device_generic, "object/tangible/loot/generic_usable/shared_ration_kit_device_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_rebreather_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_rebreather_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_rebreather_generic, "object/tangible/loot/generic_usable/shared_rebreather_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_rocket_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_rocket_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_rocket_generic, "object/tangible/loot/generic_usable/shared_rocket_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_scope_weapon_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_scope_weapon_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_scope_weapon_generic, "object/tangible/loot/generic_usable/shared_scope_weapon_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_scroll_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_scroll_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_scroll_generic, "object/tangible/loot/generic_usable/shared_scroll_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_selonian_psg = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_selonian_psg.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_selonian_psg, "object/tangible/loot/generic_usable/shared_selonian_psg.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_slave_collar_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_slave_collar_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_slave_collar_generic, "object/tangible/loot/generic_usable/shared_slave_collar_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_software_module_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_software_module_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_software_module_generic, "object/tangible/loot/generic_usable/shared_software_module_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_speaker_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_speaker_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_speaker_generic, "object/tangible/loot/generic_usable/shared_speaker_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_sphere_grenade_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_sphere_grenade_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_sphere_grenade_generic, "object/tangible/loot/generic_usable/shared_sphere_grenade_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_spray_bottle_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_spray_bottle_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_spray_bottle_generic, "object/tangible/loot/generic_usable/shared_spray_bottle_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_spray_unit_small_01_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_spray_unit_small_01_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_spray_unit_small_01_generic, "object/tangible/loot/generic_usable/shared_spray_unit_small_01_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_spray_unit_small_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_spray_unit_small_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_spray_unit_small_generic, "object/tangible/loot/generic_usable/shared_spray_unit_small_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_stim_a_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_stim_a_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_stim_a_generic, "object/tangible/loot/generic_usable/shared_stim_a_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_stim_a_generic_lt_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_stim_a_generic_lt_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_stim_a_generic_lt_4, "object/tangible/loot/generic_usable/shared_stim_a_generic_lt_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_stim_a_generic_st_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_stim_a_generic_st_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_stim_a_generic_st_4, "object/tangible/loot/generic_usable/shared_stim_a_generic_st_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_stim_medium_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_stim_medium_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_stim_medium_generic, "object/tangible/loot/generic_usable/shared_stim_medium_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_stim_syringe_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_stim_syringe_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_stim_syringe_generic, "object/tangible/loot/generic_usable/shared_stim_syringe_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_stim_syringe_generic_lt_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_stim_syringe_generic_lt_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_stim_syringe_generic_lt_4, "object/tangible/loot/generic_usable/shared_stim_syringe_generic_lt_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_supplement_liquid = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_supplement_liquid.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_supplement_liquid, "object/tangible/loot/generic_usable/shared_supplement_liquid.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_supplement_solid_pills = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_supplement_solid_pills.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_supplement_solid_pills, "object/tangible/loot/generic_usable/shared_supplement_solid_pills.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_survey_pad_adv_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_survey_pad_adv_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_survey_pad_adv_generic, "object/tangible/loot/generic_usable/shared_survey_pad_adv_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_survey_pad_adv_generic_lt_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_survey_pad_adv_generic_lt_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_survey_pad_adv_generic_lt_4, "object/tangible/loot/generic_usable/shared_survey_pad_adv_generic_lt_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_survey_pad_adv_generic_st_4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_survey_pad_adv_generic_st_4.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_survey_pad_adv_generic_st_4, "object/tangible/loot/generic_usable/shared_survey_pad_adv_generic_st_4.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_tool_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_tool_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_tool_generic, "object/tangible/loot/generic_usable/shared_tool_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_tubed_device_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_tubed_device_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_tubed_device_generic, "object/tangible/loot/generic_usable/shared_tubed_device_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_tube_paste_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_tube_paste_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_tube_paste_generic, "object/tangible/loot/generic_usable/shared_tube_paste_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_generic_usable_shared_worklight_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/generic_usable/shared_worklight_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_generic_usable_shared_worklight_generic, "object/tangible/loot/generic_usable/shared_worklight_generic.iff") ------------------------------------------------------------------------------------------------------------------------------------
require "lib.classes.class" local LinearMoveAnimation = require("Battle.view.animations.animations.LinearMoveAnimation") -------------------------------------------------------------------------------------------------------- -- class: LinearReturnMoveAnimation -- param: end_x:num -> The end x position of the entity at the end of the animation -- param: end_y:num -> The end y position of the entity at the end of the animation -- param: time:num -> The amount of time the animation is going to take -- An animation where the entity moves from its current position to its default position local LinearReturnMoveAnimation = extend(LinearMoveAnimation, function(self, time) end, function (time) return LinearMoveAnimation.new(0,0,time) end) -- reset: None -> None -- resets the variables of the animation function LinearReturnMoveAnimation.reset(self) LinearMoveAnimation.reset(self) self:setEndX(self.entity_view:getDefaultX()) self:setEndY(self.entity_view:getDefaultY()) end return LinearReturnMoveAnimation
return {'gtje','gtjes'}
local table = require("__flib__.table") --- An easy-to-use dictionary system for storing localised string translations. local flib_dictionary = {} local inner_separator = "⤬" local separator = "⤬⤬⤬" local max_depth = settings.global["flib-dictionary-levels-per-batch"].value local translation_timeout = 180 -- Depending on the value of `use_local_storage`, this will be tied to `global` or will be re-generated during `on_load` local raw = {} local use_local_storage = false local function key_value(key, value) return key .. inner_separator .. value .. separator end --- @class RawDictionary local RawDictionary = {} --- Add a new translation to this dictionary. --- --- This method **must not** be called after control stage initialization and migration. Doing so will result in --- different languages having different sets of data. --- @param internal string An unique, language-agnostic identifier for this translation. --- @param translation LocalisedString function RawDictionary:add(internal, translation) local to_add = { "", internal, inner_separator, translation, separator } local ref = self.ref local i = self.i + 1 if i < 20 then ref[i] = to_add self.i = i else local r_i = self.r_i + 1 if r_i <= max_depth then local new_level = { "", to_add } ref[i] = new_level self.ref = new_level self.i = 2 self.r_i = r_i else local s_i = self.s_i + 1 self.s_i = s_i local new_set = { "", to_add } self.ref = new_set self.strings[s_i] = new_set self.i = 2 self.r_i = 1 end end end --- Create a new `RawDictionary`. --- --- If `keep_untranslated` is `true`, translations that failed (begin with `Unknown key: `) will be added to the dictionary with their internal name as their translated name. --- @param name string --- @param keep_untranslated boolean --- @param initial_contents? table<string, LocalisedString> --- @return RawDictionary function flib_dictionary.new(name, keep_untranslated, initial_contents) if raw[name] then error("Dictionary with the name `" .. name .. "` already exists.") end local initial_string = { "" } --- @type RawDictionary local self = { -- Indices i = 1, r_i = 1, s_i = 1, -- Internal ref = initial_string, strings = { initial_string }, -- Meta name = name, } setmetatable(self, { __index = RawDictionary }) for key, value in pairs(initial_contents or {}) do self:add(key, value) end raw[name] = { strings = self.strings, keep_untranslated = keep_untranslated } return self end --- Initialize the module's script data table. --- --- Must be called at the **beginning** of `on_init` for initial setup, and at the **beginning** of --- `on_configuration_changed` to reset all ongoing translations. function flib_dictionary.init() if not global.__flib then global.__flib = {} end global.__flib.dictionary = { in_process = {}, players = {}, raw = {}, translated = {}, } if use_local_storage then raw = {} else raw = global.__flib.dictionary.raw end end --- Set up the module's local references. --- --- Must be called at the **beginning** of `on_load`. --- --- If using `dictionary.set_use_local_storage`, your dictionaries must be re-generated **after** this function is --- called. function flib_dictionary.load() if not use_local_storage and global.__flib and global.__flib.dictionary then raw = global.__flib.dictionary.raw end end --- Request all dictionaries for the given player. --- --- The dictionary system stores dictionaries by language, not by player. Thus, if this player's language has already --- been translated, the module will simply return the already existing dictionaries instead of translating them again. --- --- If you wish to re-translate dictionaries, call `dictionary.init` and call this function for all online players. --- --- The player must be connected to the game in order to call this function. Calling this function on a disconnected --- player will throw an error. --- @param player LuaPlayer function flib_dictionary.translate(player) if not player.connected then error("Player must be connected to the game before this function can be called!") end local player_data = global.__flib.dictionary.players[player.index] if player_data then return end global.__flib.dictionary.players[player.index] = { player = player, status = "get_language", requested_tick = game.tick, } player.request_translation({ "", "FLIB_LOCALE_IDENTIFIER", separator, { "locale-identifier" } }) end local function request_translation(player_data) local string = raw[player_data.dictionary].strings[player_data.i] -- We use `while` instead of `if` here just in case a dictionary doesn't have any strings in it while not string do local next_dictionary = next(raw, player_data.dictionary) if next_dictionary then -- Set the next dictionary and reset index player_data.dictionary = next_dictionary player_data.i = 1 string = raw[next_dictionary].strings[1] else -- We're done! player_data.status = "finished" return end end player_data.player.request_translation({ "", key_value("FLIB_DICTIONARY_MOD", script.mod_name), key_value("FLIB_DICTIONARY_NAME", player_data.dictionary), key_value("FLIB_DICTIONARY_LANGUAGE", player_data.language), key_value("FLIB_DICTIONARY_STRING_INDEX", player_data.i), string, }) player_data.requested_tick = game.tick end --- Check for a skipped translation and re-request it after three seconds. --- --- Must be called **during** `on_tick`. --- --- This is to handle a very specific edge-case where translations that are requested on the same tick that a game is --- saved will not be returned when that save is loaded. function flib_dictionary.check_skipped() local script_data = global.__flib.dictionary local tick = game.tick for _, player_data in pairs(script_data.players) do -- If it's been longer than the timeout, request the string again -- This is to solve a very rare edge case where translations requested on the same tick that a singleplayer game -- is saved will not be returned when that save is loaded if (player_data.requested_tick or 0) + translation_timeout <= tick then if player_data.status == "get_language" then player_data.player.request_translation({ "", "FLIB_LOCALE_IDENTIFIER", separator, { "locale-identifier" } }) end if player_data.status == "translating" then request_translation(player_data) end end end end --- Escape match special characters local function match_literal(s) return string.gsub(s, "%-", "%%-") end local dictionary_match_string = key_value("^FLIB_DICTIONARY_MOD", match_literal(script.mod_name)) .. key_value("FLIB_DICTIONARY_NAME", "(.-)") .. key_value("FLIB_DICTIONARY_LANGUAGE", "(.-)") .. key_value("FLIB_DICTIONARY_STRING_INDEX", "(%d-)") .. "(.*)$" --- Process a returned translation batch, then request the next batch or return the finished dictionaries. --- --- Must be called **during** `on_string_translated`. --- @param event_data on_string_translated --- @return TranslationFinishedOutput? function flib_dictionary.process_translation(event_data) if not event_data.translated then return end local script_data = global.__flib.dictionary if string.find(event_data.result, "FLIB_DICTIONARY_NAME") then local _, _, dict_name, dict_lang, string_index, translation = string.find( event_data.result, dictionary_match_string ) if dict_name and dict_lang and string_index and translation then local language_data = script_data.in_process[dict_lang] -- In some cases, this can fire before on_configuration_changed if not language_data then return end local dictionary = language_data.dictionaries[dict_name] if not dictionary then return end local dict_data = raw[dict_name] local player_data = script_data.players[event_data.player_index] -- If this number does not match, this is a duplicate, so ignore it if tonumber(string_index) == player_data.i then -- Extract current string's translations for str in string.gmatch(translation, "(.-)" .. separator) do local _, _, key, value = string.find(str, "^(.-)" .. inner_separator .. "(.-)$") if key then -- If `keep_untranslated` is true, then use the key as the value if it failed local failed = string.find(value, "Unknown key:") if failed and dict_data.keep_untranslated then value = key elseif failed then value = nil end if value then dictionary[key] = value end end end -- Request next translation player_data.i = player_data.i + 1 request_translation(player_data) if player_data.status == "finished" then -- We're done! script_data.translated[dict_lang] = language_data.dictionaries script_data.in_process[dict_lang] = nil for _, player_index in pairs(language_data.players) do script_data.players[player_index] = nil end return { dictionaries = language_data.dictionaries, language = dict_lang, players = language_data.players } end end end elseif string.find(event_data.result, "^FLIB_LOCALE_IDENTIFIER") then local _, _, language = string.find(event_data.result, "^FLIB_LOCALE_IDENTIFIER" .. separator .. "(.*)$") if language then local player_data = script_data.players[event_data.player_index] -- Handle a duplicate if not player_data or player_data.status == "translating" then return end player_data.language = language -- Check if this language is already translated or being translated local dictionaries = script_data.translated[language] if dictionaries then script_data.players[event_data.player_index] = nil return { dictionaries = dictionaries, language = language, players = { event_data.player_index } } end local in_process = script_data.in_process[language] if in_process then table.insert(in_process.players, event_data.player_index) player_data.status = "waiting" return end -- Set up player data for translating player_data.status = "translating" player_data.dictionary = next(raw) player_data.i = 1 -- Add language to in process data script_data.in_process[language] = { dictionaries = table.map(raw, function(_) return {} end), players = { event_data.player_index }, } -- Start translating request_translation(player_data) end end end --- Cancel the translation of the player's dictionaries if they are the currently translating player. --- --- If multiple players are waiting on these dictionaries, the translation duties will be handed off to the next player --- in the list. --- --- Must be called **during** `on_player_left_game`. --- @param player_index number function flib_dictionary.cancel_translation(player_index) local script_data = global.__flib.dictionary local player_data = script_data.players[player_index] if player_data then if player_data.status == "translating" then local in_process = script_data.in_process[player_data.language] if not in_process then error("Dafuq?") end if #in_process.players > 1 then -- Copy progress to another player with the same language local first_player = in_process.players[1] local first_player_data = script_data.players[first_player] first_player_data.status = "translating" first_player_data.dictionary = player_data.dictionary first_player_data.i = player_data.i -- Resume translating with the new player request_translation(first_player_data) else -- Completely cancel the translation script_data.in_process[player_data.language] = nil end elseif player_data.status == "waiting" then local in_process = script_data.in_process[player_data.language] -- Remove this player from the players table for i, pi in pairs(in_process.players) do if pi == player_index then table.remove(in_process.players, i) break end end end -- Delete this player's data script_data.players[player_index] = nil end end --- Set whether or not the module is using local storage mode. --- --- Must be called in the **root scope** of your mod if you wish to use local storage. --- --- Using local storage is a technique to reduce the amount of script data that the module saves in the `global` table. --- If you enable this, you **must** re-build all of your dictionaries **during** `on_load`, but **after** calling --- `dictionary.load`. Failure to do so will result in a desync. --- --- **Only use this function if you understood the above explanation and if you are familiar with how desyncs can occur.** --- --- # Examples --- --- ```lua --- local dictionary = require("__flib__.dictionary") --- dictionary.set_use_local_storage(true) --- ``` --- @param value boolean function flib_dictionary.set_use_local_storage(value) use_local_storage = value end --- A "raw" dictionary containing the actual `LocalisedString`s for translation. --- --- This object **must not** be stored in the `global` table. Doing so will result in a desync if the game is saved and --- loaded and you attempt to call methods on it. --- --- # Examples --- --- ```lua --- local MyDictionary = dictionary.new("my_dictionary") --- MyDictionary:add("iron-ore", {"item-name.iron-ore"}) --- ``` --- @class RawDictionary --- The results of a translated language. --- @class TranslationFinishedOutput --- @field language string The language that was translated. --- @field dictionaries table<string, table<string, string>> The resulting dictionaries. --- @field players number[] The players who were waiting for this language to complete translation. return flib_dictionary
local enabled = themeConfig:get_data().global.SongBGEnabled local brightness = 0.3 local t = Def.ActorFrame {} -- bg if enabled then t[#t + 1] = Def.Sprite { Name = "BGSprite", InitCommand = function(self) self:diffusealpha(0) end, CurrentSongChangedMessageCommand = function(self) self:stoptweening():smooth(0.5):diffusealpha(0) self:sleep(0.2):queuecommand("ModifySongBackground") end, ModifySongBackgroundCommand = function(self) if GAMESTATE:GetCurrentSong() and GAMESTATE:GetCurrentSong():GetBackgroundPath() then self:finishtweening() self:visible(true) self:LoadBackground(GAMESTATE:GetCurrentSong():GetBackgroundPath()) self:scaletocover(0, 0, SCREEN_WIDTH, SCREEN_BOTTOM) self:sleep(0.05) self:smooth(0.4):diffusealpha(brightness) else self:visible(false) end end, OffCommand = function(self) self:smooth(0.6):diffusealpha(0) end, } end --black dim behind songwheel text t[#t + 1] = Def.Quad { InitCommand = function(self) self:xy(SCREEN_WIDTH, 0):halign(1):valign(0):zoomto(capWideScale(get43size(350), 350), SCREEN_HEIGHT) self:diffuse(0.1,0.1,0.1,0.4) end } --vertical bar left of songwheel t[#t + 1] = Def.Quad { InitCommand = function(self) self:xy(SCREEN_WIDTH - capWideScale(get43size(350), 350), 0):halign(0):valign(0):zoomto(4, SCREEN_HEIGHT) self:diffuse(getMainColor("highlight")):diffusealpha(0.5) end } t[#t+1] = UIElements.QuadButton(-1000, 1) .. {-- a fullscreen button for right click pausing so your right clicks dont pause accidentally InitCommand = function(self) self:valign(0):halign(0) self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT) self:diffusealpha(0) end, MouseDownCommand = function(self, params) if params.event == "DeviceButton_right mouse button" then SCREENMAN:GetTopScreen():PauseSampleMusic() MESSAGEMAN:Broadcast("MusicPauseToggled") end end } return t
--[[Author: Aysegul Dundar (adundar@purdue.edu) -- This file converts Linear layers in the network to ConvolutionMM -- so in the demo, you can step in the image. -- Please update the input size based on your network. -- ]] require 'nnx' if not arg[1] then print "Network unspecified (type it after the program's name)" return else print('Loading: ' .. arg[1]) end local network = torch.load(arg[1]):float() local input = torch.Tensor(3, 149, 149):float() torch.setdefaulttensortype('torch.FloatTensor') local new_network = nn.Sequential() function convert(network) for i=1, #network.modules do if network.modules[i].__typename == 'nn.Sequential' then convert(network.modules[i]) else if network.modules[i].__typename == 'nn.Reshape' then -- do nothing elseif network.modules[i].__typename == 'nn.Linear' then if (#input:size() == 3) then tmp_module = nn.SpatialConvolutionMM(input:size(1), network.modules[i].weight:size(1), input:size(2), input:size(3)) else tmp_module = nn.SpatialConvolutionMM(network.modules[i].weight[1], network.modules[i].weight[2], 1, 1) end tmp_module.weight:copy(network.modules[i].weight):resize(tmp_module.weight:size()) tmp_module.bias:copy(network.modules[i].bias) new_network:add(tmp_module) input = tmp_module:forward(input) elseif network.modules[i].__typename == 'nn.Dropout' then -- turn of the training network.modules[i].train = false new_network:add(network.modules[i]) else new_network:add(network.modules[i]) input = network.modules[i]:forward(input) end end end end convert(network) torch.save('new_network.net', new_network)
----------------------------------- -- Area: Mhaura -- NPC: Tya Padolih -- Standard Merchant NPC -- !pos -48 -4 30 249 ----------------------------------- local ID = require("scripts/zones/Mhaura/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = { 4716, 4147, -- Scroll of Regen 4718, 7516, -- Scroll of Regen II 4881, 10752, -- Scroll of Sleepga 4690, 29030, -- Scroll of Baramnesia 4691, 29030, -- Scroll of Baramnesra 4744, 5523, -- Scroll of Invisible 4745, 2400, -- Scroll of Sneak 4746, 1243, -- Scroll of Deodorize 4912, 18032, -- Scroll of Distract 4914, 25038, -- Scroll of Frazzle } player:showText(npc, ID.text.TYAPADOLIH_SHOP_DIALOG) tpz.shop.general(player, stock) end function onEventUpdate(player,csid,option) end function onEventFinish(player,csid,option) end
if not nil then else error() end if not false then else error() end if not {} then error() end if not 0 then error() end if not '' then error() end
module 'mock' -------------------------------------------------------------------- CLASS: ScenePortal ( Component ) :MODEL{ Field 'name' :string(); Field 'comment' :string(); -- '----'; -- Field 'locateConnectedPortal' :action() :label( 'goto connected portal'); } mock.registerComponent( 'ScenePortal', ScenePortal ) function ScenePortal:__init() self.name = '' self.comment = '' end function ScenePortal:getScenePortalManager() local scn = self:getScene() return scn and scn:getManager( 'ScenePortalManager' ) end function ScenePortal:onAttach( ent ) local manager = self:getScenePortalManager() if not manager then return end manager:registerPortal( self ) end function ScenePortal:onDetach( ent ) local manager = self:getScenePortalManager() if not manager then return end manager:unregisterPortal( self ) end function ScenePortal:_enter( session ) self:tell( 'scene_portal.enter', session ) return self:onEnter( session ) end function ScenePortal:_exit( session ) self:tell( 'scene_portal.exit', session ) return self:onExit( session ) end function ScenePortal:onEnter( session ) end function ScenePortal:onExit( session ) end function ScenePortal:exportData() local ent = self:getEntity() local data = { id = self:getFullname(), name = self.name, guid = ent.__guid, -- loc = { ent:getLoc() }, entityName = ent:getName(), comment = self.comment } return data end function ScenePortal:isLocalPortal( targetId ) --same scene local manager = self:getScenePortalManager() if manager:findPortalInCurrentScene( targetId ) then return true else return false end end function ScenePortal:goto( targetId ) local manager = self:getScenePortalManager() local fullname = self:getFullname() manager:startPorting( fullname, targetId ) end function ScenePortal:gotoConnectedPortal() local targetId = self:findConnectedPortal() if not targetId then _warn( 'no connected portal found:', self:getFullname() ) return false end return self:goto( targetId ) end function ScenePortal:findConnectedPortal() local registry = getScenePortalRegistry() local fullname = self:getFullname() return registry:findConnectedPortal( self:getFullname() ) end function ScenePortal:getFullname() local manager = self:getScenePortalManager() local fullId = self.name local namespace = manager.portalNameSpace if namespace and namespace ~= '' then fullId = namespace .. '.' .. fullId end return fullId end function ScenePortal:getPortalInfo() local registry = getScenePortalRegistry() return registry:getPortalInfo( self:getFullname() ) end -- function ScenePortal:locateConnectedPortal() -- local targetId = self:findConnectedPortal() -- local manager = gii.getModule( 'scene_portal_manager' ) -- if manager then -- manager:locatePortal( targetId, true ) -- end -- end
function SpawnPoints() return { constructionworker = { { worldX = 15 + 34, worldY = (-7) + 46, posX = 278, posY = 40, posZ = 0 }, { worldX = 15 + 38, worldY = (-7) + 52, posX = 47, posY = 127, posZ = 0 } }, fireofficer = { { worldX = 15 + 34, worldY = (-7) + 46, posX = 278, posY = 40, posZ = 0 }, { worldX = 15 + 38, worldY = (-7) + 52, posX = 47, posY = 127, posZ = 0 } }, parkranger = { { worldX = 15 + 34, worldY = (-7) + 46, posX = 278, posY = 40, posZ = 0 }, { worldX = 15 + 38, worldY = (-7) + 52, posX = 47, posY = 127, posZ = 0 } }, policeofficer = { { worldX = 15 + 34, worldY = (-7) + 46, posX = 278, posY = 40, posZ = 0 }, { worldX = 15 + 38, worldY = (-7) + 52, posX = 47, posY = 127, posZ = 0 } }, securityguard = { { worldX = 15 + 34, worldY = (-7) + 46, posX = 278, posY = 40, posZ = 0 }, { worldX = 15 + 38, worldY = (-7) + 52, posX = 47, posY = 127, posZ = 0 } }, unemployed = { { worldX = 15 + 34, worldY = (-7) + 46, posX = 278, posY = 40, posZ = 0 }, { worldX = 15 + 38, worldY = (-7) + 52, posX = 47, posY = 127, posZ = 0 } } } end
modifier_sona_crescendo_perseverance = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_sona_crescendo_perseverance:IsHidden() return false end function modifier_sona_crescendo_perseverance:IsDebuff() return false end function modifier_sona_crescendo_perseverance:IsPurgable() return false end function modifier_sona_crescendo_perseverance:GetTexture() return "custom/sona_aria_of_perseverance" end -------------------------------------------------------------------------------- -- Initializations function modifier_sona_crescendo_perseverance:OnCreated( kv ) -- references self.armor_bonus = self:GetAbility():GetSpecialValueFor( "perseverance_armor" ) -- special value self.magic_bonus = self:GetAbility():GetSpecialValueFor( "perseverance_magic" ) -- special value end function modifier_sona_crescendo_perseverance:OnRefresh( kv ) -- references self.armor_bonus = self:GetAbility():GetSpecialValueFor( "perseverance_armor" ) -- special value self.magic_bonus = self:GetAbility():GetSpecialValueFor( "perseverance_magic" ) -- special value end function modifier_sona_crescendo_perseverance:OnDestroy( kv ) end -------------------------------------------------------------------------------- -- Modifier Effects function modifier_sona_crescendo_perseverance:DeclareFunctions() local funcs = { MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS, MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS, } return funcs end function modifier_sona_crescendo_perseverance:GetModifierPhysicalArmorBonus() return self.armor_bonus end function modifier_sona_crescendo_perseverance:GetModifierMagicalResistanceBonus() return self.magic_bonus end -------------------------------------------------------------------------------- -- Graphics & Animations -- function modifier_sona_crescendo_perseverance:GetEffectName() -- return "particles/string/here.vpcf" -- end -- function modifier_sona_crescendo_perseverance:GetEffectAttachType() -- return PATTACH_ABSORIGIN_FOLLOW -- end -- function modifier_sona_crescendo_perseverance:PlayEffects() -- -- Get Resources -- local particle_cast = "string" -- local sound_cast = "string" -- -- Get Data -- -- Create Particle -- local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_NAME, hOwner ) -- ParticleManager:SetParticleControl( effect_cast, iControlPoint, vControlVector ) -- ParticleManager:SetParticleControlEnt( -- effect_cast, -- iControlPoint, -- hTarget, -- PATTACH_NAME, -- "attach_name", -- vOrigin, -- unknown -- bool -- unknown, true -- ) -- ParticleManager:SetParticleControlForward( effect_cast, iControlPoint, vForward ) -- SetParticleControlOrientation( effect_cast, iControlPoint, vForward, vRight, vUp ) -- ParticleManager:ReleaseParticleIndex( effect_cast ) -- -- buff particle -- self:AddParticle( -- nFXIndex, -- bDestroyImmediately, -- bStatusEffect, -- iPriority, -- bHeroEffect, -- bOverheadEffect -- ) -- -- Create Sound -- EmitSoundOnLocationWithCaster( vTargetPosition, sound_location, self:GetCaster() ) -- EmitSoundOn( sound_target, target ) -- end
for c = 1, 40 do for b = 1, c-1 do for a = 1, b-1 do if a * a + b * b == c * c then print(string.format("%d, %d, %d", a, b, c)) end end end end
--useful for validating if an object is an instance of a class, --even when the class is a super class. --e.g pattern = "^torch[.]%a*Tensor$" --typepattern(torch.Tensor(4), pattern) and --typepattern(torch.DoubleTensor(5), pattern) are both true. --typepattern(3, pattern) function torch.typepattern(obj, pattern) local class = type(obj) if class == 'userdata' then class = torch.typename(obj) end local match = string.match(class, pattern) if match == nil then match = false end return match end -- DEPRECATED: typepattern = torch.typepattern -- END function torch.typeString_to_tensorType(type_string) if type_string == 'cuda' then return 'torch.CudaTensor' elseif type_string == 'float' then return 'torch.FloatTensor' elseif type_string == 'double' then return 'torch.DoubleTensor' end end -- warning : doesn't allow non-standard constructors. -- need to call constructors explicitly, e.g. : function torch.classof(obj) local obj_t = torch.typename(obj) if not obj_t then error("type"..torch.type(obj).."has no torch.class registered constructor", 2) end local modula = string.tomodule(obj_t) return modula end -- returns an empty clone of an obj function torch.emptyClone(obj) error("Deprecated use torch.protoClone instead", 2) end -- construct an object using a prototype and initialize it with ... -- works with any class registered with torch.class function torch.protoClone(proto, ...) local class = torch.classof(proto) return class(...) end -- torch.concat([res], tensors, [dim]) function torch.concat(result, tensors, dim, index) index = index or 1 if type(result) == 'table' then index = dim or 1 dim = tensors tensors = result result = torch.protoClone(tensors[index]) elseif result == nil then assert(type(tensors) == 'table', "expecting table at arg 2") result = torch.protoClone(tensors[index]) end assert(_.all(tensors, function(k,v) return torch.isTensor(v) end), "Expecting table of torch.tensors at arg 1 and 2 : "..torch.type(result) ) dim = dim or 1 local size for i,tensor in ipairs(tensors) do if not size then size = tensor:size():totable() size[dim] = 0 end for j,v in ipairs(tensor:size():totable()) do if j == dim then size[j] = (size[j] or 0) + v else if size[j] and size[j] ~= v then error( "Cannot concat dim "..j.." with different sizes: ".. (size[j] or 'nil').." ~= "..(v or 'nil').. " for tensor at index "..i, 2 ) end end end end result:resize(unpack(size)) local start = 1 for i, tensor in ipairs(tensors) do result:narrow(dim, start, tensor:size(dim)):copy(tensor) start = start+tensor:size(dim) end return result end function torch.swapaxes(tensor, new_axes) -- new_axes : A table that give new axes of tensor, -- example: to swap axes 2 and 3 in 3D tensor of original axes = {1,2,3}, -- then new_axes={1,3,2} local sorted_axes = table.copy(new_axes) table.sort(sorted_axes) for k, v in ipairs(sorted_axes) do assert(k == v, 'Error: new_axes does not contain all the new axis values') end -- tracker is used to track if a dim in new_axes has been swapped local tracker = torch.zeros(#new_axes) local new_tensor = tensor -- set off a chain swapping of a group of intraconnected dimensions _chain_swap = function(idx) -- if the new_axes[idx] has not been swapped yet if tracker[new_axes[idx]] ~= 1 then tracker[idx] = 1 new_tensor = new_tensor:transpose(idx, new_axes[idx]) return _chain_swap(new_axes[idx]) else return new_tensor end end for idx = 1, #new_axes do if idx ~= new_axes[idx] and tracker[idx] ~= 1 then new_tensor = _chain_swap(idx) end end return new_tensor end function torch.Tensor:dimshuffle(new_axes) return torch.swapaxes(self, new_axes) end ----------- FFI stuff used to pass storages between threads ------------ -- https://raw.githubusercontent.com/facebook/fbcunn/master/examples/imagenet/util.lua ffi.cdef[[ void THFloatStorage_free(THFloatStorage *self); void THIntStorage_free(THIntStorage *self); ]] function torch.setFloatStorage(tensor, storage_p, free) assert(storage_p and storage_p ~= 0, "FloatStorage is NULL pointer"); if free then local cstorage = ffi.cast('THFloatStorage*', torch.pointer(tensor:storage())) if cstorage ~= nil then ffi.C['THFloatStorage_free'](cstorage) end end local storage = ffi.cast('THFloatStorage*', storage_p) tensor:cdata().storage = storage end function torch.setIntStorage(tensor, storage_p, free) assert(storage_p and storage_p ~= 0, "IntStorage is NULL pointer"); if free then local cstorage = ffi.cast('THIntStorage*', torch.pointer(tensor:storage())) if cstorage ~= nil then ffi.C['THIntStorage_free'](cstorage) end end local storage = ffi.cast('THIntStorage*', storage_p) tensor:cdata().storage = storage end function torch.sendTensor(tensor) local size = tensor:size() local ttype = tensor:type() local storage = tonumber(ffi.cast('intptr_t', torch.pointer(tensor:storage()))) tensor:cdata().storage = nil return {storage, size, ttype} end function torch.receiveTensor(tensor, pointer, size, ttype, free) if tensor then tensor:resize(size) assert(tensor:type() == ttype, 'Tensor is wrong type') else tensor = torch[ttype].new():resize(size) end if ttype == 'torch.FloatTensor' then torch.setFloatStorage(tensor, pointer, free) elseif ttype == 'torch.IntTensor' then torch.setIntStorage(tensor, pointer, free) else error('Unknown type') end return buffer end -- creates or loads a checkpoint at path. -- factory is a function that returns an object. -- If a file exists at location path, then it is loaded and returned. -- Otherwise, the factory is executed and its result is saved -- at location path for later. -- This function is usuful for optimizing slow DataSource loadtimes by -- caching their results to disk for later. function torch.checkpoint(path, factory, overwrite, mode) if paths.filep(path) and not overwrite then return torch.load(path, mode) end local obj = factory() paths.mkdir(paths.dirname(path)) torch.save(path, obj, mode) return obj end
object_building_general_ord_filler_a = object_building_general_shared_ord_filler_a:new { } ObjectTemplates:addTemplate(object_building_general_ord_filler_a, "object/building/general/ord_filler_a.iff")
#! /usr/local/bin/lua -- -- @(!--#) @(#) hs100110.lua, version 003, 31-may-2018 -- -- TP-Link HS100 Smart WiFi Plug controller (Lua version) -- -- Send encoded JSON requests via TCP/IP to turn a -- TP-Link HS100 and HS110 Smart WiFi plug on and off -- -- Product details: -- -- http://uk.tp-link.com/products/list-5258.html -- -- Based on encoded JSON strings from: -- -- https://community.openhab.org/t/tp-link-hs100-smart-plug-wifi/8591/6 -- -- This page has comprehensive and interesting reverse engineering details: -- -- https://www.softscheck.com/en/reverse-engineering-tp-link-hs110/ -- ----------------------------------------------------------------- -- -- Constants -- JSON_ON = "{\"system\":{\"set_relay_state\":{\"state\":1}}}" JSON_OFF = "{\"system\":{\"set_relay_state\":{\"state\":0}}}" JSON_QUERY = "{\"system\":{\"get_sysinfo\":null}}" ----------------------------------------------------------------- function plain2cipher(bytes) b = "" key = 171 for i = 1, #bytes do c = bytes:byte(i) keyedbyte = key ~ c key = keyedbyte b = b .. string.char(keyedbyte) end return b end ----------------------------------------------------------------- function cipher2plain(bytes) b = "" key = 171 for i = 1, #bytes do c = bytes:byte(i) keyedbyte = key ~ c key = c b = b .. string.char(keyedbyte) end return b end ----------------------------------------------------------------- function showpacket(title, packet) print(title .. ":") local bpr = 10 -- "bpr" means bytes per row of output lenpacket = #packet for i = 1, lenpacket do if (((i - 1) % bpr) == 0) then line = string.format("%04d:", i) end c = packet:byte(i) line = line .. string.format(" %02X", c) if ( (i == lenpacket) or ((i % bpr) == 0) ) then print(line) end end return end ----------------------------------------------------------------- -- -- Main -- local socket = require("socket") local verbose = 0 local hostip = "-" local portnum = 9999 local jsonstring = JSON_QUERY local argc = #arg if (argc > 0) then local i = 1 while i <= argc do if arg[i] == "-h" then if i == argc then print("ERROR: expecting host IP after -h option") os.exit() else i = i + 1 hostip = arg[i] end elseif arg[i] == "-p" then if i == argc then print("ERROR: expecting port number after -p option") os.exit() else i = i + 1 portnum = arg[i] end elseif arg[i] == "-j" then if i == argc then print("ERROR: expecting JSON string after -j option") os.exit() else i = i + 1 jsonstring = arg[i] end elseif arg[i] == "-v" then verbose = verbose + 1 elseif arg[i] == "-on" then jsonstring = JSON_ON elseif arg[i] == "-off" then jsonstring = JSON_OFF elseif arg[i] == "-query" then jsonstring = JSON_QUERY else print("ERROR: invalid command line option/argument \"" .. arg[i] .. "\"") os.exit() end i = i + 1 end end if hostip == "-" then print("ERROR: must specify a hostname/ip with the -h option") os.exit() end if verbose >= 1 then print("Host IP.......: " .. hostip) print("Port number...: " .. portnum) print("JSON string...: " .. jsonstring) end local s = socket.tcp() if verbose >= 1 then print("Connecting to " .. hostip .. " on port " .. portnum) end local err, errmsg = s:connect(hostip, portnum) if err == nil then print("ERROR: connect failed: " .. errmsg) os.exit() else if verbose >= 1 then print("Connected OK") end end json = plain2cipher(jsonstring) lenjson = #json packet = "" packet = packet .. string.char((lenjson & 0xFF000000) >> 24) packet = packet .. string.char((lenjson & 0x00FF0000) >> 16) packet = packet .. string.char((lenjson & 0x0000FF00) >> 8) packet = packet .. string.char((lenjson & 0x000000FF) >> 0) packet = packet .. json if verbose >= 2 then showpacket("Encoded", packet) end s:send(packet) resplenbytes = s:receive(4) if verbose >= 2 then showpacket("Response length", resplenbytes) end resplen = 0 resplen = resplen + (resplenbytes:byte(1) << 24) resplen = resplen + (resplenbytes:byte(2) << 16) resplen = resplen + (resplenbytes:byte(3) << 8) resplen = resplen + (resplenbytes:byte(4) << 0) if verbose >= 2 then print("Response length is: " .. resplen) end response = s:receive(resplen) if verbose >= 2 then showpacket("Encryped response", response) end response = cipher2plain(response) if verbose >= 2 then showpacket("Plain response", response) end print(response) if verbose >= 1 then print("Closing socket") end s:close() if verbose >= 1 then print("Closed") end os.exit()
local usbWatcher = nil function usbDeviceCallback(data) print ( data["productName"] ) if (data["productName"] == "USB Keyboard") then if (data["eventType"] == "added") then hs.execute('/bin/sh /Users/ttiurani/.config/karabiner/swap-active-profile.sh') elseif (data["eventType"] == "removed") then hs.execute('/bin/sh /Users/ttiurani/.config/karabiner/swap-active-profile.sh') end end end usbWatcher = hs.usb.watcher.new(usbDeviceCallback) usbWatcher:start()
module(...,package.seeall) require "lvsym" require "sys" scr2 = nil local function close_win(btn, event) if event == lvgl.EVENT_RELEASED then win = lvgl.win_get_from_btn(btn) lvgl.obj_del(win) lvgl.disp_load_scr(scr2) end end function create() scr = lvgl.cont_create(nil, nil) scr2 = lvgl.cont_create(nil, nil) win = lvgl.win_create(scr, nil) lvgl.win_set_title(win, "标题") close_btn = lvgl.win_add_btn(win, lvgl.SYMBOL_CLOSE) lvgl.obj_set_event_cb(close_btn, close_win) lvgl.win_add_btn(win, lvgl.SYMBOL_SETTINGS) txt = lvgl.label_create(win, nil) lvgl.label_set_recolor(txt, true) lvgl.label_set_text(txt, [[This #987654 is the# content of the window You can add control buttons to the window header The content area becomes automatically scrollable is it's large enough. You can scroll the content See the scroll bar on the right!]]) ml = lvgl.label_create(scr2, nil) lvgl.label_set_recolor(ml, true) lvgl.label_set_text(ml, "#123456 窗口# #897632 已关闭#") lvgl.obj_align(ml, nil, lvgl.ALIGN_CENTER, 0, 0) -- lvgl.disp_load_scr(scr) sys.timerStart(lvgl.event_send, 3000, close_btn, lvgl.EVENT_RELEASED, nil) return scr end -- lvgl.init(create, nil)
include( 'prop_tools.lua' ) local function DupeBarrel(Player) SendHint(Player,"Cannot duplicate barrels", NOTIFY_ERROR, 5) end duplicator.RegisterEntityClass( "harbor_oil-small", DupeBarrel ) duplicator.RegisterEntityClass( "harbor_oil-large", DupeBarrel ) --[[--------------------------------------------------------- Name: CCSpawn Desc: Console Command for a player to spawn different items -----------------------------------------------------------]] function CCSpawn( player, command, arguments ) if ( arguments[1] == nil ) then return end if ( !gamemode.Call( "PlayerSpawnObject", player, arguments[1], arguments[2] ) ) then return end if ( !util.IsValidModel( arguments[1] ) ) then return end local iSkin = arguments[2] or 0 local strBody = arguments[3] or nil if ( util.IsValidProp( arguments[1] ) ) then GMODSpawnProp( player, arguments[1], iSkin, strBody ) return end if ( util.IsValidRagdoll( arguments[1] ) ) then GMODSpawnRagdoll( player, arguments[1], iSkin, strBody ) return end -- Not a ragdoll or prop.. must be an 'effect' - spawn it as one GMODSpawnEffect( player, arguments[1], iSkin, strBody ) end --[[--------------------------------------------------------- -----------------------------------------------------------]] local function MakeRagdoll( Player, Pos, Ang, Model, PhysicsObjects, Data ) if not gamemode.Call( "PlayerSpawnRagdoll", Player, Model ) then return end local Ent = ents.Create( "prop_ragdoll" ) duplicator.DoGeneric( Ent, Data ) Ent:Spawn() duplicator.DoGenericPhysics( Ent, Player, Data ) Ent:Activate() if ( IsValid( Player ) ) then gamemode.Call( "PlayerSpawnedRagdoll", Player, Model, Ent ) end DoPropSpawnedEffect( Ent ) return Ent end -- Register the "prop_ragdoll" class with the duplicator, (Args in brackets will be retreived for every bone) duplicator.RegisterEntityClass( "prop_ragdoll", MakeRagdoll, "Pos", "Ang", "Model", "PhysicsObjects", "Data" ) --[[--------------------------------------------------------- Name: GMODSpawnRagdoll - player spawns a ragdoll -----------------------------------------------------------]] function GMODSpawnRagdoll( player, model, iSkin, strBody ) if ( !gamemode.Call( "PlayerSpawnRagdoll", player, model ) ) then return end local e = DoPlayerEntitySpawn( player, "prop_ragdoll", model, iSkin, strBody ) if ( IsValid( player ) ) then gamemode.Call( "PlayerSpawnedRagdoll", player, model, e ) end DoPropSpawnedEffect( e ) undo.Create("Ragdoll") undo.SetPlayer(player) undo.AddEntity(e) undo.Finish( "Ragdoll ("..tostring(model)..")" ) player:AddCleanup( "ragdolls", e ) end function MakeProp( Player, Pos, Ang, Model, PhysicsObjects, Data ) -- Uck. Data.Pos = Pos Data.Angle = Ang Data.Model = Model -- Make sure this is allowed if ( IsValid( Player ) && !gamemode.Call( "PlayerSpawnProp", Player, Model ) ) then return end local Prop = ents.Create( "prop_physics" ) duplicator.DoGeneric( Prop, Data ) Prop:Spawn() duplicator.DoGenericPhysics( Prop, Player, Data ) -- Tell the gamemode we just spawned something if ( IsValid( Player ) ) then gamemode.Call( "PlayerSpawnedProp", Player, Model, Prop ) end FixInvalidPhysicsObject( Prop ) DoPropSpawnedEffect( Prop ) return Prop end duplicator.RegisterEntityClass( "prop_physics", MakeProp, "Pos", "Ang", "Model", "PhysicsObjects", "Data" ) --[[--------------------------------------------------------- Name: FixInvalidPhysicsObject Attempts to detect and correct the physics object on models such as the TF2 Turrets -----------------------------------------------------------]] function FixInvalidPhysicsObject( Prop ) local PhysObj = Prop:GetPhysicsObject() if ( !IsValid(PhysObj) ) then return end local min, max = PhysObj:GetAABB() if ( !min || !max ) then return end local PhysSize = (min - max):Length() if ( PhysSize > 5 ) then return end local min = Prop:OBBMins() local max = Prop:OBBMaxs() if ( !min || !max ) then return end local ModelSize = (min - max):Length() local Difference = math.abs( ModelSize - PhysSize ) if ( Difference < 10 ) then return end -- This physics object is definitiely weird. -- Make a new one. Prop:PhysicsInitBox( min, max ) Prop:SetCollisionGroup( COLLISION_GROUP_DEBRIS ) local PhysObj = Prop:GetPhysicsObject() if ( !PhysObj ) then return end PhysObj:SetMass( 100 ) PhysObj:Wake() end --[[--------------------------------------------------------- Name: CCSpawnProp - player spawns a prop -----------------------------------------------------------]] function GMODSpawnProp( player, model, iSkin, strBody ) if ( !gamemode.Call( "PlayerSpawnProp", player, model ) ) then return end local e = DoPlayerEntitySpawn( player, "prop_physics", model, iSkin, strBody ) if ( IsValid( player ) ) then gamemode.Call( "PlayerSpawnedProp", player, model, e ) end -- This didn't work out - todo: Find a better way. --timer.Simple( 0.01, CheckPropSolid, e, COLLISION_GROUP_NONE, COLLISION_GROUP_WORLD ) FixInvalidPhysicsObject( e ) DoPropSpawnedEffect( e ) undo.Create("Prop") undo.SetPlayer(player) undo.AddEntity(e) undo.Finish( "Prop ("..tostring(model)..")" ) player:AddCleanup( "props", e ) end --[[--------------------------------------------------------- Name: GMODSpawnEffect -----------------------------------------------------------]] function GMODSpawnEffect( player, model, iSkin, strBody ) if ( !gamemode.Call( "PlayerSpawnEffect", player, model ) ) then return end local e = DoPlayerEntitySpawn( player, "prop_effect", model, iSkin, strBody ) if ( !IsValid( e ) ) then return end if ( IsValid( player ) ) then gamemode.Call( "PlayerSpawnedEffect", player, model, e ) end DoPropSpawnedEffect( e ) undo.Create("Effect") undo.SetPlayer(player) undo.AddEntity(e) undo.Finish( "Effect ("..tostring(model)..")" ) player:AddCleanup( "effects", e ) end --[[--------------------------------------------------------- Name: DoPlayerEntitySpawn Desc: Utility function for player entity spawning functions -----------------------------------------------------------]] function DoPlayerEntitySpawn( player, entity_name, model, iSkin, strBody ) local vStart = player:GetShootPos() local vForward = player:GetAimVector() local trace = {} trace.start = vStart trace.endpos = vStart + (vForward * 2048) trace.filter = player local tr = util.TraceLine( trace ) -- PrintTable( tr ) -- Prevent spawning too close --if ( !tr.Hit || tr.Fraction < 0.05 ) then -- return --end local ent = ents.Create( entity_name ) if ( !IsValid( ent ) ) then return end local ang = player:EyeAngles() ang.yaw = ang.yaw + 180 -- Rotate it 180 degrees in my favour ang.roll = 0 ang.pitch = 0 if (entity_name == "prop_ragdoll") then ang.pitch = -90 tr.HitPos = tr.HitPos end ent:SetModel( model ) ent:SetSkin( iSkin ) ent:SetAngles( ang ) ent:SetBodyGroups( strBody ) ent:SetPos( tr.HitPos ) ent:Spawn() ent:Activate() -- Attempt to move the object so it sits flush -- We could do a TraceEntity instead of doing all -- of this - but it feels off after the old way local vFlushPoint = tr.HitPos - ( tr.HitNormal * 512 ) -- Find a point that is definitely out of the object in the direction of the floor vFlushPoint = ent:NearestPoint( vFlushPoint ) -- Find the nearest point inside the object to that point vFlushPoint = ent:GetPos() - vFlushPoint -- Get the difference vFlushPoint = tr.HitPos + vFlushPoint -- Add it to our target pos if (entity_name != "prop_ragdoll") then -- Set new position ent:SetPos( vFlushPoint ) player:SendLua( "achievements.SpawnedProp()" ); else -- With ragdolls we need to move each physobject local VecOffset = vFlushPoint - ent:GetPos() for i=0, ent:GetPhysicsObjectCount()-1 do local phys = ent:GetPhysicsObjectNum( i ) phys:SetPos( phys:GetPos() + VecOffset ) end player:SendLua( "achievements.SpawnedRagdoll()" ); end return ent end concommand.Add( "gm_spawn", CCSpawn, nil, "Spawns props/ragdolls" ) local function InternalSpawnNPC( Player, Position, Normal, Class, Equipment ) local NPCList = list.Get( "NPC" ) local NPCData = NPCList[ Class ] -- Don't let them spawn this entity if it isn't in our NPC Spawn list. -- We don't want them spawning any entity they like! if ( !NPCData ) then if ( IsValid( Player ) ) then Player:SendLua( "Derma_Message( \"Sorry! You can't spawn that NPC!\" )" ); end return end local bDropToFloor = false -- -- This NPC has to be spawned on a ceiling ( Barnacle ) -- if ( NPCData.OnCeiling && Vector( 0, 0, -1 ):Dot( Normal ) < 0.95 ) then return nil end -- -- This NPC has to be spawned on a floor ( Turrets ) -- if ( NPCData.OnFloor && Vector( 0, 0, 1 ):Dot( Normal ) < 0.95 ) then return nil else bDropToFloor = true end if ( NPCData.NoDrop ) then bDropToFloor = false end -- -- Offset the position -- local Offset = NPCData.Offset or 32 Position = Position + Normal * Offset -- Create NPC local NPC = ents.Create( NPCData.Class ) if ( !IsValid( NPC ) ) then return end NPC:SetPos( Position ) -- Rotate to face player (expected behaviour) local Angles = Angle( 0, 0, 0 ) if ( IsValid( Player ) ) then Angles = Player:GetAngles() end Angles.pitch = 0 Angles.roll = 0 Angles.yaw = Angles.yaw + 180 if ( NPCData.Rotate ) then Angles = Angles + NPCData.Rotate end NPC:SetAngles( Angles ) -- -- This NPC has a special model we want to define -- if ( NPCData.Model ) then NPC:SetModel( NPCData.Model ) end -- -- Spawn Flags -- local SpawnFlags = bit.bor( SF_NPC_FADE_CORPSE, SF_NPC_ALWAYSTHINK ) if ( NPCData.SpawnFlags ) then SpawnFlags = bit.bor( SpawnFlags, NPCData.SpawnFlags ) end if ( NPCData.TotalSpawnFlags ) then SpawnFlags = NPCData.TotalSpawnFlags end NPC:SetKeyValue( "spawnflags", SpawnFlags ) -- -- Optional Key Values -- if ( NPCData.KeyValues ) then for k, v in pairs( NPCData.KeyValues ) do NPC:SetKeyValue( k, v ) end end -- -- This NPC has a special skin we want to define -- if ( NPCData.Skin ) then NPC:SetSkin( NPCData.Skin ) end -- -- What weapon should this mother be carrying -- if ( Equipment && Equipment != "none" ) then NPC:SetKeyValue( "additionalequipment", Equipment ) NPC.Equipment = Equipment end DoPropSpawnedEffect( NPC ) NPC:Spawn() NPC:Activate() if ( bDropToFloor && !NPCData.OnCeiling ) then NPC:DropToFloor() end return NPC end function Spawn_NPC( player, NPCClassName, WeaponName, tr ) if ( !NPCClassName ) then return end -- Give the gamemode an opportunity to deny spawning if ( !gamemode.Call( "PlayerSpawnNPC", player, NPCClassName, WeaponName ) ) then return end if ( !tr ) then local vStart = player:GetShootPos() local vForward = player:GetAimVector() local trace = {} trace.start = vStart trace.endpos = vStart + vForward * 2048 trace.filter = player tr = util.TraceLine( trace ) end -- Create the NPC is you can. local SpawnedNPC = InternalSpawnNPC( player, tr.HitPos, tr.HitNormal, NPCClassName, WeaponName ) if ( !IsValid( SpawnedNPC ) ) then return end -- Give the gamemode an opportunity to do whatever if ( IsValid( player ) ) then gamemode.Call( "PlayerSpawnedNPC", player, SpawnedNPC ) end -- See if we can find a nice name for this NPC.. local NPCList = list.Get( "NPC" ) local NiceName = nil if ( NPCList[ NPCClassName ] ) then NiceName = NPCList[ NPCClassName ].Name end -- Add to undo list undo.Create("NPC") undo.SetPlayer( player ) undo.AddEntity( SpawnedNPC ) if ( NiceName ) then undo.SetCustomUndoText( "Undone "..NiceName ) end undo.Finish( "NPC ("..tostring(NPCClassName)..")" ) -- And cleanup player:AddCleanup( "npcs", SpawnedNPC ) player:SendLua( "achievements.SpawnedNPC()" ); end concommand.Add( "gmod_spawnnpc", function( ply, cmd, args ) Spawn_NPC( ply, args[1], args[2] ) end ) local function GenericNPCDuplicator( Player, Model, Class, Equipment, SpawnFlags, Data ) if ( !gamemode.Call( "PlayerSpawnNPC", Player, Class, Equipment ) ) then return end local Entity = InternalSpawnNPC( Player, Data.Pos, Vector(0,0,1), Class, Equipment, SpawnFlags ) if ( IsValid( Entity ) ) then duplicator.DoGeneric( Entity, Data ) if ( IsValid( Player ) ) then gamemode.Call( "PlayerSpawnedNPC", Player, Entity ) Player:AddCleanup( "npcs", Entity ) end table.Add( Entity:GetTable(), Data ) end return Entity end -- Huuuuuuuuhhhh duplicator.RegisterEntityClass( "npc_alyx", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_antlion", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_antlionguard", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_barnacle", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_barney", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_breen", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_combine_s", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_combine_p", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_combine_e", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_crow", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_cscanner", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_dog", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_eli", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_fastzombie", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_gman", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_headcrab", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_headcrab_black", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_headcrab_fast", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_kleiner", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_manhack", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_metropolice", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_monk", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_mossman", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_pigeon", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_rollermine", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_seagull", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_zombie", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_zombie_torso", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_citizen_rebel", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_citizen", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_citizen_dt", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_citizen_medic", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_stalker", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "npc_fisherman", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) -- HL1 duplicator.RegisterEntityClass( "monster_bigmomma", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_bullchicken", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_gargantua", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_human_assassin", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_babycrab", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_human_grunt", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_cockroach", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_houndeye", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_scientist", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_snark", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_zombie", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_barney", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_alien_controller", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) duplicator.RegisterEntityClass( "monster_headcrab", GenericNPCDuplicator, "Model", "Class", "Equipment", "SpawnFlags", "Data" ) --[[--------------------------------------------------------- Name: CanPlayerSpawnSENT -----------------------------------------------------------]] local function CanPlayerSpawnSENT( player, EntityName ) -- Make sure this is a SWEP local sent = scripted_ents.GetStored( EntityName ) if ( sent == nil ) then -- Is this in the SpawnableEntities list? local SpawnableEntities = list.Get( "SpawnableEntities" ) if ( !SpawnableEntities ) then return false end local EntTable = SpawnableEntities[ EntityName ] if ( !EntTable ) then return false end if ( EntTable.AdminOnly && !player:IsAdmin() ) then return false end return true end -- We need a spawn function. The SENT can then spawn itself properly local SpawnFunction = scripted_ents.GetMember( EntityName, "SpawnFunction" ) if ( !isfunction( SpawnFunction ) ) then return false end -- You're not allowed to spawn this unless you're an admin! if ( !scripted_ents.GetMember( EntityName, "Spawnable" ) && !player:IsAdmin() ) then return false end if ( scripted_ents.GetMember( EntityName, "AdminOnly" ) && !player:IsAdmin() ) then return false end return true end --[[--------------------------------------------------------- Name: Spawn_SENT Desc: Console Command for a player to spawn different items -----------------------------------------------------------]] function Spawn_SENT( player, EntityName, tr ) if ( EntityName == nil ) then return end if ( !CanPlayerSpawnSENT( player, EntityName ) ) then return end -- Ask the gamemode if it's ok to spawn this if ( !gamemode.Call( "PlayerSpawnSENT", player, EntityName ) ) then return end local vStart = player:EyePos() local vForward = player:GetAimVector() if ( !tr ) then local trace = {} trace.start = vStart trace.endpos = vStart + (vForward * 4096) trace.filter = player tr = util.TraceLine( trace ) end local entity = nil local PrintName = nil local sent = scripted_ents.GetStored( EntityName ) if ( sent ) then local sent = sent.t ClassName = EntityName local SpawnFunction = scripted_ents.GetMember( EntityName, "SpawnFunction" ) entity = SpawnFunction( sent, player, tr, EntityName ) ClassName = nil PrintName = sent.PrintName else -- Spawn from list table local SpawnableEntities = list.Get( "SpawnableEntities" ) if (!SpawnableEntities) then return end local EntTable = SpawnableEntities[ EntityName ] if (!EntTable) then return end PrintName = EntTable.PrintName local SpawnPos = tr.HitPos + tr.HitNormal * 16 if ( EntTable.NormalOffset ) then SpawnPos = SpawnPos + tr.HitNormal * EntTable.NormalOffset end entity = ents.Create( EntTable.ClassName ) entity:SetPos( SpawnPos ) entity:Spawn() entity:Activate() if ( EntTable.DropToFloor ) then entity:DropToFloor() end end if ( IsValid( entity ) ) then if ( IsValid( player ) ) then gamemode.Call( "PlayerSpawnedSENT", player, entity ) end undo.Create("SENT") undo.SetPlayer(player) undo.AddEntity(entity) if ( PrintName ) then undo.SetCustomUndoText( "Undone "..PrintName ) end undo.Finish( "Scripted Entity ("..tostring( EntityName )..")" ) player:AddCleanup( "sents", entity ) entity:SetVar( "Player", player ) end end concommand.Add( "gm_spawnsent", function( ply, cmd, args ) Spawn_SENT( ply, args[1] ) end ) --[[--------------------------------------------------------- -- Give a swep.. duh. -----------------------------------------------------------]] function CCGiveSWEP( player, command, arguments ) if ( arguments[1] == nil ) then return end -- Make sure this is a SWEP local swep = list.Get( "Weapon" )[ arguments[1] ]; if (swep == nil) then return end -- You're not allowed to spawn this! if ( !swep.Spawnable && !player:IsAdmin() ) then return end if ( !gamemode.Call( "PlayerGiveSWEP", player, arguments[1], swep ) ) then return end MsgAll( "Giving "..player:Nick().." a "..swep.ClassName.."\n" ) player:Give( swep.ClassName ) -- And switch to it player:SelectWeapon( swep.ClassName ) end concommand.Add( "gm_giveswep", CCGiveSWEP ) --[[--------------------------------------------------------- -- Give a swep.. duh. -----------------------------------------------------------]] function Spawn_Weapon( Player, wepname, tr ) if ( wepname == nil ) then return end local swep = list.Get( "Weapon" )[ wepname ]; -- Make sure this is a SWEP if ( swep == nil ) then return end -- You're not allowed to spawn this! if ( !swep.Spawnable && !Player:IsAdmin() ) then return end if ( !gamemode.Call( "PlayerSpawnSWEP", Player, wepname, swep ) ) then return end if ( !tr ) then tr = Player:GetEyeTraceNoCursor() end if ( !tr.Hit ) then return end local entity = ents.Create( swep.ClassName ) if ( IsValid( entity ) ) then entity:SetPos( tr.HitPos + tr.HitNormal * 32 ) entity:Spawn() gamemode.Call( "PlayerSpawnedSWEP", Player, entity ) end end concommand.Add( "gm_spawnswep", function( ply, cmd, args ) Spawn_Weapon( ply, args[1] ) end ) local function MakeVehicle( Player, Pos, Ang, Model, Class, VName, VTable ) if (!gamemode.Call( "PlayerSpawnVehicle", Player, Model, VName, VTable )) then return end local Ent = ents.Create( Class ) if (!Ent) then return NULL end Ent:SetModel( Model ) -- Fill in the keyvalues if we have them if ( VTable && VTable.KeyValues ) then for k, v in pairs( VTable.KeyValues ) do Ent:SetKeyValue( k, v ) end end Ent:SetAngles( Ang ) Ent:SetPos( Pos ) DoPropSpawnedEffect( Ent ) Ent:Spawn() Ent:Activate() Ent.VehicleName = VName Ent.VehicleTable = VTable -- We need to override the class in the case of the Jeep, because it -- actually uses a different class than is reported by GetClass Ent.ClassOverride = Class if ( IsValid( Player ) ) then gamemode.Call( "PlayerSpawnedVehicle", Player, Ent ) end return Ent end duplicator.RegisterEntityClass( "prop_vehicle_jeep_old", MakeVehicle, "Pos", "Ang", "Model", "Class", "VehicleName", "VehicleTable" ) duplicator.RegisterEntityClass( "prop_vehicle_jeep", MakeVehicle, "Pos", "Ang", "Model", "Class", "VehicleName", "VehicleTable" ) duplicator.RegisterEntityClass( "prop_vehicle_airboat", MakeVehicle, "Pos", "Ang", "Model", "Class", "VehicleName", "VehicleTable" ) duplicator.RegisterEntityClass( "prop_vehicle_prisoner_pod", MakeVehicle, "Pos", "Ang", "Model", "Class", "VehicleName", "VehicleTable" ) --[[--------------------------------------------------------- Name: CCSpawnVehicle Desc: Player attempts to spawn vehicle -----------------------------------------------------------]] function Spawn_Vehicle( Player, vname, tr ) if ( !vname ) then return end local VehicleList = list.Get( "Vehicles" ) local vehicle = VehicleList[ vname ] -- Not a valid vehicle to be spawning.. if ( !vehicle ) then return end if ( !tr ) then tr = Player:GetEyeTraceNoCursor() end local Angles = Player:GetAngles() Angles.pitch = 0 Angles.roll = 0 Angles.yaw = Angles.yaw + 180 local Ent = MakeVehicle( Player, tr.HitPos, Angles, vehicle.Model, vehicle.Class, vname, vehicle ) if ( !IsValid( Ent ) ) then return end if ( vehicle.Members ) then table.Merge( Ent, vehicle.Members ) duplicator.StoreEntityModifier( Ent, "VehicleMemDupe", vehicle.Members ); end undo.Create( "Vehicle" ) undo.SetPlayer( Player ) undo.AddEntity( Ent ) undo.SetCustomUndoText( "Undone "..vehicle.Name ) undo.Finish( "Vehicle ("..tostring( vehicle.Name )..")" ) Player:AddCleanup( "vehicles", Ent ) end concommand.Add( "gm_spawnvehicle", function( ply, cmd, args ) Spawn_Vehicle( ply, args[1] ) end ) local function VehicleMemDupe( Player, Entity, Data ) table.Merge( Entity, Data ); end duplicator.RegisterEntityModifier( "VehicleMemDupe", VehicleMemDupe );
AddCSLuaFile() SWEP.Base = "weapon_gwbase" SWEP.Name = "Ragdoll" SWEP.AbilityDuration = 8 SWEP.AbilityDescription ="Pretty much what the name suggests.\nTransforms you into a ragdoll for $AbilityDuration seconds." function SWEP:Ability() if CLIENT then return end local ply = self:GetOwner() self:AbilityTimerIfValidSWEP(self.AbilityDuration, 1, true, function() self:AbilityCleanup() end) local hunters = team.GetPlayers(GW_TEAM_SEEKING) local aliveHunters = {} for _, hunter in pairs(hunters) do if IsValid(hunter) and hunter:Alive() then table.insert(aliveHunters, hunter) end end local aliveHunter = aliveHunters[math.random(#aliveHunters)] if IsValid(aliveHunter) and IsValid(aliveHunter:GetActiveWeapon()) then net.Start( "PlayerKilledByPlayer" ) net.WriteEntity(ply) net.WriteString(aliveHunter:GetActiveWeapon():GetClass()) net.WriteEntity(aliveHunter) net.Broadcast() else net.Start("PlayerKilledSelf") net.WriteEntity( ply ) net.Broadcast() end ply:GWStartRagdoll() end function SWEP:AbilityCleanup() if CLIENT then return end if not IsValid( self:GetOwner() ) then return end self:GetOwner():GWEndRagdoll() end if CLIENT then hook.Add( "OnEntityCreated", "gwRagdollPlayerColor", function( ent ) if IsValid(ent) and ent:GetClass() == "prop_ragdoll" and IsValid(ent:GetOwner()) and ent:GetOwner():IsPlayer() then ent.GetPlayerColor = function(self) if IsValid(ent:GetOwner()) and ent:GetOwner():IsPlayer() and ent:GetOwner().GetPlayerColor then return self:GetOwner():GetPlayerColor() end return Vector(1, 1, 1) end end end) end
module ("L_DataUser", package.seeall) local LICENSE = [[ Copyright 2016 AK Booer Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ]] ------------------------------------------------------------------------ -- -- 2016.04.08 @akbooer -- -- DataUser is a user-defined module with a single global function 'run' -- called by DataWatcher for every incoming metric (wherever it comes from.) -- The processing can do anything you like within the Luup environment -- and returns a single function, an iterator, which returns the -- (possibly modified) metric and data to send to the DataCache for storage. -- -- The iterator function is called until its first return argument is nil. -- This module can, therefore, choose to totally reject an incoming metric or -- return multiple different ones for storage. -- -- By default, this module simply returns each metric unchanged. -- function run (metric, value, time) local function relay () local m = metric metric = nil return m, value, time -- first call returns metric, second one nil end ----- -- -- user-defined processing goes here -- change metric name, value, or time as required, or -- set metric to nil if you don't want to pass it on -- -- Typically, your processing will test for a specific metric -- and modify the value under certain conditions. -- A simple example is bounds-checking: -- -- if metric: match "Temperature" then -- local v = tonumber(value) -- if v < -50 then value = -50 -- elseif v > 150 then value = 150 -- end -- end -- ----- return relay end ----- --TEST --for a,b,c in run ("whisper.Temperature.metric.name", 42, os.time()) do -- print (a,b,c) --end
--- @type StdUi local StdUi = LibStub and LibStub('StdUi', true); if not StdUi then return end local module, version = 'Autocomplete', 3; if not StdUi:UpgradeNeeded(module, version) then return end; local TableInsert = tinsert; StdUi.Util.autocompleteTransformer = function(_, value) return value; end StdUi.Util.autocompleteValidator = function(self) self.stdUi:MarkAsValid(self, true); return true; end StdUi.Util.autocompleteItemTransformer = function(_, value) if not value or value == '' then return value; end local itemName = GetItemInfo(value); return itemName; end StdUi.Util.autocompleteItemValidator = function(ac) local itemName, itemId; local t = ac:GetText(); local v = ac:GetValue(); if tonumber(t) ~= nil then -- it's a number itemName = GetItemInfo(tonumber(t)); if itemName then itemId = tonumber(t); end elseif v then itemName = GetItemInfo(v); if itemName == t then itemId = v; end end if itemId then ac.value = itemId; ac:SetText(itemName); self.stdUi:MarkAsValid(ac, true); return true; else self.stdUi:MarkAsValid(ac, false); return false; end end local AutocompleteMethods = { --- Private methods buttonCreate = function(panel) local optionButton; optionButton = StdUi:HighlightButton(panel, panel:GetWidth(), 20, ''); optionButton.text:SetJustifyH('LEFT'); optionButton.autocomplete = panel.autocomplete; optionButton:SetFrameLevel(panel:GetFrameLevel() + 2); optionButton:SetScript('OnClick', function(b) local ac = b.autocomplete; if b.boundItem then b.autocomplete.selectedItem = b.boundItem; end ac:SetValue(b.value, b:GetText()); b.autocomplete.dropdown:Hide(); end); return optionButton; end, buttonUpdate = function(panel, optionButton, data) optionButton.boundItem = data; optionButton.value = data.value; optionButton:SetWidth(panel:GetWidth()); optionButton:SetText(data.text); end, filterItems = function(ac, search, itemsToSearch) local result = {}; for _, item in pairs(itemsToSearch) do local valueString = tostring(item.value); if item.text:lower():find(search:lower(), nil, true) or valueString:lower():find(search:lower(), nil, true) then TableInsert(result, item); end if #result >= ac.itemLimit then break; end end return result; end, --- Public methods SetItems = function(self, newItems) self.items = newItems; self:RenderItems(); self.dropdown:Hide(); end, RenderItems = function(self) local dropdownHeight = 20 * #self.filteredItems; self.dropdown:SetHeight(dropdownHeight); self.stdUi:ObjectList( self.dropdown, self.itemTable, self.buttonCreate, self.buttonUpdate, self.filteredItems ); end, ValueToText = function(self, value) return self.transformer(value) end, SetValue = function(self, value, t) self.value = value; self:SetText(t or self:ValueToText(value) or ''); self:Validate(); self.button:Hide(); end, Validate = function(self) self.isValidated = true; self.isValid = self:validator(); if self.isValid then if self.OnValueChanged then self:OnValueChanged(self.value, self:GetText()); end end self.isValidated = false; end, }; local AutocompleteEvents = { OnEditFocusLost = function(s) s.dropdown:Hide(); end, OnEnterPressed = function(s) s.dropdown:Hide(); s:Validate(); end, OnTextChanged = function(ac, isUserInput) local plainText = StdUi.Util.stripColors(ac:GetText()); ac.selectedItem = nil; if isUserInput then -- reset value if user changed something ac.value = nil; if type(ac.items) == 'function' then -- We ensure to pass whole autocomplete as well ac.filteredItems = ac:items(plainText); elseif type(ac.items) == 'table' then ac.filteredItems = ac:filterItems(plainText, ac.items); end if not ac.filteredItems or #ac.filteredItems == 0 then ac.dropdown:Hide(); else ac:RenderItems(); ac.dropdown:Show(); end end end } --- Very similar to dropdown except it has the ability to create new records and filters results --- @return EditBox function StdUi:Autocomplete(parent, width, height, text, validator, transformer, items) transformer = transformer or StdUi.Util.autocompleteTransformer; validator = validator or StdUi.Util.autocompleteValidator; local autocomplete = self:EditBox(parent, width, height, text, validator); ---@type StdUi autocomplete.stdUi = self; autocomplete.transformer = transformer; autocomplete.items = items; autocomplete.filteredItems = {}; autocomplete.selectedItem = nil; autocomplete.itemLimit = 8; autocomplete.itemTable = {}; autocomplete.dropdown = self:Panel(parent, width, 20); autocomplete.dropdown:SetPoint('TOPLEFT', autocomplete, 'BOTTOMLEFT', 0, 0); autocomplete.dropdown:SetPoint('TOPRIGHT', autocomplete, 'BOTTOMRIGHT', 0, 0); autocomplete.dropdown:Hide(); autocomplete.dropdown:SetFrameLevel(autocomplete:GetFrameLevel() + 10); -- keep back reference autocomplete.dropdown.autocomplete = autocomplete; for k, v in pairs(AutocompleteMethods) do autocomplete[k] = v; end for k, v in pairs(AutocompleteEvents) do autocomplete:SetScript(k, v); end return autocomplete; end StdUi:RegisterModule(module, version);
-- 存储游戏中会用到的常量 const = {} const.TILESIZE = 32 const.Direction = {S=0, WS=1, W=2, NW=3, N=4, NE=5, E=6, ES=7} local d = const.Direction const.DiagDirection = {WS=1, NW=3, NE=5, ES=7} -- 八方向转四方向 const.FullToDiagDir = { [d.S]=7, [d.WS]=1, [d.W]=1, [d.NW]=3, [d.N]=3, [d.NE]=5, [d.E]=5, [d.ES]=7} -- 获取方向向量 const.DirectionToVec = { [d.S]={0, -1}, [d.WS]={-1, -1}, [d.W]={-1, 0}, [d.NW]={-1, 1}, [d.N]={0, 1}, [d.NE]={1, 1}, [d.E]={1, 0}, [d.ES]={1, -1}} -- 动画状态(sprite) const.Status = {idle=0, run=1, attack=2, hurt=3, dying=4, die=5} -- 控制类型 const.ControlType = {Keyboard=0, Click=1} -- 生命状态(model) const.LifeState = {Alive=0, Protected=1, Die=3} const.DEFAULT_FONT = "fonts/Marker Felt.ttf" const.BLOCK_TYPE = {BLOCK=1, NPC=2} const.RECORD_DIR = "record" const.RECORD_PATH = const.RECORD_DIR .. "/record.json" const.DEFAULT_RECORD = "res/default_record.json" const.DISPLAY_PRIORITY = {UI=80, Conversation=70, Shop=64, JumpWord=30, Sky=20, Hero=10, NPC=8, Monster=6, Item=4} const.GAME_STATE = {Playing=0, Shopping=1, Talking=2} const.ITEM_TYPE = {Undefined=0, Atk=1, Def=2, Hp=3, Critial=4, Block=5, Coin=6, Special=7} const.TILEMAP_TYPE = {Transfer=1, Hero=2, NPC=3, Item=4, Monster=5} const.ENTITY_TYPE = {Hero=1, NPC=2, Monster=3} const.SHOP_TYPE = {CoinShop=1, ExpShop=2} const.HERO_ID = 1000 const.COST_TYPE = {Coin=1, Exp=2} const.GOODS_FUNC = {Level=0, Atk=1, Def=2, Hp=3} const.HEAD_ICON_PLIST = 'headIcon.plist' const.MUSIC_ROOT = 'music/' const.EFFECT_ROOT = 'effect/' const.EFFECT_POSIX = '.wav' const.MAP_ROOT = 'map/' const.ITEM_OBTAIN_EFFECT_PATH = const.EFFECT_ROOT .. 'obtain_item.wav' const.NEIDAN_ID = 1020 return const
-- ===== ===== ===== ===== ===== -- Copyright (c) 2017 Lukas Grünwald -- License MIT License -- ===== ===== ===== ===== ===== --- {library} This library contains all usable object types in the game. -- The way it is set up, it supports multiple affiliations for one single object type by adding factions to the Factions sub-table. local StaticObjectDefinitionsUpgrades = { } return StaticObjectDefinitionsUpgrades
local utilities = require "scripts/common/utilities" local aispawntrigger = { Properties = { AISpawnGroup = { default = "", description = "The spawn group to be triggered when the player enters the trigger." }, Switch = { On = { default = "", description = "The event name when switched on." }, Off = { default = "", description = "The event name when switched off." }, }, }, } function aispawntrigger:OnActivate() self.triggerHandler = TriggerAreaNotificationBus.Connect(self, self.entityId); self.enteredAreaId = GameplayNotificationId(EntityId(), "EnteredAITrigger", "float"); self.exitedAreaId = GameplayNotificationId(EntityId(),"ExitedAITrigger", "float"); -- Initialise the values with defaults first and then set them up for listening, if necessary. self.switchedOn = true; self.switchedOnEventId = nil; self.switchedOnHandler = nil; self.switchedOffEventId = nil; self.switchedOffHandler = nil; local validOn = self:IsValidString(self.Properties.Switch.On); local validOff = self:IsValidString(self.Properties.Switch.Off); if (validOn and validOff) then self.switchedOn = false; self.switchedOnEventId = GameplayNotificationId(self.entityId, self.Properties.Switch.On, "float"); self.switchedOnHandler = GameplayNotificationBus.Connect(self, self.switchedOnEventId); self.switchedOffEventId = GameplayNotificationId(self.entityId, self.Properties.Switch.Off, "float"); self.switchedOffHandler = GameplayNotificationBus.Connect(self, self.switchedOffEventId); elseif (validOn or validOff) then -- Output a warning that something was set but it'll be ignored. Debug.Log("[LuaWarning] AISpawnTrigger '" .. tostring(StarterGameUtility.GetEntityName(self.entityId)) .. "': one of the switches has an event name but the other doesn't. The switch will not be active."); end end function aispawntrigger:OnDeactivate() if (self.switchedOffHandler ~= nil) then self.switchedOffHandler:Disconnect(); self.switchedOffHandler = nil; end if (self.switchedOnHandler ~= nil) then self.switchedOnHandler:Disconnect(); self.switchedOnHandler = nil; end if (self.triggerHandler ~= nil) then self.triggerHandler:Disconnect(); self.triggerHandler = nil; end end function aispawntrigger:IsValidString(str) return str ~= "" and str ~= nil; end function aispawntrigger:OnTriggerAreaEntered(entityId) if (not utilities.GetDebugManagerBool("PreventAIDisabling", false) and self.switchedOn) then GameplayNotificationBus.Event.OnEventBegin(self.enteredAreaId, self.Properties.AISpawnGroup); end end function aispawntrigger:OnTriggerAreaExited(entityId) if (not utilities.GetDebugManagerBool("PreventAIDisabling", false)) then GameplayNotificationBus.Event.OnEventBegin(self.exitedAreaId, self.Properties.AISpawnGroup); end end function aispawntrigger:OnEventBegin(value) if (self.switchedOnEventId ~= nil and self.switchedOffEventId ~= nil) then if (GameplayNotificationBus.GetCurrentBusId() == self.switchedOnEventId) then self.switchedOn = true; elseif (GameplayNotificationBus.GetCurrentBusId() == self.switchedOffEventId) then self.switchedOn = false; -- Just in case the A.I. are currently active and the switch has been disabled. self:OnTriggerAreaExited(nil); end end end return aispawntrigger;
local M = {} function M.init() vim.cmd([[ Guifont! MeiryoKe_Gothic:h14 GuiTabline 0 GuiPopupmenu 0 ]]) vim.fn.GuiWindowMaximized(1) vim.keymap.set("n", "<Space>R", function() vim.fn.jobstart("nvim-qt.exe", { detach = true }) vim.cmd([[quitall]]) end) return nil end return M
--[[ Math functions Author: Ragnarok.Lorand ]] local lor_math = {} lor_math._author = 'Ragnarok.Lorand' lor_math._version = '2016.06.28' require('lor/lor_utils') _libs.req('maths') _libs.lor.math = lor_math --[[ Rounds a float to the given number of decimal places. Note: math.round is only for rounding to the nearest integer --]] function roundf(num, dec_places) local mult = 10^(dec_places or 0) return math.floor(num * mult + 0.5) / mult end function roundup(num) local n = math.floor(num) if n == num then return n end return n + 1 end return lor_math ----------------------------------------------------------------------------------------------------------- --[[ Copyright © 2016, Ragnarok.Lorand All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of libs/lor nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Lorand BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --]] -----------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md -- -- Description: Check app is activated into FULL level in case if user taps on a soft button -- in the widget with .systemAction = STEAL_FOCUS -- -- Precondition: -- 1) SDL and HMI are started -- 2) App is registered -- 3) App successfully created a widget -- 4) Widget is activated in the HMI -- 5) App send Show(with WindowID for widget window) request to SDL -- Steps: -- 1) HMI sends two OnButtonEvent and OnButtonPress notifications for "STEAL_FOCUS" button -- 2) HMI sends BC.OnAppActivated notification with the main's window ID to SDL -- SDL does: -- send OnHMIStatus notification for the main window (hmiLevel: FULL) to app -- 3) App changes HMI level from FULL to LIMITED -- 4) HMI sends two OnButtonEvent and OnButtonPress notifications for "STEAL_FOCUS" button -- 5) HMI sends BC.OnAppActivated notification with the main's window ID to SDL -- SDL does: -- send OnHMIStatus notification for the main window (hmiLevel: FULL) to app --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local common = require('test_scripts/WidgetSupport/common') --[[ Local Variables ]] local params = { windowID = 3, windowName = "Widget", type = "WIDGET" } local pMainId = 0 function common.getShowParams() return { requestShowParams = { windowID = params.windowID, softButtons = { { type = "TEXT", text = config.application1.registerAppInterfaceParams.appName, softButtonID = 5, systemAction = "STEAL_FOCUS" } } }, requestShowUiParams = { windowID = params.windowID, softButtons = { { type = "TEXT", text = config.application1.registerAppInterfaceParams.appName, softButtonID = 5, systemAction = "STEAL_FOCUS" } } } } end local function buttonPress(pAppId) common.getHMIConnection():SendNotification("Buttons.OnButtonEvent", { name = "CUSTOM_BUTTON", mode = "BUTTONDOWN", appID = common.getHMIAppId(pAppId) }, { name = "CUSTOM_BUTTON", mode = "BUTTONUP", appID = common.getHMIAppId(pAppId) }) common.getHMIConnection():SendNotification("Buttons.OnButtonPress", { name = "CUSTOM_BUTTON", mode = "SHORT", appID = common.getHMIAppId(pAppId) }) end local function activateAppViaStealFocusButton_NONE_FULL(pAppId) if not pAppId then pAppId = 1 end buttonPress(pAppId) local requestId = common.getHMIConnection():SendRequest("SDL.ActivateApp", { appID = common.getHMIAppId(pAppId) }) common.getHMIConnection():ExpectResponse(requestId) common.getMobileSession(pAppId):ExpectNotification("OnHMIStatus", { hmiLevel = "FULL", windowID = pMainId }, { hmiLevel = "FULL", windowID = params.windowID }) -- is sent for widget window since Audio/Video state has changed :Times(2) common.wait() end local function activateAppViaStealFocusButton_LIMITED_FULL(pAppId) if not pAppId then pAppId = 1 end buttonPress(pAppId) local requestId = common.getHMIConnection():SendRequest("SDL.ActivateApp", { appID = common.getHMIAppId(pAppId) }) common.getHMIConnection():ExpectResponse(requestId) common.getMobileSession(pAppId):ExpectNotification("OnHMIStatus", { hmiLevel = "FULL", windowID = pMainId }) common.wait() end local function deactivateApp_FULL_LIMITED(pAppId) if not pAppId then pAppId = 1 end common.getHMIConnection():SendNotification("BasicCommunication.OnAppDeactivated", { appID = common.getHMIAppId(pAppId), windowID = pMainId }) common.getMobileSession(pAppId):ExpectNotification("OnHMIStatus", { hmiLevel = "LIMITED", windowID = pMainId }) common.wait() end --[[ Scenario ]] common.Title("Preconditions") common.Step("Clean environment and Back-up/update PPT", common.precondition) common.Step("Start SDL, init HMI", common.start) common.Step("Register App", common.registerAppWOPTU) common.Step("Success create Widget window", common.createWindow, { params }) common.Step("Widget is activated", common.activateWidgetFromNoneToFULL, { params.windowID, 1 }) common.Step("App sends Show RPC to widget window", common.sendShowToWindow, { params.windowID }) common.Title("Test") common.Step("App activation from NONE to FULL via STEAL_FOCUS button", activateAppViaStealFocusButton_NONE_FULL) common.Step("App deactivate from FULL to LIMITED", deactivateApp_FULL_LIMITED) common.Step("App activation from LIMITED to FULL via STEAL_FOCUS button", activateAppViaStealFocusButton_LIMITED_FULL) common.Title("Postconditions") common.Step("Stop SDL, restore SDL settings and PPT", common.postcondition)
data.raw.recipe["sniper-rifle-magazine"].ingredients = { {"steel-plate", 5}, {"copper-plate", 20}, {"iron-plate", 5} } data.raw.recipe["basic-launched-grenade"].ingredients = { {"iron-plate", 5}, {"explosives", 4} } data.raw.recipe["he-launched-grenade"].ingredients = { {"iron-plate", 10}, {"explosives", 8} } data.raw.recipe["poison-launched-grenade"].ingredients = { {"steel-plate", 3}, {"electronic-circuit", 3}, {"explosives", 4} } data.raw.technology["adv-weapon-1"].upgrade = true data.raw.technology["adv-weapon-2"].upgrade = true data.raw.technology["adv-weapon-3"].upgrade = true data.raw.technology["adv-weapon-4"].upgrade = true data.raw.technology["adv-weapon-5"].upgrade = true data.raw.technology["laser-damage-1"].upgrade = true data.raw.technology["laser-damage-2"].upgrade = true data.raw.technology["laser-damage-3"].upgrade = true data.raw.technology["laser-damage-4"].upgrade = true data.raw.technology["laser-damage-5"].upgrade = true data.raw.technology["laser-speed-1"].upgrade = true data.raw.technology["laser-speed-2"].upgrade = true data.raw.technology["laser-speed-3"].upgrade = true data.raw.technology["laser-speed-4"].upgrade = true data.raw.technology["laser-speed-5"].upgrade = true data.raw.technology["launcher-weapon-damage-1"].upgrade = true data.raw.technology["launcher-weapon-damage-2"].upgrade = true data.raw.technology["launcher-weapon-damage-3"].upgrade = true data.raw.technology["launcher-weapon-damage-4"].upgrade = true data.raw.technology["launcher-weapon-damage-5"].upgrade = true data.raw.technology["launcher-weapon-speed-1"].upgrade = true data.raw.technology["launcher-weapon-speed-2"].upgrade = true data.raw.technology["launcher-weapon-speed-3"].upgrade = true data.raw.technology["launcher-weapon-speed-4"].upgrade = true data.raw.technology["launcher-weapon-speed-5"].upgrade = true
--[[ NAME_PLATE_UNIT_ADDED 1. For players: Player-[server ID]-[player UID] (Example: "Player-970-0002FD64") 2. For creatures, pets, objects, and vehicles: [Unit type]-0-[server ID]-[instance ID]-[zone UID]-[ID]-[spawn UID] (Example: "Creature-0-970-0-11-31146-000136DF91") Unit Type Names: "Creature", "Pet", "GameObject", "Vehicle", and "Vignette" 3. For items: Item-[server ID]-0-[spawn UID] (Example: "Item-970-0-400000076620BFF4") ]] function(table,event,namespace) local guid, name = UnitGUID(namespace), UnitName(namespace) local type, zero, server_id, instance_id, zone_uid, npc_id, spawn_uid = strsplit("-",guid); if type == "Creature" and name == "阿克图瑞斯" then print(date(),name,guid) end end --[[ COMBAT_LOG_EVENT ]] function(event,...) end function(event, ...) function parse(guid,name) local type, zero, server_id, instance_id, zone_uid, npc_id, spawn_uid = strsplit("-",guid); if type == "Creature" and name == "阿克图瑞斯" then return true else return false end end local timestamp, subevent, _, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags = ... if parse(sourceGUID,sourceName) or parse(destGUID,destName) then print(...) end end
local HttpEnv = require "arken.net.HttpEnv" local HttpRequest = require "arken.net.HttpRequest" local test = {} test.should_return_table_from_params_by_get = function() local env = {} env.requestMethod = function() return "GET" end env.queryString = function() return "val1=123&val2=strval" end env.field = function(val) return '' end local request = HttpRequest.new{ _env = env } local params = request:params(true) assert( type(params) == 'table', type(params) ) assert(params.val1 == '123', params.val1) assert(params.val2 == 'strval', params.val2) end test.should_return_table_from_params_by_post = function() local env = {} env.requestMethod = function() return "POST" end env.headerDone= function() return "val1=444&val2=555" end env.field = function(val) return '' end local request = HttpRequest.new{ _env = env } local params = request:params(true) assert(params.val1 == '444', params.val1) assert(params.val2 == '555', params.val2) end test.should_return_table_from_params_by_multipart = function() local header = os.read(ARKEN_PATH .. '/tests/arken/net/HttpEnv/example-2.txt') local env = HttpEnv.new(header) local request = HttpRequest.new{ _env = env } local params = request:params(true) assert(params.id == '12.341.234', params.id) end return test
local addon, L = ... local aboutConfig = CreateFrame("FRAME", "MountsJournalConfigAbout", InterfaceOptionsFramePanelContainer) aboutConfig:Hide() aboutConfig.name = L["About"] aboutConfig.parent = addon aboutConfig:SetScript("OnShow", function(self) self:SetScript("OnShow", function(self) self.model:PlayAnimKit(1371) end) self.model = CreateFrame("PlayerModel", nil, self) self.model:SetSize(220, 220) self.model:SetPoint("TOPLEFT", 25, 20) self.model:SetDisplayInfo(55907) self.model:SetRotation(.4) self.model:PlayAnimKit(1371) -- ADDON NAME local addonName = self:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge") addonName:SetPoint("TOP", 0, -48) addonName:SetText(addon) -- AUTHOR local author = self:CreateFontString(nil, "ARTWORK", "GameFontNormal") author:SetPoint("TOPRIGHT", addonName, "BOTTOM", -2, -48) author:SetText(L["author"]) local authorName = self:CreateFontString(nil, "ARTWORK", "GameFontHighlight") authorName:SetPoint("LEFT", author, "RIGHT", 4, 0) authorName:SetText(GetAddOnMetadata(addon, "Author")) -- VERSION local versionText = self:CreateFontString(nil, "ARTWORK", "GameFontNormal") versionText:SetPoint("TOPRIGHT", author, "BOTTOMRIGHT", 0, -8) versionText:SetText(GAME_VERSION_LABEL) local version = self:CreateFontString(nil, "ARTWORK", "GameFontHighlight") version:SetPoint("LEFT", versionText, "RIGHT", 4, 0) version:SetText(GetAddOnMetadata(addon, "Version")) -- HELP TRANSLATION local helpText = self:CreateFontString(nil, "ARTWORK", "GameFontNormal") helpText:SetPoint("TOP", version, "BOTTOM", 0, -48) helpText:SetPoint("LEFT", 32, 0) helpText:SetText(L["Help with translation of %s. Thanks."]:format(addon)) local link = "https://www.curseforge.com/wow/addons/mountsjournal/localization" local editbox = CreateFrame("Editbox", nil, self) editbox:SetAutoFocus(false) editbox:SetAltArrowKeyMode(true) editbox:SetFontObject("GameFontHighlight") editbox:SetSize(500, 20) editbox:SetPoint("TOPLEFT", helpText, "BOTTOMLEFT", 8, 0) editbox:SetText(link) editbox:SetCursorPosition(0) editbox:SetScript("OnEditFocusGained", function(self) self:HighlightText() end) editbox:SetScript("OnEditFocusLost", function(self) self:HighlightText(0, 0) end) editbox:SetScript("OnEscapePressed", function(self) self:ClearFocus() end) editbox:SetScript("OnTextChanged", function(self, userInput) if userInput then self:SetText(link) self:HighlightText() end end) -- TRANSLATORS local translators = self:CreateFontString(nil, "ARTWORK", "GameFontNormal") translators:SetPoint("TOPLEFT", helpText, "BOTTOMLEFT", 0, -80) translators:SetText(L["Localization Translators:"]) local langs, last = { {"deDE", "Flammenengel92, Asraael"}, {"zhTW", "BNS333"}, {"frFR", "Asraael"}, } for _, l in ipairs(langs) do local sl = self:CreateFontString(nil, "ARTWORK", "GameFontHighlight") if last then sl:SetPoint("TOPRIGHT", last, "BOTTOMLEFT", -5, -10) else sl:SetPoint("TOP", translators, "BOTTOM", 0, -16) sl:SetPoint("RIGHT", self, "LEFT", 136, 0) end sl:SetJustifyH("RIGHT") sl:SetText("|cff82c5ff"..l[1]..":|r") local st = self:CreateFontString(nil, "ARTWORK", "GameFontHighlight") st:SetPoint("LEFT", sl, "RIGHT", 5, 0) st:SetPoint("RIGHT", -96, 0) st:SetJustifyH("LEFT") st:SetText("|cffffff9a"..l[2].."|r") last = st end end) InterfaceOptions_AddCategory(aboutConfig)
function convert._from_human_to_time(str) return atom.time:load(str) end
include("shared.lua") ENT.RenderGroup = RENDERGROUP_TRANSLUCENT surface.CreateFont("font_news", { font = "Arial", size = 48, weight = 600 }) surface.CreateFont("font_rules", { font = "Arial", size = 54, weight = 600 }) local newsTexture = surface.GetTextureID("skeyler/graphics/info_news") local rulesTexture = surface.GetTextureID("skeyler/graphics/info_rules") local info = {news = "", rules = ""} --[[ local function newsToStr( news ) local str = "" for k,v in pairs( news ) do str=str..v end str = str:gsub( "\t", "" ) str = str:gsub( "\n", "" ) str = str:gsub( "\r", "" ) str = str:gsub( " ", "" ) return str end function ENT:RetrieveData() http.Fetch("http://sassilization.com/bulletin/news.txt", function(body, length, headers, code) surface.SetFont("font_news") local strings = {} for k, str in pairs( string.Explode("\n", body)) do WrapString(strings, str, 990) end info.news = strings local news = newsToStr(strings) if(file.Exists( "lounge/news.txt", "DATA") and news == file.Read("lounge/news.txt", "DATA")) then return end saveNews(news) --local ed = EffectData() --ed:SetOrigin( self:GetPos() + self:GetUp() * 42 ) --util.Effect("bubble_news", ed) end, function(code) info.news = {"No News!"} end) -- The timer has to be here or gmod will crash because WrapString. timer.Simple(2,function() http.Fetch("http://sassilization.com/bulletin/rules.txt", function(body, length, headers, code) surface.SetFont("font_rules") local strings = {} for k, str in pairs(string.Explode("\n", body)) do WrapString(strings, str, 990) end info.rules = strings end, function(code) info.rules = {"No Rules!"} end) end) end ]] --------------------------------------------------------- -- --------------------------------------------------------- function ENT:Initialize() self.width = 64 self.height = 64 local angles = self:GetAngles() local position = self:GetPos() self.newsAngle = Angle(0, angles.y +90, angles.p +90) self.newsPosition = position +self:GetForward() *0.1 +self:GetRight() *32 +self:GetUp() *32 self.rulesAngle = Angle(0, angles.y -90, angles.p +90) self.rulesPosition = position+ self:GetForward() *-0.1 -self:GetRight() *32 +self:GetUp() *32 -- http.Fetch("http://skeyler.com/blog.php", function(body, length, headers, code) -- end) end --------------------------------------------------------- -- --------------------------------------------------------- function ENT:Draw() local dot = self:GetForward():Dot((self:GetPos() -EyePos()):GetNormal()) if (!self.setup) then local boundsMin, boundsMax = self:WorldToLocal(self.newsPosition), self:WorldToLocal(self.rulesPosition + self.newsAngle:Right()*(self.height)) self:SetRenderBounds(boundsMin, boundsMax) self.setup = true end if (dot <= 0) then cam.Start3D2D(self.newsPosition, self.newsAngle, 0.05) draw.Texture(0, 0, 1280, 1280, color_white, newsTexture) if info.news then draw.DrawText(info.news, "font_news", 195, 360, Color(0,0,0,255), TEXT_ALIGN_LEFT) end cam.End3D2D() else cam.Start3D2D(self.rulesPosition, self.rulesAngle, 0.05) draw.Texture(0, 0, 1280, 1280, color_white, rulesTexture) if info.rules then draw.DrawText(info.rules, "font_rules", 195, 360, Color(0,0,0,255), TEXT_ALIGN_LEFT) end cam.End3D2D() end end local NewsMenu = {} function NewsMenu.Open(news, rules) if NewsMenu.DermaFrame then NewsMenu.Close() end NewsMenu.DermaFrame = vgui.Create( "DFrame" ) NewsMenu.DermaFrame:SetSize( ScrW()*0.4, ScrH()*0.5 ) NewsMenu.DermaFrame:Center() NewsMenu.DermaFrame:SetVisible( true ) NewsMenu.DermaFrame:MakePopup() NewsMenu.DermaFrame:SetDraggable( false ) NewsMenu.DermaFrame:ShowCloseButton( true ) NewsMenu.DermaFrame:SetTitle("THERE'S NO WORD WRAP, BE CAREFUL ABOUT HOW LONG EACH LINE IS") local TextEntry = vgui.Create( "DTextEntry", NewsMenu.DermaFrame ) -- create the form as a child of frame TextEntry:SetPos( NewsMenu.DermaFrame:GetWide()*0.025, NewsMenu.DermaFrame:GetTall()*0.1 ) TextEntry:SetSize( NewsMenu.DermaFrame:GetWide()*0.45, NewsMenu.DermaFrame:GetTall()*0.7 ) TextEntry:SetText( info.news ) TextEntry:SetMultiline(true) TextEntry.OnEnter = function( self ) TextEntry:SetText( self:GetValue() ) -- print the form's text as server text end local TextEntry2 = vgui.Create( "DTextEntry", NewsMenu.DermaFrame ) -- create the form as a child of frame TextEntry2:SetPos( NewsMenu.DermaFrame:GetWide()*0.525, NewsMenu.DermaFrame:GetTall()*0.1 ) TextEntry2:SetSize( NewsMenu.DermaFrame:GetWide()*0.45, NewsMenu.DermaFrame:GetTall()*0.7 ) TextEntry2:SetText( info.rules ) TextEntry2:SetMultiline(true) local button = vgui.Create( "DButton", NewsMenu.DermaFrame ) button:SetSize( NewsMenu.DermaFrame:GetWide()*0.45, NewsMenu.DermaFrame:GetTall()*0.1 ) button:SetPos( NewsMenu.DermaFrame:GetWide()*0.025, NewsMenu.DermaFrame:GetTall()*0.85 ) button:SetText( "Save News" ) button:SetToolTip( "Saves the current text to the server." ) button.DoClick = function( button ) net.Start( "updateNews" ) net.WriteString("news") net.WriteString(TextEntry:GetValue()) net.SendToServer() end local button = vgui.Create( "DButton", NewsMenu.DermaFrame ) button:SetSize( NewsMenu.DermaFrame:GetWide()*0.45, NewsMenu.DermaFrame:GetTall()*0.1 ) button:SetPos( NewsMenu.DermaFrame:GetWide()*0.525, NewsMenu.DermaFrame:GetTall()*0.85 ) button:SetText( "Save Rules" ) button:SetToolTip( "Saves the current text to the server." ) button.DoClick = function( button ) net.Start( "updateNews" ) net.WriteString("rules") net.WriteString(TextEntry2:GetValue()) net.SendToServer() end end function NewsMenu.Close() NewsMenu.DermaFrame:Remove() end net.Receive("rulesNewsEdit", function(len) NewsMenu.Open() end) net.Receive("setNewsRules", function(len) local news = net.ReadString() local rules = net.ReadString() info.news = news info.rules = rules end)
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' ui_page "nui/index.html" client_scripts { "@vrp/lib/utils.lua", "client.lua" } server_scripts { "@vrp/lib/utils.lua", "server.lua" } files { "nui/css.css", "nui/jquery.js", "nui/index.html", "nui/inicio.html", "nui/vestuario.html", "nui/bebidas.html", "nui/comidas.html", "nui/images/background.png" }
local function view_quote(str) return ("\"" .. str:gsub("\"", "\\\"") .. "\"") end local short_control_char_escapes = {["\11"] = "\\v", ["\12"] = "\\f", ["\13"] = "\\r", ["\7"] = "\\a", ["\8"] = "\\b", ["\9"] = "\\t", ["\n"] = "\\n"} local long_control_char_escapes = nil do local long = {} for i = 0, 31 do local ch = string.char(i) if not short_control_char_escapes[ch] then short_control_char_escapes[ch] = ("\\" .. i) long[ch] = ("\\%03d"):format(i) end end long_control_char_escapes = long end local function escape(str) local str0 = str:gsub("\\", "\\\\") local str1 = str0:gsub("(%c)%f[0-9]", long_control_char_escapes) return str1:gsub("%c", short_control_char_escapes) end local function sequence_key_3f(k, len) return ((type(k) == "number") and (1 <= k) and (k <= len) and (math.floor(k) == k)) end local type_order = {["function"] = 5, boolean = 2, number = 1, string = 3, table = 4, thread = 7, userdata = 6} local function sort_keys(a, b) local ta = type(a) local tb = type(b) if ((ta == tb) and (ta ~= "boolean") and ((ta == "string") or (ta == "number"))) then return (a < b) else local dta = type_order[a] local dtb = type_order[b] if (dta and dtb) then return (dta < dtb) elseif dta then return true elseif dtb then return false elseif "else" then return (ta < tb) end end end local function get_sequence_length(t) local len = 1 for i in ipairs(t) do len = i end return len end local function get_nonsequential_keys(t) local keys = {} local sequence_length = get_sequence_length(t) for k in pairs(t) do if not sequence_key_3f(k, sequence_length) then table.insert(keys, k) end end table.sort(keys, sort_keys) return keys, sequence_length end local function count_table_appearances(t, appearances) if (type(t) == "table") then if not appearances[t] then appearances[t] = 1 for k, v in pairs(t) do count_table_appearances(k, appearances) count_table_appearances(v, appearances) end end else if (t and (t == t)) then appearances[t] = ((appearances[t] or 0) + 1) end end return appearances end local put_value = nil local function puts(self, ...) for _, v in ipairs({...}) do table.insert(self.buffer, v) end return nil end local function tabify(self) return puts(self, "\n", (self.indent):rep(self.level)) end local function already_visited_3f(self, v) return (self.ids[v] ~= nil) end local function get_id(self, v) local id = self.ids[v] if not id then local tv = type(v) id = ((self["max-ids"][tv] or 0) + 1) self["max-ids"][tv] = id self.ids[v] = id end return tostring(id) end local function put_sequential_table(self, t, len) puts(self, "[") self.level = (self.level + 1) for i = 1, len do local _0_ = (1 + len) if ((1 < i) and (i < _0_)) then puts(self, " ") end put_value(self, t[i]) end self.level = (self.level - 1) return puts(self, "]") end local function put_key(self, k) if ((type(k) == "string") and k:find("^[-%w?\\^_!$%&*+./@:|<=>]+$")) then return puts(self, ":", k) else return put_value(self, k) end end local function put_kv_table(self, t, ordered_keys) puts(self, "{") self.level = (self.level + 1) for _, k in ipairs(ordered_keys) do tabify(self) put_key(self, k) puts(self, " ") put_value(self, t[k]) end for i, v in ipairs(t) do tabify(self) put_key(self, i) puts(self, " ") put_value(self, v) end self.level = (self.level - 1) tabify(self) return puts(self, "}") end local function put_table(self, t) local metamethod = nil local function _1_() local _0_0 = t if _0_0 then local _2_0 = getmetatable(_0_0) if _2_0 then return _2_0.__fennelview else return _2_0 end else return _0_0 end end metamethod = (self["metamethod?"] and _1_()) if (already_visited_3f(self, t) and self["detect-cycles?"]) then return puts(self, "#<table ", get_id(self, t), ">") elseif (self.level >= self.depth) then return puts(self, "{...}") elseif metamethod then return puts(self, metamethod(t, self.fennelview)) elseif "else" then local non_seq_keys, len = get_nonsequential_keys(t) local id = get_id(self, t) if ((1 < (self.appearances[t] or 0)) and self["detect-cycles?"]) then return puts(self, "#<table", id, ">") elseif ((#non_seq_keys == 0) and (#t == 0)) then return puts(self, "{}") elseif (#non_seq_keys == 0) then return put_sequential_table(self, t, len) elseif "else" then return put_kv_table(self, t, non_seq_keys) end end end local function _0_(self, v) local tv = type(v) if (tv == "string") then return puts(self, view_quote(escape(v))) elseif ((tv == "number") or (tv == "boolean") or (tv == "nil")) then return puts(self, tostring(v)) elseif (tv == "table") then return put_table(self, v) elseif "else" then return puts(self, "#<", tostring(v), ">") end end put_value = _0_ local function one_line(str) local ret = str:gsub("\n", " "):gsub("%[ ", "["):gsub(" %]", "]"):gsub("%{ ", "{"):gsub(" %}", "}"):gsub("%( ", "("):gsub(" %)", ")") return ret end local function fennelview(x, options) local options0 = (options or {}) local inspector = nil local function _1_(_241) return fennelview(_241, options0) end local function _2_() if options0["one-line"] then return "" else return " " end end inspector = {["detect-cycles?"] = not (false == options0["detect-cycles?"]), ["max-ids"] = {}, ["metamethod?"] = not (false == options0["metamethod?"]), appearances = count_table_appearances(x, {}), buffer = {}, depth = (options0.depth or 128), fennelview = _1_, ids = {}, indent = (options0.indent or _2_()), level = 0} put_value(inspector, x) local str = table.concat(inspector.buffer) if options0["one-line"] then return one_line(str) else return str end end return fennelview
{ [ "Railcraft:machine.alpha" ] = "nope", [ "ProjRed|Exploration:projectred.exploration.ore" ] = "ProjRed|Core:projectred.core.part", [ "minecraft:iron_ore" ] = "minecraft:iron_ore", [ "chisel:limestone" ] = "chisel:limestone", [ "DraconicEvolution:draconiumOre" ] = "DraconicEvolution:draconiumDust", [ "minecraft:gold_ore" ] = "minecraft:gold_ore", [ "chisel:marble" ] = "chisel:marble", [ "appliedenergistics2:tile.OreQuartzCharged" ] = "appliedenergistics2:item.ItemMultiMaterial", [ "minecraft:flowing_lava" ] = "unbreakable", [ "minecraft:dirt" ] = "minecraft:dirt", [ "Botania:mushroom" ] = "Botania:mushroom", [ "BigReactors:YelloriteOre" ] = "BigReactors:YelloriteOre", [ "minecraft:flowing_water" ] = "No item", [ "appliedenergistics2:tile.OreQuartz" ] = "appliedenergistics2:item.ItemMultiMaterial", [ "minecraft:obsidian" ] = "minecraft:obsidian", [ "minecraft:torch" ] = "No touching", [ "minecraft:diamond_ore" ] = "minecraft:diamond", [ "IC2:blockOreUran" ] = "IC2:blockOreUran", [ "ThermalFoundation:Ore" ] = "ThermalFoundation:Ore", [ "chisel:granite" ] = "chisel:granite", [ "minecraft:lit_redstone_ore" ] = "minecraft:redstone", [ "minecraft:redstone_ore" ] = "minecraft:redstone", [ "TConstruct:decoration.stonetorch" ] = "TConstruct:decoration.stonetorch", [ "minecraft:lava" ] = "unbreakable", [ "harvestcraft:salt" ] = "harvestcraft:saltItem", [ "ExtraBees:hive" ] = "No item", [ "minecraft:water" ] = "No item", [ "Thaumcraft:blockCustomOre" ] = "Thaumcraft", [ "chisel:andesite" ] = "chisel:andesite", [ "chisel:diorite" ] = "chisel:diorite", [ "minecraft:stone" ] = "minecraft:cobblestone", [ "minecraft:cobblestone" ] = "minecraft:cobblestone", [ "denseores:block0" ] = "minecraft:iron_ore", [ "minecraft:gravel" ] = "minecraft:gravel", [ "TConstruct:SearedBrick" ] = "TConstruct:SearedBrick", [ "minecraft:bedrock" ] = "unbreakable", [ "minecraft:coal_ore" ] = "minecraft:coal", [ "minecraft:lapis_ore" ] = "minecraft:dye", }
net.Receive("OCRP_Loot", function() OpenLootingMenu(net.ReadTable()) end) net.Receive("OCRP_UpdateLootingTable", function() PopulateLootingInventory(net.ReadTable()) end) OCRP_LOOTINGMENU = nil function OpenLootingMenu(items) local nick = LocalPlayer():GetEyeTrace().Entity:IsPlayer() and LocalPlayer():GetEyeTrace().Entity:Nick() or "UNKNOWN" local frame = vgui.Create("OCRP_BaseMenu") frame:SetSize(825, 500) frame:Center() frame:SetOCRPTitle("Looting: " .. nick) frame:MakePopup() OCRP_LOOTINGMENU = frame surface.SetFont("Trebuchet19") local textw,texth = surface.GetTextSize("These are the items the corpse has. You may not be skilled enough to loot some of them.") local caption = vgui.Create("DPanel", frame) caption:SetSize(textw+10, texth+10) caption:SetPos(frame:GetWide()/2-caption:GetWide()/2, 10) function caption:Paint(w,h) draw.RoundedBox(8, 0, 0, w, h, Color(30,30,30,255)) draw.DrawText("These are the items the corpse has. You may not be skilled enough to loot some of them.", "Trebuchet19", 5, 5, Color(255,255,255,255), TEXT_ALIGN_LEFT) end local outline = vgui.Create("DPanel", frame) outline:SetSize(frame:GetWide()-20, frame:GetTall()-10-5-texth-25) outline:SetPos(10, 5+texth+25) function outline:Paint(w,h) draw.RoundedBox(8, 0, 0, w, h, Color(39,168,216,255)) draw.RoundedBox(8, 1, 1, w-2, h-2, Color(20,20,20,255)) end local inv = vgui.Create("DPanelList", frame) inv:SetSize(outline:GetWide()-2, outline:GetTall()-2) inv:SetPos(outline:GetPos()+1, select(2, outline:GetPos())+1) inv:EnableHorizontal(true) inv:EnableVerticalScrollbar(true) inv:SetSpacing(10) inv:SetNoSizing(true) inv:SetPadding(10) inv.VBar:SetEnabled(true) -- Shouldn't be necesarry but it seems to be to manually set scroll inv.VBar.Scroll = scroll or 0 local IPL = inv.PerformLayout function inv:PerformLayout(w,h) IPL(self,w,h) self.VBar:SetTall(self.VBar:GetTall()-10) self.VBar:SetPos(self:GetWide()-20, 5) end frame.inv = inv function inv:LayoutInfo(itemTable) if self.info and self.info:IsValid() then self.info:Remove() end local info = vgui.Create("OCRP_BaseMenu") info:SetSize(200, 400) info:SetPos(frame:GetPos()+frame:GetWide()+20, select(2, frame:GetPos())) info:AllowCloseButton(false) info:MakePopup() self.info = info surface.SetFont("Trebuchet19") local namew,nameh = surface.GetTextSize(itemTable.Name) local itemName = vgui.Create("DPanel", info) itemName:SetSize(namew, nameh+5) itemName:SetPos(info:GetWide()/2-itemName:GetWide()/2, 10) function itemName:Paint(w,h) draw.DrawText(itemTable.Name, "Trebuchet19", 0, 0, Color(39,168,216,255)) draw.RoundedBox(0, 0, nameh+2, w, 1, Color(39,168,216,255)) end local words2 = {} local desc1 = itemTable.Desc surface.SetFont("UiBold") if surface.GetTextSize(desc1) > info:GetWide()-40 then local desired = surface.GetTextSize(desc1)/2 local words = string.Split(itemTable.Desc, " ") desc1 = "" surface.SetFont("UiBold") local i = 1 while words[i] and surface.GetTextSize(desc1 .. words[i]) <= desired do desc1 = desc1 .. words[i] .. " " i = i + 1 end desc1 = string.TrimRight(desc1) for ii=i,table.Count(words) do table.insert(words2, words[ii]) end -- One line is gonna be bigger, lets make sure it's the top if surface.GetTextSize(string.Implode(" ", words2)) > surface.GetTextSize(desc1) then desc1 = desc1 .. " " .. words2[1] table.remove(words2, 1) end end local desc = vgui.Create("DLabel", info) desc:SetText(desc1) desc:SetFont("UiBold") desc:SizeToContents() desc:SetPos(info:GetWide()/2-desc:GetWide()/2, select(2, itemName:GetPos())+nameh+15) local descBottom = select(2, desc:GetPos()) if desc1 ~= itemTable.Desc then -- we had to cut into 2 lines local desc2 = string.Implode(" ", words2) local descLabel2 = vgui.Create("DLabel", info) descLabel2:SetText(desc2) descLabel2:SetFont("UiBold") descLabel2:SizeToContents() descLabel2:SetPos(info:GetWide()/2-descLabel2:GetWide()/2, select(2, desc:GetPos())+draw.GetFontHeight("UiBold")+5) descBottom = select(2, descLabel2:GetPos()) info:SetSize(200, 420) end local weight = vgui.Create("DLabel", info) weight:SetText("Weighs: " .. tostring(itemTable.Weight) .. " each") weight:SetFont("UiBold") weight:SetTextColor(Color(39,168,216,255)) weight:SizeToContents() weight:SetText("Weighs: ") -- Size based on above but display this. Allows us to break it into two colors weight:SetPos(info:GetWide()/2-weight:GetWide()/2, descBottom+25) local wval = vgui.Create("DLabel", info) wval:SetText(tostring(itemTable.Weight) .. " each") wval:SetFont("UiBold") wval:SetTextColor(Color(255,255,255,255)) wval:SizeToContents() wval:SetPos(weight:GetPos()+45, select(2, weight:GetPos())) local max = vgui.Create("DLabel", info) max:SetText("Max Amount: " .. tostring(itemTable.Max or "unlimited")) max:SetFont("UiBold") max:SetTextColor(Color(39,168,216,255)) max:SizeToContents() max:SetText("Max Amount: ") max:SetPos(info:GetWide()/2-max:GetWide()/2, select(2, weight:GetPos())+25) local mval = vgui.Create("DLabel", info) mval:SetText(tostring(itemTable.Max or "unlimited")) mval:SetFont("UiBold") mval:SetTextColor(Color(255,255,255,255)) mval:SizeToContents() mval:SetPos(max:GetPos()+70, select(2, max:GetPos())) info:SetSize(200, select(2, max:GetPos())+30) end PopulateLootingInventory(items) local OR = frame.OnRemove function frame:OnRemove() OR(self) if self.info and self.info:IsValid() then self.info:Remove() end end end function PopulateLootingInventory(items) if not OCRP_LOOTINGMENU or not OCRP_LOOTINGMENU:IsValid() then return end local frame = OCRP_LOOTINGMENU local inv = OCRP_LOOTINGMENU.inv inv:Clear() for item,amt in pairs(items or {}) do if item == "WeightData" then continue end local itemTable = GAMEMODE.OCRP_Items[item] if not itemTable then continue end if amt == 0 then continue end local itemPanel = vgui.Create("DPanel") itemPanel:SetSize(100, 135) itemPanel.amt = amt or 1 local name = GAMEMODE.OCRP_Items[item].Name function itemPanel:Paint(w,h) draw.RoundedBox(8, 0, 0, w, h, Color(0,0,0,255)) draw.DrawText(name, "UiBold", w/2, 5, Color(255,255,255,255), TEXT_ALIGN_CENTER) if itemPanel.amt > 1 then draw.DrawText("x" .. itemPanel.amt, "UiBold", w/2, 15, Color(255,255,255,255), TEXT_ALIGN_CENTER) end end function itemPanel:OnCursorEntered() inv:LayoutInfo(GAMEMODE.OCRP_Items[item]) end function itemPanel:OnCursorExited() if inv.info and inv.info:IsValid() then inv.info:Remove() end end local itemMdlPanel = vgui.Create("DModelPanel", itemPanel) itemMdlPanel:SetSize(80, 80) itemMdlPanel:SetPos(5, 30) itemMdlPanel:SetModel(GAMEMODE.OCRP_Items[item].Model) itemMdlPanel:SetCursor("arrow") if itemTable.Angle then itemMdlPanel:GetEntity():SetAngles(itemTable.Angle) end if itemTable.Material then itemMdlPanel:GetEntity():SetMaterial(itemTable.Material) end if itemTable.MdlColor then itemMdlPanel:SetColor(itemTable.MdlColor) end itemMdlPanel.OnCursorEntered = itemPanel.OnCursorEntered itemMdlPanel.OnCursorExited = itemPanel.OnCursorExited if itemTable.Angle then itemMdlPanel:GetEntity():SetAngles(itemTable.Angle) end if itemTable.Material then itemMdlPanel:GetEntity():SetMaterial(itemTable.Material) end FocusModelPanel(itemMdlPanel) local canloot = GAMEMODE.OCRP_Items[item].LootData and CL_HasSkill("skill_loot",GAMEMODE.OCRP_Items[item].LootData.Level) or false if canloot then local loot = vgui.Create("OCRP_BaseButton", itemPanel) loot:SetSize(90, 15) loot:SetPos(5, 115) loot:SetText("Loot") function loot:DoClick() StartLootingBar(item, GAMEMODE.OCRP_Items[item].LootData.Time or 2) end else local cantloot = vgui.Create("DLabel", itemPanel) cantloot:SetFont("UiBold") cantloot:SetText("Can't loot") cantloot:SizeToContents() cantloot:SetTextColor(Color(255,0,0,255)) cantloot:SetPos(itemPanel:GetWide()/2-cantloot:GetWide()/2, 115) end inv:AddItem(itemPanel) end while table.Count(inv:GetItems()) < 21 do local blank = vgui.Create("DPanel") blank:SetSize(100, 135) blank.Paint = function() end inv:AddItem(blank) end end function StartLootingBar(item, time) net.Start("OCRP_BeginLooting") net.SendToServer() OCRP_LOOTINGMENU:SetMouseInputEnabled(false) local endtime = CurTime() + time local progress = vgui.Create("DProgress") progress:SetSize(200, 40) progress:Center() progress:MakePopup() function progress:Think() local val = math.Clamp(1-(endtime-CurTime())/time, 0, 1) self:SetFraction(val) if val == 1 then net.Start("OCRP_LootItem") net.WriteString(item) net.SendToServer() self:Remove() OCRP_LOOTINGMENU:SetMouseInputEnabled(true) end end end
--[[ local accessory = { Name = "", Attachment = "BodyBackAttachment", Position = {X = 0, Y = 0, Z = 0}, Rotation = {X = 0, Y = 0, Z = 0}, Colors = { color1 = {R = 0, G = 0, B = 0}, color2 = {R = 0, G = 0, B = 0}, color3 = {R = 0, G = 0, B = 0}, } } --]] -- << Services >> -- local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") -- << Constants >> -- local CLIENT = script.Parent.Parent.Parent local MODULES = CLIENT.Parent:WaitForChild("Modules") local PLAYER = Players.LocalPlayer local GUI = PLAYER:WaitForChild("PlayerGui") local MENU = GUI:WaitForChild("AccessoriesGUI") local MAIN = MENU.Main -- << Modules >> -- local Socket = require(MODULES.socket) local Hint = require(CLIENT.UIEffects.Hint) local DataValues = require(CLIENT.DataValues) local cameraControl -- << Variables >> -- local Folder = ReplicatedStorage.Models.Accessories local AccessoryButtons = {} local currentTrophy local currentArmor ----------------- function returnButton() MENU.Enabled = false end function onAccessoryMenuOpen() if not cameraControl then cameraControl = require(script.CameraController) end if MENU.Enabled then local character = DataValues.CharInfo for _, accessory in ipairs(AccessoryButtons) do accessory.MainWindow.AccessoryBlock.ViewportFrame:ClearAllChildren() local slot = character.CurrentAccessories[accessory.Name] if slot then local findObject = Folder:FindFirstChild(slot.Name) if findObject then local newObject = findObject:Clone() newObject.Parent = accessory.MainWindow.AccessoryBlock.ViewportFrame local cam = Instance.new("Camera") cam.CFrame = CFrame.new(newObject.Handle.Position - Vector3.new(2, 0, 7), newObject.Handle.Position) cam.Parent = accessory.MainWindow.AccessoryBlock.ViewportFrame accessory.MainWindow.AccessoryBlock.ViewportFrame.CurrentCamera = cam end end accessory.Visible = true end MAIN.Inventory.Visible = false cameraControl:Enable() else cameraControl:Disable() end end function onInventoryOpen() if MAIN.Inventory.Visible then for _, stuff in ipairs(MAIN.Inventory:GetChildren()) do if stuff:IsA("Frame") then stuff:Destroy() end end end end function initialize() for _, accessorySlot in ipairs(MAIN:GetChildren()) do if accessorySlot:FindFirstChild("accessory") then table.insert(AccessoryButtons, accessorySlot) accessorySlot.MainWindow.AccessoryBlock.TextButton.MouseButton1Down:Connect(function() for _, accessory in ipairs(AccessoryButtons) do accessory.Visible = false MAIN.Inventory.Visible = true local accInventory = DataValues.AccInfo.Accessories for _, acc in ipairs(accInventory) do local newBlock = MENU.Template.ItemBlock:Clone() newBlock.TextButton.MouseButton1Down:Connect(function() --- end) newBlock.Parent = MAIN.Inventory end end end) end end MENU.Enabled = false MENU:GetPropertyChangedSignal("Enabled"):Connect(onAccessoryMenuOpen) MAIN.Inventory:GetPropertyChangedSignal("Visible"):Connect(onInventoryOpen) MENU.BackButton.MouseButton1Down:Connect(returnButton) end initialize() return nil
local sql = require "sqlite3" local db = sql.open("../src/test.db") function drawer(name, ...) end
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISPanel" local FONT_HGT_SMALL = getTextManager():getFontHeight(UIFont.Small) local SBAR_WID = 17 ---@class ISSectionedPanel : ISPanel ISSectionedPanel = ISPanel:derive("ISSectionedPanel") ----- ISSectionedPanel_Section = ISPanel:derive("ISSectionedPanel_Section") local Section = ISSectionedPanel_Section function Section:createChildren() self.headerButton = ISButton:new(0, 0, self.width, FONT_HGT_SMALL, self.title, self, self.onHeaderClick) self.headerButton:setFont(UIFont.Small) self.headerButton.backgroundColor = {r=0.44, g=0.57, b=0.75, a=0.5} self.headerButton.backgroundColorMouseOver = {r=1.0, g=1.0, b=1.0, a=0.1} self.headerButton.borderColor = {r=1.0, g=1.0, b=1.0, a=0.3} self:addChild(self.headerButton) if self.panel then self.panel:setY(self.headerButton:getBottom()) self.panel:setWidth(self.width) self.panel:setVisible(self.expanded) self:addChild(self.panel) end self:calculateHeights() end function Section:onHeaderClick() self.expanded = not self.expanded self:calculateHeights() end function Section:calculateHeights() local height = self.headerButton:getHeight() if self.panel then self.panel:setVisible(self.expanded) if self.expanded then height = height + self.panel:getHeight() end end self:setHeight(height) end function Section:clear() self.enabled = false end function Section:prerender() if self.panel and self.panelHeight ~= self.panel.height then self.panelHeight = self.panel.height self:calculateHeights() end local sx,sy,sx2,sy2 = 0,0,self.width,self.height if true then sx = self.javaObject:clampToParentX(self:getAbsoluteX() + sx) - self:getAbsoluteX() sx2 = self.javaObject:clampToParentX(self:getAbsoluteX() + sx2) - self:getAbsoluteX() sy = self.javaObject:clampToParentY(self:getAbsoluteY() + sy) - self:getAbsoluteY() sy2 = self.javaObject:clampToParentY(self:getAbsoluteY() + sy2) - self:getAbsoluteY() end self:setStencilRect(sx, sy, sx2 - sx, sy2 - sy) end function Section:render() self:clearStencilRect() end function Section:new(x, y, width, height, panel, title) local o = ISPanel.new(self, x, y, width, height) o.panel = panel o.title = title and title or "???" o.enabled = true o.expanded = true return o end ----- function ISSectionedPanel:addSection(panel, title) local sbarWid = self.vscroll and SBAR_WID or 0 local section = Section:new(0, 0, self.width - sbarWid, 1, panel, title) self:addChild(section) if self:getScrollChildren() then section:setScrollWithParent(true) section:setScrollChildren(true) -- FIXME? end table.insert(self.sections, section) end function ISSectionedPanel:clear() for _,section in ipairs(self.sections) do section:clear() end end function ISSectionedPanel:prerender() local y = 0 for _,section in ipairs(self.sections) do if section.enabled then section:setVisible(true) section:setY(y) y = y + section:getHeight() else section:setVisible(false) end end if self.maintainHeight then self:setHeight(y) elseif self:getScrollChildren() then self:setScrollHeight(y) end ISPanel.prerender(self) local sx,sy,sx2,sy2 = 0,0,self.width,self.height if self.parent and self.parent:getScrollChildren() then sx = self.javaObject:clampToParentX(self:getAbsoluteX() + sx) - self:getAbsoluteX() sx2 = self.javaObject:clampToParentX(self:getAbsoluteX() + sx2) - self:getAbsoluteX() sy = self.javaObject:clampToParentY(self:getAbsoluteY() + sy) - self:getAbsoluteY() sy2 = self.javaObject:clampToParentY(self:getAbsoluteY() + sy2) - self:getAbsoluteY() end self:setStencilRect(sx, sy, sx2 - sx, sy2 - sy) end function ISSectionedPanel:render() self:clearStencilRect() ISPanel.render(self) end function ISSectionedPanel:onMouseWheel(del) for _,section in ipairs(self.sections) do if section.panel:isMouseOver() and section.panel:isVScrollBarVisible() then return false end end self:setYScroll(self:getYScroll() - (del*40)) return true end function ISSectionedPanel:new(x, y, width, height) local o = ISPanel.new(self, x, y, width, height) o.backgroundColor.a = 0.8 o.sections = {} o.maintainHeight = true return o end
local CUPON = FindMetaTable("MPCupons") or {} CUPON.__index = CUPON gpay.CUPONS = {} local default = { cupon = "null", type = "currency", data = 0, -- Data on use :D maxuses = 0, used = {}, -- steamids :D callback = function(args) gpay.Msg("Used a null CUPON!") end, -- For events :D } function CUPON:SetType(var) self.type = var or default.type return self end function CUPON:SetData(var) self.data = var or default.data return self end function CUPON:SetCallBack(var) self.callback = var or default.callback return self end function CUPON:SetMaxUses(var) self.maxuses = tonumber(var) or default.maxuses return self end --GETTING INFORMATION function CUPON:GetMaxUses() return tonumber(self.maxuses) end function CUPON:GetType() return self.type end function CUPON:GetData() return self.data end function CUPON:CallBack(args) self.callback(args) end function CUPON:IsRelevant() return #self.used < self:GetMaxUses() or self:GetMaxUses() <= 0 end function CUPON:GetSIDUsed(args) return self.used[args] or false end function CUPON:Use(ply) local sid = ply:SteamID64() if self:GetSIDUsed(sid) then return end if self.type == "currency" then ply:AddCurrency(tonumber(self:GetData()) or 0) elseif self.type == "item" then ply:AddItem(self:GetData() or "null") end gpay.mysql.ActivatorCupon(sid,self.cupon) self.used[sid] = true end debug.getregistry()["MPCupons"] = CUPON -- Крч я не ебу как еще можно замутить, у меня тупо мозгов не хватает) function gpay.GetCupon(class) local fonunded = gpay.CUPONS[class] if fonunded then return fonunded end return false end function gpay.MakeCupon(cup_var) if !cup_var then error("class not found") return end local cupon = table.Copy(default) setmetatable(cupon, CUPON) gpay.CUPONS[cup_var] = cupon gpay.CUPONS[cup_var].cupon = cup_var return cupon end gpay.mysql.object:Query("CREATE TABLE IF NOT EXISTS `mpdonate_cupons`( `cupon` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `data` varchar(255) NOT NULL, `maxuses` int(255) NOT NULL, PRIMARY KEY (`cupon`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;") -- Основная таблица gpay.mysql.object:Query("CREATE TABLE IF NOT EXISTS `mpdonate_cupons_used` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cupon` varchar(255) NOT NULL, `sid` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;") -- Инвентарь timer.Simple(1,function() gpay.mysql.GetCupons(function(data) if not data then return end for k,v in pairs(data) do local cum = gpay.MakeCupon(v["cupon"]) :SetType(v["type"]) :SetData(v["data"]) :SetMaxUses(v["maxuses"]) gpay.DebugMsg("Returned cupon: "..v["cupon"]) gpay.mysql.GetCuponsActivators(v["cupon"],function(data) if not data then return end for k,v in pairs(data) do cum.used[v["sid"]] = true end gpay.DebugMsg("Returned actvators cupon: "..v["cupon"]) end) end end) end)
--local normalW, normalH = 480, 320 --local w, h = display.pixelWidth, display.pixelHeight --local scale = math.max(normalW / w, normalH / h) --w, h = w * scale, h * scale --application = { --content = { --width = w, --height = h, --scale = 'letterbox', --fps = 60, --imageSuffix = { --['@2x'] = 1.1, --['@4x'] = 2.1 --} --} --} application = { content = { --寬 width = 320, --高 height = 480, --縮放模式 --scale = "letterbox", --scale = "zoomEven", scale = "zoomStretch", --偵數 fps = 60, imageSuffix = { ["@2x"] = 2, ["@4x"] = 4, }, }, }
local skynet = require "skynet" local log = {} function log.log(format, ...) skynet.error(string.format(format, ...)) end return log
local gpu = require("component").gpu local bit32 = require("bit32") local depth = tonumber((...)) or 8 if gpu.getDepth() ~= depth then local old = gpu.getDepth() gpu.setDepth(depth) depth = old end -- rgb local reds = {0,0x33,0x66,0x99,0xCC,0xFF} local greens = {0,0x24,0x49,0x6D,0x92,0xB6,0xDB,0xFF} local blues = {0,0x40,0x80,0xC0,0xFF} for _,red in ipairs(reds) do for _,green in ipairs(greens) do for _,blue in ipairs(blues) do local c = bit32.bor(bit32.lshift(red, 16), bit32.lshift(green, 8), blue) gpu.setBackground(c) io.write(' ') end end io.write("\27[m\n") end -- grays for _,gray in ipairs({0x0F,0x1E,0x2D,0x3C,0x4B,0x5A,0x69,0x78,0x87,0x96,0xA5,0xB4,0xC3,0xD2,0xE1,0xF0}) do local c = bit32.bor(bit32.lshift(gray, 16), bit32.lshift(gray, 8), gray) gpu.setBackground(c) io.write(" ") end io.write("\27[m\n") for fg=30,37 do for bg=40,47 do io.write(string.format("%s[%d;%dmX", string.char(0x1b), fg, bg)) end io.write("\27[m\n") end for pfg=0,15 do for pbg=0,15 do gpu.setForeground(pfg, true) gpu.setBackground(pbg, true) io.write("P") end io.write("\27[m\n") end io.write("\27[m\n") if gpu.getDepth() ~= depth then gpu.setDepth(depth) end
GUI_ELEMENT_PREFIX = "region-cloner_" --[[Ghosts will break script as it exists currently. Copying the player is annoying and only serves to clutter the map.]] ENTITIES_TO_NOT_CLONE = {"player", "entity-ghost", "tile-ghost"} TICKS_PER_PASTE = 2 --[[These types have defines.inventory.chest return their fuel slot, which mean we double copy their fuel]] HAS_DEFINES_INVENTORY_CHEST_BUT_SHOULDNT_TYPES = {"locomotive", "car"} --[[For 0.16.x setting a combinator inactive can cause the game to desync]] --[[Beacons won't cause desyncs if they are set inactive, but this is just an easy way to prevent them from going inactive.]] DESYNC_IF_ENTITIES_ARE_INACTIVE_ENTITIES = {"decider-combinator", "arithmetic-combinator", "beacon"} --[[Low priority entities depend on other entities existing in the world first]] --[[Beacons are here because wakeup lists for inserters won't tie to a car in certain designs, if the beacons exist. After the wakeup list is determined beacons can be placed.]] --[[Robots will fly to a different robonetwork if their parent roboport exists after they do.]] LOW_PRIORITY_ENTITIES = {"beacon", "logistic-robot", "construction-robot"} ROLLING_STOCK_TYPES = {"locomotive", "cargo-wagon", "fluid-wagon", "artillery-wagon"} debug_logging = false function has_value (val, tab) for index, value in ipairs(tab) do if value == val then return true end end return false end function construct_bounding_box(left, top, right, bottom) local box = {} local left_top = {} local right_bottom = {} left_top["x"] = left left_top["y"] = top right_bottom["x"] = right right_bottom["y"] = bottom box["left_top"] = left_top box["right_bottom"] = right_bottom return box end function round(x) return x + 0.5 - (x + 0.5) % 1 end function round_to_rail_grid_midpoint(x) local foo = math.floor(x) if (foo % 2 ~= 0) then return foo else return foo + 1 end end function swap_to_fix_pairs(negative_most, positive_most) --[[You will not find any entites if your left top is to the right of your right bottom. Same for top/bottom.]] if (negative_most < positive_most) then return negative_most, positive_most end return positive_most, negative_most end
--- --- Created by Ray1184. --- DateTime: 04/10/2020 17:04 --- --- Wrapper for cached context. --- local cats = require('data/scripts/libs/Categories') local utils = require('data/scripts/libs/Utils') context = {} function context:new() local ctx = { dummy = false } utils.debug('Creating context with categories:') for k, v in pairs(cats) do ctx[v] = {} utils.debug('- ' .. v) end setmetatable(ctx, self) self.__index = self return ctx end function context:set_mode_r25d() self.instance.mode = 'r25d' end function context:set_mode_3d() self.instance.mode = '3d' end function context:set_mode_gui() self.instance.mode = 'gui' end function context:is_mode_r25d() return instance.mode == 'r25d' end function context:is_mode_3d() return instance.mode == '3d' end function context:is_mode_gui() return instance.mode == 'gui' end function context:set_scene(s) self.instance.scene = s end function context:get_scene() if self.instance.scene == nil then utils.warn('Scene is nil in context.') end return self.instance.scene end function context:set_camera(c) self.instance.camera = c end function context:get_camera() if self.instance.camera == nil then utils.warn('Camera is nil in context.') end return self.instance.camera end function context:set_lang(lang) self.instance.lang = lang end function context:get_lang() if self.instance.lang == nil then self.instance.lang = 'it' end return self.instance.lang end function context:enable_dummy() self.instance.dummy = true end function context:disable_dummy() self.instance.dummy = false end function context:inst() if self.instance == nil then utils.debug("New context created.") self.instance = self:new() end return self.instance end function context:put_state(key, obj) if key == nil then utils.warn('Key cannot be nil.') return end self.instance[cats.STATE][key] = obj end function context:put(cat, key, obj) if cat == nil then utils.warn('Cannot put in context object with nil category.') return elseif self.instance[cat] == nil then utils.warn('Cannot put in context object: ' .. cat .. ' category unknown.') return end if key == nil then utils.warn('Key cannot be nil.') return end if obj.serializable == nil then utils.warn('For put object in context this must have a serializable block.') return end self.instance[cat][key] = obj.serializable end function context:get_state(key) if key == nil then utils.error('State object nil not allowed.') return nil end if self.instance[cats.STATE][key] == nil then utils.error('State object ' .. key .. ' was not initialized in context.') return nil end return self.instance[cats.STATE][key] end function context:get(cat, key, supplier_callback) if self.instance[cat] == nil then if cat == nil then utils.warn('Cannot get object from context with nil category.') else utils.warn('Cannot get object from context: ' .. cat .. ' category unknown.') end return nil end if self.instance[cat][key] == nil then if key == nil then utils.warn('Cannot get object from context with nil key.') return nil else self.instance:put(cat, key, supplier_callback()) end end utils.debug('Object with key ' .. key .. ' and category ' .. cat .. ' found in context.') local obj = {} obj.serializable = self.instance[cat][key] return obj end
-- See LICENSE for terms local DoneObject = DoneObject local OnMsg = OnMsg local RemoveAttachAboveHeightLimit = ChoGGi.ComFuncs.RemoveAttachAboveHeightLimit -- we don't add shortcuts and ain't supposed to drink no booze OnMsg.ShortcutsReloaded = ChoGGi.ComFuncs.Rebuildshortcuts -- so we have shortcuts when LUA reloads OnMsg.ReloadLua = ChoGGi.ComFuncs.Rebuildshortcuts -- use this message to perform post-built actions on the final classes function OnMsg.ClassesBuilt() -- add build cat for my items local BuildCategories = BuildCategories if not table.find(BuildCategories, "id", "ChoGGi") then BuildCategories[#BuildCategories+1] = { id = "ChoGGi", name = ChoGGi.Strings[302535920000001--[[ChoGGi]]], image = ChoGGi.library_path .. "UI/bmc_incal_resources.png", } end end -- this is when RocketPayload_Init is called (CityStart is too soon) OnMsg.NewMapLoaded = ChoGGi.ComFuncs.UpdateDataTablesCargo -- needed for UICity and some others that aren't created till around then local function Startup() -- needs a delay to get GlobalVar names CreateRealTimeThread(function() Sleep(1000) ChoGGi.ComFuncs.RetName_Update() end) end OnMsg.CityStart = Startup -- update my cached strings function OnMsg.TranslationChanged() ChoGGi.ComFuncs.UpdateStringsList() ChoGGi.ComFuncs.UpdateDataTablesCargo() ChoGGi.ComFuncs.UpdateDataTables() ChoGGi.ComFuncs.UpdateOtherTables() -- true to update translated names ChoGGi.ComFuncs.RetName_Update(true) end function OnMsg.ModsReloaded() ChoGGi.ComFuncs.UpdateDataTables() ChoGGi.ComFuncs.UpdateTablesSponComm() end ChoGGi.Temp.UIScale = (LocalStorage.Options.UIScale + 0.0) / 100 local function RemoveMyBlinky(o) if o.ChoGGi_blinky then DoneObject(o) end end -- obj cleanup if mod is removed from saved game local function RemoveChoGGiObjects(skip_height) SuspendPassEdits("ChoGGiLibrary.OnMsgs.RemoveChoGGiObjects") -- MapDelete doesn't seem to work with func filtering? MapForEach(true, "RotatyThing", RemoveMyBlinky) -- any of my objs added in Classes_Objects.lua ChoGGi.ComFuncs.RemoveObjs("ChoGGi_ODeleteObjs") -- stop any units with pathing being shown (it'll error out anyways) ChoGGi.ComFuncs.Pathing_StopAndRemoveAll() -- remove any origin points above 65535 (or bad things happen) if not skip_height and ChoGGi.UserSettings.RemoveHeightLimitObjs then MapForEach("map", RemoveAttachAboveHeightLimit) end ResumePassEdits("ChoGGiLibrary.OnMsgs.RemoveChoGGiObjects") end OnMsg.SaveGame = RemoveChoGGiObjects function OnMsg.LoadGame() ChoGGi.ComFuncs.UpdateDataTablesCargo() Startup() RemoveChoGGiObjects(true) -- prevent blank mission profile screen (from removing game rule mods mid-game) local rules = g_CurrentMissionParams.idGameRules if rules then local GameRulesMap = GameRulesMap for rule_id in pairs(rules) do -- If it isn't in the map then it isn't a valid rule if not GameRulesMap[rule_id] then rules[rule_id] = nil end end end end
number1 = math.random(99) ind = math.random(7) - 1 if (ind == 6) then number2 = 0 else number2 = 10^ind end result = number1 * number2
-- -- from src/fib.c -- -- int fib1(int) to fib1 -- int fib2(int) to fib2 -- a part of main to fib3 -- fib3 to fib4 -- local floor, pow, sqrt = math.floor, math.pow, math.sqrt local function fib1(n) return floor(pow((1 + sqrt(5)) / 2, n) / sqrt(5) + 0.5) end local function fib2(n) local a, b, c, x, y = 1, 1, 0, 1, 0 n = n - 1 while n > 0 do if n & 1 ~= 0 then x, y = a * x + b * y, b * x + c * y end a, b, c = a * a + b * b, b * (a + c), b * b + c * c n = n // 2 end return x end local function fib3(n) local a, b, c = 1, 0, 1 while c < n do a, b, c = a + b, a, c + 1 end return a end local function fib4(n) function iter(a, b, c) if c < n then return iter(a + b, a, c + 1) else return a end end return iter(1, 0, 1) end return { fib1 = fib1, fib2 = fib2, fib3 = fib3, fib4 = fib4 }
function model.setCuboidMassAndInertia(h,sizeX,sizeY,sizeZ,mass,inertiaFact) local inertiaFact=1 local transf=sim.getObjectMatrix(h,-1) local inertia={(sizeY*sizeY+sizeZ*sizeZ)*mass*inertiaFact/12,0,0,0,(sizeX*sizeX+sizeZ*sizeZ)*mass*inertiaFact/12,0,0,0,(sizeY*sizeY+sizeX*sizeX)*mass*inertiaFact/12} sim.setShapeMassAndInertia(h,mass,inertia,{0,0,0},transf) end function model.setColor(red,green,blue,spec) sim.setShapeColor(model.handle,nil,sim.colorcomponent_ambient_diffuse,{red,green,blue}) end function model.getColor() local r,rgb=sim.getShapeColor(model.handle,nil,sim.colorcomponent_ambient_diffuse) return rgb[1],rgb[2],rgb[3] end function model.updateModel() local c=model.readInfo() local w=c.partSpecific.width local l=c.partSpecific.length local h=c.partSpecific.height local mass=c.partSpecific.mass model.setObjectSize(model.handle,w,l,h) model.setCuboidMassAndInertia(model.handle,w,l,h,mass) end function sysCall_cleanup_specific() end
numb1 = math.random(10); numb2 = math.random(10); numb3 = math.random(10); if (numb1 * numb2 * numb3 == 10^3) then numb3 = math.random(9) end array_name[1] = hundreds[numb1]; array_name[2] = tens[numb2]; array_name[3] = ones[numb3]; if (numb1 == 10) then term1 = 0 else term1 = numb1*100 end if (numb2 == 10) then term2 = 0 else term2 = numb2*10 end if (numb3 == 10) then term3 = 0 else term3 = numb3 end value = term1 + term2 + term3;
ENT.DrrBaseType = "base" ENT.RenderInCam = true ENT.WaitNPCS = 0 ENT.NextAction = 0 ENT.EnginePower = 0 ENT.FlyConstant = 2.2524 -- 2.26 2.34 2.25 2.2524 ENT.BlockKeys = false ENT.MoveCoefficient = 1 ENT.DRONES_REWRITE_DELTA = 0 ENT.DRRFriendsControlling = nil ENT.CamAngles = Angle(0, 0, 0) ENT.HackValue = 1 ENT.Useable = true ENT.IS_DRONE = true ENT.IS_DRR = true ENT.AllowControl = false ENT.BlockRemoteController = false ENT.ShowOnRadar = true ENT.UNIT = "BASE" ENT.AI_AllowDown = true ENT.AI_AllowUp = true ENT.AI_AllowForward = true ENT.AI_AllowBack = true ENT.AI_AllowRotate = true ENT.AI_AllowStay = true ENT.DisableInWater = true ENT.DRRDefMaxDistance = 10000 ENT.Slots = { ["Body"] = 2, ["Engine"] = 1, ["Camera"] = 1, ["AI"] = 5, ["Fuel"] = 1 } ENT.Modules = nil ENT.Buffer = { } ENT.Base = "base_anim" ENT.Type = "anim" ENT.PrintName = "Base Drone" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.Category = "" ENT.Weight = 100 ENT.Model = "models/props_phx/construct/metal_plate1.mdl" ENT.HealthAmount = 100 ENT.DefaultHealth = 100 ENT.CriticalHealthPoint = 30 ENT.DamageThreshold = 0 --[[ AKA "Penetration threshold" ]]-- ENT.DoExplosionEffect = true ENT.ExplosionForce = 37 ENT.ExplosionAngForce = 3 -- Physics and movement params -- ENT.Speed = 2300 -- No comments ENT.UpSpeed = 6900 ENT.SprintCoefficient = 2 ENT.RotateSpeed = 13 ENT.AngOffset = 10 -- How much force do when we're rotating (A & D) ENT.PitchOffset = 1 -- How much force do when we're moving (W & S) ENT.Alignment = 1 -- How much force do to align drone ENT.AlignmentPitch = 0 -- Same but pitch ENT.AlignmentRoll = 0 -- Same but roll ENT.Damping = 1 -- Velocity damping ENT.AngDamping = 1 -- Angle velocity damping -- Full ENT.AngPitchDamping = 0 ENT.AngYawDamping = 0 ENT.AngRollDamping = 0 -- Hint: -- math.Clamp(phys:GetVelocity():Length() * self.VelCoefficientOffset, 1, self.VelCoefficientMax) * self.AngOffsetVel ENT.VelCoefficientOffset = 0.0025 -- Velocity:Length() coefficient ENT.VelCoefficientMax = 3 -- Max force of velocity angle offset ENT.AngOffsetVel = 1 -- Coefficient of velocity angle offset ENT.NoiseCoefficient = 0.3 -- Noise ENT.NoiseCoefficientPos = 0 -- Same but vector ENT.NoiseCoefficientAng = 0 -- Same but angle ---------------------------------- ENT.CameraModel = "models/dronesrewrite/camera/camera.mdl" ENT.SimplestCamera = false ENT.FirstPersonCam_pos = Vector(0, 0, -5) ENT.ThirdPersonCam_pos = Vector(0, 0, 0) ENT.ThirdPersonCam_distance = 100 ENT.EnabledThirdPerson = true ENT.RenderCam = true ENT.CamZoom = 30 ENT.OverlayName = "Default" ENT.HUD_hudName = "Sci Fi" ENT.HUD_textColor = Color(200, 255, 255) ENT.HUD_hudColor = Color(200, 255, 255) ENT.HUD_shouldDrawCrosshair = true ENT.HUD_shouldDrawHud = true ENT.HUD_shouldDrawHealth = true ENT.HUD_shouldDrawTargets = true ENT.HUD_shouldDrawOverlay = true ENT.HUD_shouldDetectDamage = true ENT.HUD_shouldDrawRadar = true ENT.HUD_shouldDrawFuel = true ENT.HUD_shouldDrawCenter = true ENT.HUD_shouldDrawWeps = true ENT.Enabled = true ENT.UseNightVision = true ENT.UseFlashlight = true ENT.Fuel = 100 ENT.MaxFuel = 100 ENT.FuelReduction = 0.1 ENT.ShouldConsumeFuel = true ENT.MaxPrimaryAmmo = 0 ENT.MaxSecondaryAmmo = 0 ENT.ShouldConsumeAmmo = true ENT.Immortal = false ENT.NoPropellers = false -- NOTE: These parts must be tables -- ENT.Propellers = nil ENT.Sounds = nil ENT.Weapons = nil ENT.KeysFuncs = nil ENT.Legs = nil ENT.Attachments = nil -------------------------------- ENT.PlayLoop = true ENT.AllowPitchRestrictions = true ENT.PitchMin = 0 ENT.PitchMax = 90 ENT.AllowYawRestrictions = false ENT.YawMin = 0 ENT.YawMax = 0 ENT.CurrentWeapon = nil -- Walker base params -- ENT.Dists = nil ENT.Slip = 6 ENT.AngSlip = 0.05 ENT.isDroneOnGround = false ENT.Hover = 15 ENT.WaitForSound = 0.13 ------------------------ function ENT:IsDroneOnGround() return self.isDroneOnGround end function ENT:AddHook(hook, name, func) if not self.hooks then self.hooks = { } end if not self.hooks[hook] then self.hooks[hook] = { } end self.hooks[hook][name] = func end function ENT:RemoveHook(hook, name) if not self.hooks then self.hooks = { } end if self.hooks[hook] and self.hooks[hook][name] then self.hooks[hook][name] = nil end end function ENT:CallHook(name, ...) if not self.hooks then self.hooks = { } end if not self.hooks[name] then return end for k, v in pairs(self.hooks[name]) do if CLIENT then RunString(v) -- Worst shit ever else v(...) end end end function ENT:AddHookClient(hook, name, func) if CLIENT then return end net.Start("dronesrewrite_addhook") net.WriteEntity(self) net.WriteString(hook) net.WriteString(name) net.WriteString(func) net.Broadcast() end function ENT:RemoveHookClient(hook, name, func) if CLIENT then return end net.Start("dronesrewrite_removehook") net.WriteEntity(self) net.WriteString(hook) net.WriteString(name) net.Broadcast() end function ENT:GetUnit() return self.UNIT .. self:EntIndex() end function ENT:GetNumPropellers() return self.Propellers and #self.Propellers.Info or 0 end function ENT:CalculateFlyConstant() if self.DrrBaseType == "base" then return self.FlyConstant * (4 / self:GetNumPropellers()) else return 1 end end function ENT:IsDroneDestroyed() return self:GetHealth() <= 0 end function ENT:IsDroneImmortal() return self.Immortal or DRONES_REWRITE.ServerCVars.NoDamage:GetBool() end function ENT:IsDroneEnabled() return SERVER and self.Enabled or self:GetNWBool("Enabled") end function ENT:IsDroneWorkable() return self:HasFuel() and not self:IsDroneDestroyed() and self:IsDroneEnabled() end function ENT:GetHealth() return CLIENT and self:GetNWInt("Health") or self.HealthAmount end function ENT:GetDefaultHealth() return self:GetNWInt("DefHealth") end function ENT:GetFuel() return CLIENT and self:GetNWInt("Fuel") or self.Fuel end function ENT:HasFuel() return self.Fuel > 0 or not self.ShouldConsumeFuel or DRONES_REWRITE.ServerCVars.NoFuel:GetBool() end function ENT:GetPrimaryAmmo() return self:GetNWInt("Ammo1") end function ENT:GetPrimaryMax() return self:GetNWInt("MaxAmmo1") end function ENT:GetSecondaryAmmo() return self:GetNWInt("Ammo2") end function ENT:GetSecondaryMax() return self:GetNWInt("MaxAmmo2") end function ENT:GetDriver() return self:GetNWEntity("DronesRewriteDriver") end function ENT:GetCamera() return self:GetNWEntity("Camera") end function ENT:GetMainCamera() return self:GetNWEntity("MainCamera") end function ENT:DoCamEffects() return self:GetNWBool("CameraHUD") and not self:GetNWBool("ThirdPerson") end function ENT:SupportAngles() return self:GetNWBool("SupportAngles") and not self:GetNWBool("ThirdPerson") end function ENT:GetLocalCamPos() return self:GetNWVector("CameraPositions") end function ENT:GetCameraTraceLine(distance, mins, maxs, mask) local cam = self:GetCamera() if not IsValid(cam) then cam = self end local campos = cam:GetPos() distance = distance or 100000 mins = mins or Vector(0, 0, 0) maxs = maxs or Vector(0, 0, 0) local filter = { } table.insert(filter, cam) table.insert(filter, self) local tr = util.TraceHull({ start = campos, endpos = campos + self.CamAngles:Forward() * distance, filter = filter, mins = mins, maxs = maxs, mask = mask }) return tr end
------------------------------------------------------------------------------------------------------------------------ -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md ------------------------------------------------------------------------------------------------------------------------ -- Description: Check that SDL processes SubscribeButton RPC with 'CUSTOM_BUTTON' parameter ------------------------------------------------------------------------------------------------------------------------ -- In case: -- 1. Mobile app starts registration -- SDL does: -- - send Buttons.SubscribeButton(CUSTOM_BUTTON, appId) to HMI during registration -- - wait response from HMI -- - receive Buttons.SubscribeButton(SUCCESS) -- - not send OnHashChange with updated hashId to mobile app -- - resend OnButtonEvent and OnButtonPress notifications to mobile App for CUSTOM_BUTTON ------------------------------------------------------------------------------------------------------------------------ --[[ Required Shared libraries ]] local common = require('test_scripts/API/ButtonSubscription/commonButtonSubscription') --[[ Local Variables ]] local appSessionId1 = 1 local buttonName = "CUSTOM_BUTTON" --[[ Scenario ]] common.runner.Title("Preconditions") common.runner.Step("Clean environment", common.preconditions) common.runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start) common.runner.Title("Test") common.runner.Step("App registration and check Subscribe on CUSTOM_BUTTON", common.registerAppSubCustomButton) common.runner.Step("Activate app", common.activateApp) common.runner.Step("Subscribe on Soft button", common.registerSoftButton) common.runner.Step("On Custom_button press ", common.buttonPress, { appSessionId1, buttonName, common.isExpected, common.customButtonID }) common.runner.Title("Postconditions") common.runner.Step("Stop SDL", common.postconditions)
--- GENERATED CODE - DO NOT MODIFY -- Amazon SageMaker Runtime (runtime.sagemaker-2017-05-13) local M = {} M.metadata = { api_version = "2017-05-13", json_version = "1.1", protocol = "rest-json", checksum_format = "", endpoint_prefix = "runtime.sagemaker", service_abbreviation = "", service_full_name = "Amazon SageMaker Runtime", signature_version = "v4", target_prefix = "", timestamp_format = "", global_endpoint = "", uid = "runtime.sagemaker-2017-05-13", } local keys = {} local asserts = {} keys.InvokeEndpointInput = { ["Body"] = true, ["EndpointName"] = true, ["ContentType"] = true, ["CustomAttributes"] = true, ["Accept"] = true, nil } function asserts.AssertInvokeEndpointInput(struct) assert(struct) assert(type(struct) == "table", "Expected InvokeEndpointInput to be of type 'table'") assert(struct["EndpointName"], "Expected key EndpointName to exist in table") assert(struct["Body"], "Expected key Body to exist in table") if struct["Body"] then asserts.AssertBodyBlob(struct["Body"]) end if struct["EndpointName"] then asserts.AssertEndpointName(struct["EndpointName"]) end if struct["ContentType"] then asserts.AssertHeader(struct["ContentType"]) end if struct["CustomAttributes"] then asserts.AssertCustomAttributesHeader(struct["CustomAttributes"]) end if struct["Accept"] then asserts.AssertHeader(struct["Accept"]) end for k,_ in pairs(struct) do assert(keys.InvokeEndpointInput[k], "InvokeEndpointInput contains unknown key " .. tostring(k)) end end --- Create a structure of type InvokeEndpointInput -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Body [BodyBlob] <p>Provides input data, in the format specified in the <code>ContentType</code> request header. Amazon SageMaker passes all of the data in the body to the model. </p> <p>For information about the format of the request body, see <a href="http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data Formats—Inference</a>.</p> -- * EndpointName [EndpointName] <p>The name of the endpoint that you specified when you created the endpoint using the <a href="http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html">CreateEndpoint</a> API. </p> -- * ContentType [Header] <p>The MIME type of the input data in the request body.</p> -- * CustomAttributes [CustomAttributesHeader] <p/> -- * Accept [Header] <p>The desired MIME type of the inference in the response.</p> -- Required key: EndpointName -- Required key: Body -- @return InvokeEndpointInput structure as a key-value pair table function M.InvokeEndpointInput(args) assert(args, "You must provide an argument table when creating InvokeEndpointInput") local query_args = { } local uri_args = { ["{EndpointName}"] = args["EndpointName"], } local header_args = { ["Content-Type"] = args["ContentType"], ["X-Amzn-SageMaker-Custom-Attributes"] = args["CustomAttributes"], ["Accept"] = args["Accept"], } local all_args = { ["Body"] = args["Body"], ["EndpointName"] = args["EndpointName"], ["ContentType"] = args["ContentType"], ["CustomAttributes"] = args["CustomAttributes"], ["Accept"] = args["Accept"], } asserts.AssertInvokeEndpointInput(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.InvokeEndpointOutput = { ["Body"] = true, ["InvokedProductionVariant"] = true, ["CustomAttributes"] = true, ["ContentType"] = true, nil } function asserts.AssertInvokeEndpointOutput(struct) assert(struct) assert(type(struct) == "table", "Expected InvokeEndpointOutput to be of type 'table'") assert(struct["Body"], "Expected key Body to exist in table") if struct["Body"] then asserts.AssertBodyBlob(struct["Body"]) end if struct["InvokedProductionVariant"] then asserts.AssertHeader(struct["InvokedProductionVariant"]) end if struct["CustomAttributes"] then asserts.AssertCustomAttributesHeader(struct["CustomAttributes"]) end if struct["ContentType"] then asserts.AssertHeader(struct["ContentType"]) end for k,_ in pairs(struct) do assert(keys.InvokeEndpointOutput[k], "InvokeEndpointOutput contains unknown key " .. tostring(k)) end end --- Create a structure of type InvokeEndpointOutput -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Body [BodyBlob] <p>Includes the inference provided by the model.</p> <p>For information about the format of the response body, see <a href="http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data Formats—Inference</a>.</p> -- * InvokedProductionVariant [Header] <p>Identifies the production variant that was invoked.</p> -- * CustomAttributes [CustomAttributesHeader] <p/> -- * ContentType [Header] <p>The MIME type of the inference returned in the response body.</p> -- Required key: Body -- @return InvokeEndpointOutput structure as a key-value pair table function M.InvokeEndpointOutput(args) assert(args, "You must provide an argument table when creating InvokeEndpointOutput") local query_args = { } local uri_args = { } local header_args = { ["x-Amzn-Invoked-Production-Variant"] = args["InvokedProductionVariant"], ["X-Amzn-SageMaker-Custom-Attributes"] = args["CustomAttributes"], ["Content-Type"] = args["ContentType"], } local all_args = { ["Body"] = args["Body"], ["InvokedProductionVariant"] = args["InvokedProductionVariant"], ["CustomAttributes"] = args["CustomAttributes"], ["ContentType"] = args["ContentType"], } asserts.AssertInvokeEndpointOutput(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end function asserts.AssertCustomAttributesHeader(str) assert(str) assert(type(str) == "string", "Expected CustomAttributesHeader to be of type 'string'") assert(#str <= 1024, "Expected string to be max 1024 characters") end -- function M.CustomAttributesHeader(str) asserts.AssertCustomAttributesHeader(str) return str end function asserts.AssertHeader(str) assert(str) assert(type(str) == "string", "Expected Header to be of type 'string'") assert(#str <= 1024, "Expected string to be max 1024 characters") end -- function M.Header(str) asserts.AssertHeader(str) return str end function asserts.AssertEndpointName(str) assert(str) assert(type(str) == "string", "Expected EndpointName to be of type 'string'") assert(#str <= 63, "Expected string to be max 63 characters") end -- function M.EndpointName(str) asserts.AssertEndpointName(str) return str end function asserts.AssertBodyBlob(blob) assert(blob) assert(type(string) == "string", "Expected BodyBlob to be of type 'string'") assert(#blob <= 5242880, "Expected blob to be max 5242880") end function M.BodyBlob(blob) asserts.AssertBodyBlob(blob) return blob end local content_type = require "aws-sdk.core.content_type" local request_headers = require "aws-sdk.core.request_headers" local request_handlers = require "aws-sdk.core.request_handlers" local settings = {} local function endpoint_for_region(region, use_dualstack) if not use_dualstack then if region == "us-east-1" then return "runtime.sagemaker.amazonaws.com" end end local ss = { "runtime.sagemaker" } if use_dualstack then ss[#ss + 1] = "dualstack" end ss[#ss + 1] = region ss[#ss + 1] = "amazonaws.com" if region == "cn-north-1" then ss[#ss + 1] = "cn" end return table.concat(ss, ".") end function M.init(config) assert(config, "You must provide a config table") assert(config.region, "You must provide a region in the config table") settings.service = M.metadata.endpoint_prefix settings.protocol = M.metadata.protocol settings.region = config.region settings.endpoint = config.endpoint_override or endpoint_for_region(config.region, config.use_dualstack) settings.signature_version = M.metadata.signature_version settings.uri = (config.scheme or "https") .. "://" .. settings.endpoint end -- -- OPERATIONS -- --- Call InvokeEndpoint asynchronously, invoking a callback when done -- @param InvokeEndpointInput -- @param cb Callback function accepting three args: response, error_type, error_message function M.InvokeEndpointAsync(InvokeEndpointInput, cb) assert(InvokeEndpointInput, "You must provide a InvokeEndpointInput") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".InvokeEndpoint", } for header,value in pairs(InvokeEndpointInput.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/endpoints/{EndpointName}/invocations", InvokeEndpointInput, headers, settings, cb) else cb(false, err) end end --- Call InvokeEndpoint synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param InvokeEndpointInput -- @return response -- @return error_type -- @return error_message function M.InvokeEndpointSync(InvokeEndpointInput, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.InvokeEndpointAsync(InvokeEndpointInput, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end return M
local AttackProperties = Component.create("AttackProperties") function AttackProperties:initialize(spawnDistance) self.spawnDistance = spawnDistance end
local tty = require("tty") local computer = require("computer") local process = require("process") local event = require("event") local core_cursor = require("core/cursor") local kb = require("keyboard") local keys = kb.keys local term = setmetatable({internal={}}, {__index=tty}) local function as_window(window, func, ...) local data = process.info().data if not data.window or not window then return func(...) end local prev = rawget(data, "window") data.window = window local ret = table.pack(func(...)) data.window = prev return table.unpack(ret, 1, ret.n) end function term.internal.open(...) local dx, dy, w, h = ... local window = {fullscreen=select("#",...) == 0, blink = true, output_buffer = ""} -- support legacy code using direct manipulation of w and h -- (e.g. wocchat) instead of using setViewport setmetatable(window, { __index = function(tbl, key) key = key == "w" and "width" or key == "h" and "height" or key return rawget(tbl, key) end, __newindex = function(tbl, key, value) key = key == "w" and "width" or key == "h" and "height" or key return rawset(tbl, key, value) end }) -- first time we open a pty the current tty.window must become the process window if rawget(tty, "window") then for _,p in pairs(process.list) do if not p.parent then p.data.window = tty.window break end end tty.window = nil setmetatable(tty, { __index = function(_, key) if key == "window" then return process.info().data.window end end }) end as_window(window, tty.setViewport, w, h, dx, dy, 1, 1) as_window(window, tty.bind, tty.gpu()) return window end local function create_cursor(history, ops) local cursor = history or {} cursor.hint = ops.hint or cursor.hint local filter = ops.filter or cursor.filter if filter then if type(filter) == "string" then local filter_text = filter filter = function(text) return text:match(filter_text) end end function cursor:handle(name, char, code) if name == "key_down" and (code == keys.enter or code == keys.numpadenter) then if not filter(self.data) then computer.beep(2000, 0.1) return true -- handled end end return self.super.handle(self, name, char, code) end end local pwchar = ops.pwchar or cursor.pwchar local nobreak = ops.dobreak == false or cursor.dobreak == false if pwchar or nobreak then if type(pwchar) == "string" then local pwchar_text = pwchar pwchar = function(text) return text:gsub(".", pwchar_text) end end function cursor:echo(arg, ...) if pwchar and type(arg) == "string" and #arg > 0 and not arg:match("^\27") then -- "" is used for scrolling arg = pwchar(arg) elseif nobreak and arg == "\n" then arg = "" end return self.super.echo(self, arg, ...) end end return core_cursor.new(cursor, cursor.nowrap and core_cursor.horizontal) end -- cannot use term.write = io.write because io.write invokes metatable function term.write(value, wrap) io.stdout:flush() local previous_nowrap = tty.window.nowrap tty.window.nowrap = wrap == false io.write(value) io.stdout:flush() tty.window.nowrap = previous_nowrap end function term.read(history, dobreak, hint, pwchar, filter) tty.window.cursor = create_cursor(history, { dobreak = dobreak, pwchar = pwchar, filter = filter, hint = hint }) return io.stdin:readLine(false) end function term.getGlobalArea() local w,h,dx,dy = tty.getViewport() return dx+1,dy+1,w,h end function term.clearLine() term.write("\27[2K\27[999D") end function term.setCursorBlink(enabled) tty.window.blink = enabled end function term.getCursorBlink() return tty.window.blink end function term.pull(...) local blink = tty.window.blink -- If tty.window.blink is internal, move this to term.setCursorBlink() if not blink or blink == 0 then blink = math.huge elseif type(blink) ~= 'number' then blink = .5 elseif blink < 0 then return event.pull(...) end local args = table.pack(...) local timeout = math.huge if type(args[1]) == "number" then timeout = computer.uptime() + table.remove(args, 1) args.n = args.n - 1 end local cursor = core_cursor.new() local next_blink = math.min(timeout, computer.uptime() + blink) cursor:echo() while timeout >= computer.uptime() do local s = table.pack(event.pull(next_blink - computer.uptime(), table.unpack(args, 1, args.n))) if s.n > 0 then cursor:echo(false) return table.unpack(s, 1, s.n) end if computer.uptime() >= next_blink then cursor:echo(true) next_blink = math.min(timeout, computer.uptime() + blink) end end end function term.bind(gpu, window) return as_window(window, tty.bind, gpu) end term.scroll = tty.stream.scroll term.internal.run_in_window = as_window return term
-- Configuration function love.conf(t) t.title = "SnowmanSniper" -- The title of the window the game is in (string) t.version = "11.2" -- The LÖVE version this game was made for (string) t.window.width = 800 -- we want our game to be long and thin. t.window.height = 800 end
PageInfo = {} function PageInfo:getobjects_count() local s = ctk.string.list:new() s.text = tab.reslist local c = s.count s:release() return c end function PageInfo:getobjects(tag) local list = '' local line = '' local src = '' local urlext = '' local comburl = '' local filename = '' local html = ctk.string.list:new() local p = ctk.string.loop:new() p:load(tab.reslist) while p:parsing() do src = p.current urlext = string.lower(ctk.url.getfileext(src)) filename = ctk.url.getfilename(src) if ctk.string.beginswith(filename,'?') == false then filename = ctk.string.before(filename,'?') end src = ctk.html.escape(src) if tag == 'option' then line = '<option filename="n'..ctk.html.escape(ctk.url.getfileext(filename))..'" value="'..src..'">'..ctk.url.getfilename(src)..'</option>' if html:indexof(line) == -1 then html:add(line) end else if ctk.re.match(urlext,'.bmp|.gif|.ico|.jpg|.jpeg|.png|.svg') == true then line = [[<img src="]]..src..[[" onclick="window.open(Sandcat.Base64Decode(']]..ctk.base64.encode(src)..[['))"/>]] if html:indexof(line) == -1 then html:add(line) end end end end html:sort() list = html.text p:release() html:release() return list end function PageInfo:requestdone(r) local ct = ctk.http.getheader(r.rcvdheaders,'Content-Type') local urlext = string.lower(ctk.url.getfileext(r.url)) if ct == '' then ct = urlext end tab:showcodeedit(r.responsetext,ct) end function PageInfo:openobject(url) local ui = self.ui if url == '' then url = ui.objlist.value end local urlext = string.lower(ctk.url.getfileext(url)) if ReqViewer == nil then PenTools:dofile('Scripts/ReqViewer.lua') end ReqViewer:viewcached(url) --[[if ctk.re.match(urlext,'.bmp|.gif|.ico|.jpg|.jpeg|.png|.svg') == true then browser.bottombar:loadx('<style>html { background-color:#e2e2e5;}</style><img src="'..ctk.html.escape(url)..'">','PageInfo.ui') else URLGet:get(url,PageInfo.requestdone) end ]] end function PageInfo:load() if tab:hasloadedurl(true) then local html = PenTools:getfile('Scripts/PageInfo_Objects.html') html = ctk.string.replace(html,'<!pageobjects>',self:getobjects('option')) browser.loadpagex({name='resexplorer',html=html,table='PageInfo.ui'}) end end function PageInfo:viewimages() if tab:hasloadedurl(false) then local html = PenTools:getfile('Scripts/PageInfo_Images.html') html = ctk.string.replace(html,'<!url>',ctk.html.escape(tab.url)) html = ctk.string.replace(html,'<!images>',self:getobjects('picture')) local j = {} j.title = 'Images' j.icon = 'url(PenTools.scx#images\\icon_image.png)' j.activepage = 'browser' if browser.newtabx(j) ~= 0 then tab:gotourl('about:images',html) end end end
require('utility') grid = require('grid') players = require('player') arena = require('arena') mainMenu = require('mainMenu') options = require('options') optionsMenu = require('optionsMenu') state = require('state') message = require('message') function love.load() love.window.setTitle("NORT") love.window.setMode(600, 600, {}) state.load() arena.load() mainMenu.load() options.load() optionsMenu.load() end function love.keypressed(key, scancode, isrepeat) if message.isShowingMSG() then message.parseInputs(key, scancode, isrepeat) else if state.state=='arena' then arena.parseInputs(key, scancode, isrepeat) end end end function love.mousepressed(x, y, button, istouch) if message.isShowingMSG() then message.mousepressed(x, y, button, istouch) else if state.state=='mainMenu' then mainMenu.mousepressed(x, y, button, istouch) elseif state.state=='optionsMenu' then optionsMenu.mousepressed(x, y, button, istouch) end end end function love.update(delta) if message.isShowingMSG() then message.update(delta) else if state.state=='arena' then arena.update(delta) elseif state.state=='mainMenu' then mainMenu.update() elseif state.state=='optionsMenu' then optionsMenu.update() end end end function love.draw() love.graphics.clear(colors.background) --[[ Test multiline comment ]]-- if state.state=='arena' then arena.draw() elseif state.state=='mainMenu' then mainMenu.render() elseif state.state=='optionsMenu' then optionsMenu.render() end if message.isShowingMSG() then message.render() end -- Test line comment end foo = [[ Test multiline 1 ]] foo = [=[ ]] ]==] Test multiline 2 ]=] foo = [=[ Test multiline 3 -- & comment ]=]
local IInput = require("api.gui.IInput") local UiMouseManager = require("mod.mouse_ui.api.gui.UiMouseManager") local InputHandler = require("api.gui.InputHandler") local UiMouseStyle = require("mod.mouse_ui.api.UiMouseStyle") local IUiMouseElement = require("mod.mouse_ui.api.gui.IUiMouseElement") local UiTheme = require("api.gui.UiTheme") local UiMouseRoot = class.class("UiMouseRoot", {IInput, IUiMouseElement}) UiMouseRoot:delegate("input", IInput) function UiMouseRoot:init(opts) self.mouse_manager = UiMouseManager:new() self.input = InputHandler:new() self.input:forward_to(self.mouse_manager) self.padding = opts.padding or UiMouseStyle.default_padding() self:set_child(opts.child) end function UiMouseRoot:set_child(child) if child ~= nil then assert(class.is_an(IUiMouseElement, child)) child._parent = self end self.child = child self.mouse_manager:set_elements { self.child or nil } end function UiMouseRoot:get_minimum_width() return math.max(self.width, self.child and self.child:get_minimum_width() or 0) end function UiMouseRoot:get_minimum_height() return math.max(self.height, self.child and self.child:get_minimum_height() or 0) end function UiMouseRoot:get_mouse_elements(recursive) return self.mouse_manager:get_mouse_elements(recursive) end function UiMouseRoot:relayout(x, y, width, height) self.x = x self.y = y self.width = width self.height = height self.t = UiTheme.load(self) if self.child then self.child:relayout(self.padding:apply(self.x, self.y, self.width, self.height)) end end function UiMouseRoot:draw() if self.child then self.child:draw() end end function UiMouseRoot:update(dt) if self.child then self.child:update(dt) end end return UiMouseRoot
local ffi = require 'ffi' local ParseBack = require 'parseback' ----------------- utils ------------- local show do local function q(s) return type(s)=='string' and ('%q'):format(s) or s end local function qk(s) if type(s) == 'string' and s:match('^[_%a][_%w]*$') then return s end return ('[%s]'):format(q(s)) end function show(var) local tv = type(var) if tv == 'table' then local o = {} for k, v in pairs(var) do if type(k) ~= 'number' or k < 1 or k > #var or math.floor(k)~=k then o[#o+1] = string.format('%s=%s', show(qk(k)), show(q(v))) end end for i = 1, #var do o[#o+1] = show(q(var[i])) end return '{'..table.concat(o, ', ')..'}' else return tostring(var) end end end ffi.cdef [[ // comment 1 struct Expr; struct Select; struct sql_trigger; //< comment 2 /* comment 3 */ enum ast_type { AST_TYPE_UNDEFINED = 0, AST_TYPE_SELECT, AST_TYPE_EXPR, AST_TYPE_TRIGGER, ast_type_MAX }; struct sql_parsed_ast { const char* sql_query; /**< original query */ enum ast_type ast_type; /**< Type of parsed_ast member. */ bool keep_ast; /**< Keep AST after .parse */ union { struct Expr *expr; struct Select *select; struct sql_trigger *trigger; }; }; ]] yaml = require 'yaml' print (yaml.encode(ParseBack.typeinfo(ffi.typeof('struct sql_parsed_ast')))) print (yaml.encode(ParseBack.typeinfo(ffi.typeof('enum ast_type'))))
includeFile("tangible/loot/mustafar/must_painting_01.lua") includeFile("tangible/loot/mustafar/must_painting_04.lua") includeFile("tangible/loot/mustafar/must_painting_03.lua") includeFile("tangible/loot/mustafar/must_painting_02.lua")
--[[ Description: Shared command declaration. Should not be used for commands with sensitive/not public server-side code. Author: Sceleratis Date: 12/25/2021 --]] local Root, Utilities, Service, Package; local Settings = setmetatable({}, { __index = function(self, ind) return { __ROOT_PROXY = true, Path = "Settings", Index = ind } end }) local DeclareCommands = { } return { Init = function(cRoot, cPackage) Root = cRoot Package = cPackage Utilities = Root.Utilities Service = Root.Utilities.Services for ind, data in pairs(DeclareCommands) do Root.Commands:DeclareCommand(ind, data) end end; AfterInit = function(Root, Package) --// Do after-init end; }
return function(text) local letters={} local count =0 for char in text:lower():gmatch('%a') do if not letters[char] then count = count +1 letters[char] = true end end return count == 26 end
-- ARGV[1] = idpKey, ARGV[2] = states -- 处理参数 local KEY_PREFIX = 'idp-' local newKJson = ARGV[1] local statesJson = ARGV[2] local expire_seconds = ARGV[3] local newK = cjson.decode(newKJson) local states = cjson.decode(statesJson) local res = {} -- 不存在的情况 local oldKJson = redis.call("get", KEY_PREFIX .. newK.id) if (false == oldKJson) then -- 不存在时返回值就是false then redis.call("set", KEY_PREFIX .. newK.id, newKJson, "EX", expire_seconds) res['idpKey'] = newK res['count'] = 1 return cjson.encode(res) end -- 已经存在的情况 local existsState = false for i, state in ipairs(states) do if (newK.state == state) then existsState = true end end local oldK = cjson.decode(oldKJson) if (existsState) then -- 存在且状态包含在states中 then redis.call("set", KEY_PREFIX .. newK.id, newKJson, "EX", expire_seconds) res['idpKey'] = oldK res['count'] = 1 else -- 存在且状态不包含在目标集合内 res['idpKey'] = oldK res['count'] = 0 end return cjson.encode(res)
local ui_functions = Tremualin.UIFunctions -- A button that turns a residence into a seniors only residence -- Useful for those that don't have the new DLC function OnMsg.ClassesPostprocess() local template = XTemplates.sectionResidence ui_functions.RemoveXTemplateSections(template, "Tremualin_SeniorsAllowed") local seniorsInfo = PlaceObj("XTemplateTemplate", { "Tremualin_SeniorsAllowed", true, "__template", "InfopanelSection", "__context_of_kind", "Residence", "OnContextUpdate", function(self, context) if context.exclusive_trait == "Senior" and not context:IsKindOf("SeniorsResidence") then self:SetRolloverText("Only seniors are allowed on this residence") self:SetTitle("Only seniors allowed") self:SetIcon("UI/Icons/Upgrades/rejuvenation_treatment_01.tga") self:SetVisible(true) elseif context.exclusive_trait then self:SetVisible(false) else self:SetRolloverText("Everyone is allowed on this residence") self:SetTitle("Everyone allowed") self:SetIcon("UI/Icons/Upgrades/rejuvenation_treatment_02.tga") self:SetVisible(true) end end, }, { PlaceObj("XTemplateFunc", { "name", "OnActivate(self, context)", "parent", function(self) return self.parent end, "func", function(self, context) -- we remove the trait if present, and reduce capacity if context.exclusive_trait == "Senior" then context.capacity = context.capacity - context.seniors_extra_capacity context.exclusive_trait = false -- since we changed capacity, we need to ensure there is room for everyone for i = #context.colonists, 1, -1 do if i >= context.capacity then local colonist = context.colonists[i] context:RemoveResident(colonist) end end context:CheckHomeForHomeless() elseif context.exclusive_trait then -- do nothing else context.exclusive_trait = "Senior" -- increase capacity by 50% to compete with senior residences context.seniors_extra_capacity = context.capacity * 0.5 context.capacity = context.capacity + context.seniors_extra_capacity -- first we process all colonists within the residence and kick out the youngsters for i = #context.colonists, 1, -1 do local colonist = context.colonists[i] if IsValid(colonist) then colonist:UpdateResidence() end end -- then we process all colonists within the dome to make sure all seniors move into the residence -- we will process some colonists twice but I'm too lazy to care for i = #(context.parent_dome.labels.Colonist or empty_table), 1, -1 do local colonist = context.parent_dome.labels.Colonist[i] if IsValid(colonist) then colonist:UpdateResidence() end end end -- If you modified a value then use this, if not remove ObjModified(context) RebuildInfopanel(context) --- end }), }) table.insert(template, #template, seniorsInfo) end
local editor = require('distant.editor') local fn = require('distant.fn') local match = require('luassert.match') local stub = require('luassert.stub') local v = require('distant.vars') describe('editor.write', function() it('should do nothing if the buffer does not have a remote path', function() stub(v.buf, 'remote_path', nil) stub(fn, 'write_file_text') editor.write(123) assert.stub(v.buf.remote_path).was.called_with(123) assert.stub(fn.write_file_text).was.not_called() end) it('should write all lines of the buffer to the remote file', function() local path = 'some/path' local contents = 'some lines\nof text\nfor a file' local content_lines = vim.split(contents, '\n', true) local opts = {a = 3, b = 'test'} stub(v.buf, 'remote_path', path) stub(fn, 'write_file_text', false, true) stub(vim.fn, 'getbufline', content_lines) stub(vim.api, 'nvim_buf_set_option') editor.write(vim.tbl_extend('keep', {buf = 123}, opts)) local _ = match._ assert.stub(v.buf.remote_path).was.called_with(123) assert.stub(vim.fn.getbufline).was.called_with(123, _, _) assert.stub(fn.write_file_text).was.called_with({ path = path, text = contents, buf = 123, a = 3, b = 'test', }) assert.stub(vim.api.nvim_buf_set_option).was.called_with(123, 'modified', false) end) it('should not reset the modified flag if unsuccessful', function() local path = 'some/path' local contents = 'some lines\nof text\nfor a file' local content_lines = vim.split(contents, '\n', true) local opts = {a = 3, b = 'test'} stub(v.buf, 'remote_path', path) stub(fn, 'write_file_text', 'some error', nil) stub(vim.fn, 'getbufline', content_lines) stub(vim.api, 'nvim_buf_set_option') -- Fails as we return an error from writing text assert.has.errors(function() editor.write(vim.tbl_extend('keep', {buf = 123}, opts)) end) assert.stub(vim.api.nvim_buf_set_option).was.not_called() end) end)
---@class dsl ---@field transition fun(origin: string): StateTransitionBuilder ---@field policy TransitionPolicyFactory ---@field effect TransitionEffectBuilderFactory local dsl = {}
-- ---------------------------------------------------------------------------- -- -- TickTimer -- -- counts the time elapsed between a start time and time now -- the accurancy of this timer object relies on the frequency -- its methods are called -- ---------------------------------------------------------------------------- local _frmt = string.format local _clock = os.clock local ticktimer = { } ticktimer.__index = ticktimer -- ---------------------------------------------------------------------------- -- function ticktimer.new(inName) inName = inName or "ANY" local t = { m_Name = inName, -- a name for the object m_NextTick = 0, -- next time to fire m_TickFrame = 0, -- firing delay m_Enabled = false, -- timer is actually enabled } return setmetatable(t, ticktimer) end -- ---------------------------------------------------------------------------- -- function ticktimer.setup(self, inInterval, inEnabled) self.m_Enabled = inEnabled self.m_TickFrame = inInterval self.m_NextTick = _clock() + self.m_TickFrame end -- ---------------------------------------------------------------------------- -- function ticktimer.reset(self) self.m_NextTick = _clock() + self.m_TickFrame end -- ---------------------------------------------------------------------------- -- function ticktimer.enable(self, inEnable) self.m_Enabled = inEnable end -- ---------------------------------------------------------------------------- -- function ticktimer.isEnabled(self) return self.m_Enabled end -- ---------------------------------------------------------------------------- -- function ticktimer.hasFired(self) if self.m_Enabled then return _clock( ) >= self.m_NextTick end -- timer is disabled -- return false end -- ---------------------------------------------------------------------------- -- function ticktimer.remainingTime(self) return self.m_NextTick - _clock() end -- ---------------------------------------------------------------------------- -- function ticktimer.elapsedTime(self) return _clock() - (self.m_NextTick - self.m_TickFrame) end -- ---------------------------------------------------------------------------- -- function ticktimer.toString(self) local sEnable = "Disabled" if self.m_Enabled then sEnable = "Enabled" end return _frmt("[%s] [%s] remaining [%.04f]", self.m_Name, sEnable, self:remainingTime()) end -- ---------------------------------------------------------------------------- -- return ticktimer -- ---------------------------------------------------------------------------- -- ----------------------------------------------------------------------------
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]] local nixio = require "nixio" local table = require "table" local uci = require "luci.model.uci" local os = require "os" local io = require "io" local pairs, require, pcall, assert, type = pairs, require, pcall, assert, type local ipairs, tonumber, collectgarbage = ipairs, tonumber, collectgarbage module "luci.lucid" local slaves = {} local pollt = {} local tickt = {} local tpids = {} local tcount = 0 local ifaddrs = nixio.getifaddrs() cursor = uci.cursor() state = uci.cursor_state() UCINAME = "lucid" local cursor = cursor local state = state local UCINAME = UCINAME local SSTATE = "/tmp/.lucid_store" --- Starts a new LuCId superprocess. function start() state:revert(UCINAME, "main") prepare() local detach = cursor:get(UCINAME, "main", "daemonize") if detach == "1" then local stat, code, msg = daemonize() if not stat then nixio.syslog("crit", "Unable to detach process: " .. msg .. "\n") ox.exit(2) end end state:set(UCINAME, "main", "pid", nixio.getpid()) state:save(UCINAME) run() end --- Returns the PID of the currently active LuCId process. function running() local pid = tonumber(state:get(UCINAME, "main", "pid")) return pid and nixio.kill(pid, 0) and pid end --- Stops any running LuCId superprocess. function stop() local pid = tonumber(state:get(UCINAME, "main", "pid")) if pid then return nixio.kill(pid, nixio.const.SIGTERM) end return false end --- Prepares the slaves, daemons and publishers, allocate resources. function prepare() local debug = tonumber((cursor:get(UCINAME, "main", "debug"))) nixio.openlog("lucid", "pid", "perror") if debug ~= 1 then nixio.setlogmask("warning") end cursor:foreach(UCINAME, "daemon", function(config) if config.enabled ~= "1" then return end local key = config[".name"] if not config.slave then nixio.syslog("crit", "Daemon "..key.." is missing a slave\n") os.exit(1) else nixio.syslog("info", "Initializing daemon " .. key) end state:revert(UCINAME, key) local daemon, code, err = prepare_daemon(config) if daemon then state:set(UCINAME, key, "status", "started") nixio.syslog("info", "Prepared daemon " .. key) else state:set(UCINAME, key, "status", "error") state:set(UCINAME, key, "error", err) nixio.syslog("err", "Failed to initialize daemon "..key..": ".. err .. "\n") end end) end --- Run the superprocess if prepared before. -- This main function of LuCId will wait for events on given file descriptors. function run() local pollint = tonumber((cursor:get(UCINAME, "main", "pollinterval"))) local threadlimit = tonumber((cursor:get(UCINAME, "main", "threadlimit"))) while true do local stat, code = nixio.poll(pollt, pollint) if stat and stat > 0 then local ok = false for _, polle in ipairs(pollt) do if polle.revents ~= 0 and polle.handler then ok = ok or polle.handler(polle) end end if not ok then -- Avoid high CPU usage if thread limit is reached nixio.nanosleep(0, 100000000) end elseif stat == 0 then ifaddrs = nixio.getifaddrs() end for _, cb in ipairs(tickt) do cb() end local pid, stat, code = nixio.wait(-1, "nohang") while pid and pid > 0 do nixio.syslog("info", "Buried thread: " .. pid) if tpids[pid] then tcount = tcount - 1 if tpids[pid] ~= true then tpids[pid](pid, stat, code) end tpids[pid] = nil end pid, stat, code = nixio.wait(-1, "nohang") end end end --- Add a file descriptor for the main loop and associate handler functions. -- @param polle Table containing: {fd = FILE DESCRIPTOR, events = POLL EVENTS, -- handler = EVENT HANDLER CALLBACK} -- @see unregister_pollfd -- @return boolean status function register_pollfd(polle) pollt[#pollt+1] = polle return true end --- Unregister a file desciptor and associate handler from the main loop. -- @param polle Poll descriptor -- @see register_pollfd -- @return boolean status function unregister_pollfd(polle) for k, v in ipairs(pollt) do if v == polle then table.remove(pollt, k) return true end end return false end --- Close all registered file descriptors from main loop. -- This is useful for forked child processes. function close_pollfds() for k, v in ipairs(pollt) do if v.fd and v.fd.close then v.fd:close() end end end --- Register a tick function that will be called at each cycle of the main loop. -- @param cb Callback -- @see unregister_tick -- @return boolean status function register_tick(cb) tickt[#tickt+1] = cb return true end --- Unregister a tick function from the main loop. -- @param cb Callback -- @see register_tick -- @return boolean status function unregister_tick(cb) for k, v in ipairs(tickt) do if v == cb then table.remove(tickt, k) return true end end return false end --- Tests whether a given number of processes can be created. -- @oaram num Processes to be created -- @return boolean status function try_process(num) local threadlimit = tonumber((cursor:get(UCINAME, "main", "threadlimit"))) return not threadlimit or (threadlimit - tcount) >= (num or 1) end --- Create a new child process from a Lua function and assign a destructor. -- @param threadcb main function of the new process -- @param waitcb destructor callback -- @return process identifier or nil, error code, error message function create_process(threadcb, waitcb) local threadlimit = tonumber(cursor:get(UCINAME, "main", "threadlimit")) if threadlimit and tcount >= threadlimit then nixio.syslog("warning", "Cannot create thread: process limit reached") return nil else collectgarbage("collect") end local pid, code, err = nixio.fork() if pid and pid ~= 0 then nixio.syslog("info", "Created thread: " .. pid) tpids[pid] = waitcb or true tcount = tcount + 1 elseif pid == 0 then local code = threadcb() os.exit(code) else nixio.syslog("err", "Unable to fork(): " .. err) end return pid, code, err end --- Prepare a daemon from a given configuration table. -- @param config Configuration data. -- @return boolean status or nil, error code, error message function prepare_daemon(config) nixio.syslog("info", "Preparing daemon " .. config[".name"]) local modname = cursor:get(UCINAME, config.slave) if not modname then return nil, -1, "invalid slave" end local stat, module = pcall(require, _NAME .. "." .. modname) if not stat or not module.prepare_daemon then return nil, -2, "slave type not supported" end config.slave = prepare_slave(config.slave) return module.prepare_daemon(config, _M) end --- Prepare a slave. -- @param name slave name -- @return table containing slave module and configuration or nil, error message function prepare_slave(name) local slave = slaves[name] if not slave then local config = cursor:get_all(UCINAME, name) local stat, module = pcall(require, config and config.entrypoint) if stat then slave = {module = module, config = config} end end if slave then return slave else return nil, module end end --- Return a list of available network interfaces on the host. -- @return table returned by nixio.getifaddrs() function get_interfaces() return ifaddrs end --- Revoke process privileges. -- @param user new user name or uid -- @param group new group name or gid -- @return boolean status or nil, error code, error message function revoke_privileges(user, group) if nixio.getuid() == 0 then return nixio.setgid(group) and nixio.setuid(user) end end --- Return a secure UCI cursor. -- @return UCI cursor function securestate() local stat = nixio.fs.stat(SSTATE) or {} local uid = nixio.getuid() if stat.type ~= "dir" or (stat.modedec % 100) ~= 0 or stat.uid ~= uid then nixio.fs.remover(SSTATE) if not nixio.fs.mkdir(SSTATE, 700) then local errno = nixio.errno() nixio.syslog("err", "Integrity check on secure state failed!") return nil, errno, nixio.perror(errno) end end return uci.cursor(nil, SSTATE) end --- Daemonize the process. -- @return boolean status or nil, error code, error message function daemonize() if nixio.getppid() == 1 then return end local pid, code, msg = nixio.fork() if not pid then return nil, code, msg elseif pid > 0 then os.exit(0) end nixio.setsid() nixio.chdir("/") local devnull = nixio.open("/dev/null", nixio.open_flags("rdwr")) nixio.dup(devnull, nixio.stdin) nixio.dup(devnull, nixio.stdout) nixio.dup(devnull, nixio.stderr) return true end
slot0 = class("MusicCollectionView", import("..base.BaseSubView")) slot0.getUIName = function (slot0) return "MusicCollectionUI" end slot0.OnInit = function (slot0) slot0:initData() slot0:findUI() slot0:addListener() slot0:initPlateListPanel() slot0:initSongListPanel() slot0:Show() slot0:recoverRunData() slot0:initTimer() slot0:tryShowTipMsgBox() end slot0.OnDestroy = function (slot0) slot0:stopMusic() slot0.resLoader:Clear() if slot0.playProgressTimer then slot0.playProgressTimer:Stop() slot0.playProgressTimer = nil end if slot0.downloadCheckTimer then slot0.downloadCheckTimer:Stop() slot0.downloadCheckTimer = nil end if slot0.playbackInfo then slot0.playbackInfo = nil end if slot0.appreciateUnlockMsgBox and slot0.appreciateUnlockMsgBox:CheckState(BaseSubView.STATES.INITED) then slot0.appreciateUnlockMsgBox:Destroy() end slot0:closeSongListPanel(true) end slot0.onBackPressed = function (slot0) if slot0.appreciateUnlockMsgBox and slot0.appreciateUnlockMsgBox:CheckState(BaseSubView.STATES.INITED) then slot0.appreciateUnlockMsgBox:hideCustomMsgBox() slot0.appreciateUnlockMsgBox:Destroy() return false elseif isActive(slot0.songListPanel) then slot0:closeSongListPanel() return false else return true end end slot0.initData = function (slot0) slot0.appreciateProxy = getProxy(AppreciateProxy) slot0.appreciateProxy:checkMusicFileState() slot0.resLoader = AutoLoader.New() slot0.criMgr = pg.CriMgr.GetInstance() slot0.manager = BundleWizard.Inst:GetGroupMgr("GALLERY_BGM") slot0.downloadCheckIDList = {} slot0.downloadCheckTimer = nil slot0.musicForShowConfigList = {} slot0.plateTFList = {} slot0.songTFList = {} slot0.curMidddleIndex = 1 slot0.sortValue = MusicCollectionConst.Sort_Order_Up slot0.likeValue = MusicCollectionConst.Filte_Normal_Value slot0.isPlayingAni = false slot0.cueData = nil slot0.playbackInfo = nil slot0.playProgressTimer = nil slot0.onDrag = false slot0.hadDrag = false slot0.isPlayingSong = false end slot0.saveRunData = function (slot0) slot0.appreciateProxy:updateMusicRunData(slot0.sortValue, slot0.curMidddleIndex, slot0.likeValue) end slot0.recoverRunData = function (slot0) slot1 = slot0.appreciateProxy:getMusicRunData() slot0.sortValue = slot1.sortValue slot0.curMidddleIndex = slot1.middleIndex slot0.likeValue = slot1.likeValue slot0.musicForShowConfigList = slot0:fliteMusicConfigForShow() slot0:sortMusicConfigList(slot0.sortValue == MusicCollectionConst.Sort_Order_Down) slot0.musicForShowConfigList = slot0:filteMusicConfigByLike() slot0.lScrollPageSC.MiddleIndexOnInit = slot0.curMidddleIndex - 1 slot0:updatePlateListPanel() slot0:updateSongListPanel() slot0:updatePlayPanel() slot0:updateSortToggle() slot0:updateLikeToggle() if not slot0.appreciateProxy:isMusicHaveNewRes() then slot0:tryPlayMusic() end end slot0.findUI = function (slot0) setLocalPosition(slot0._tf, Vector2.zero) slot0._tf.anchorMin = Vector2.zero slot0._tf.anchorMax = Vector2.one slot0._tf.offsetMax = Vector2.zero slot0._tf.offsetMin = Vector2.zero slot0.topPanel = slot0:findTF("TopPanel") slot0.likeFilteToggle = slot0:findTF("LikeBtn", slot0.topPanel) slot0.sortToggle = slot0:findTF("SortBtn", slot0.topPanel) slot0.songNameText = slot0:findTF("MusicNameMask/MusicName", slot0.topPanel) slot0.staicImg = slot0:findTF("SoundImg", slot0.topPanel) slot0.playingAni = slot0:findTF("SoundAni", slot0.topPanel) slot0.resRepaireBtn = slot0:findTF("RepaireBtn", slot0.topPanel) setActive(slot0.likeFilteToggle, true) slot0.plateListPanel = slot0:findTF("PlateList") slot0.plateTpl = slot0:findTF("Plate", slot0.plateListPanel) slot0.lScrollPageSC = GetComponent(slot0.plateListPanel, "LScrollPage") slot0.playPanel = slot0:findTF("PLayPanel") slot0.playPanelNameText = slot0:findTF("NameText", slot0.playPanel) slot0.likeToggle = slot0:findTF("LikeBtn", slot0.playPanel) slot0.songImg = slot0:findTF("SongImg", slot0.playPanel) slot0.pauseBtn = slot0:findTF("PlayingBtn", slot0.playPanel) slot0.playBtn = slot0:findTF("StopingBtn", slot0.playPanel) slot0.lockImg = slot0:findTF("LockedBtn", slot0.playPanel) slot0.nextBtn = slot0:findTF("NextBtn", slot0.playPanel) slot0.preBtn = slot0:findTF("PreBtn", slot0.playPanel) slot0.playProgressBar = slot0:findTF("Progress", slot0.playPanel) slot0.nowTimeText = slot0:findTF("NowTimeText", slot0.playProgressBar) slot0.totalTimeText = slot0:findTF("TotalTimeText", slot0.playProgressBar) slot0.playSliderSC = GetComponent(slot0.playProgressBar, "LSlider") slot0.listBtn = slot0:findTF("ListBtn", slot0.playPanel) setActive(slot0.likeToggle, true) slot0.songListPanel = slot0:findTF("SongListPanel") slot0.closeBtn = slot0:findTF("BG", slot0.songListPanel) slot0.panel = slot0:findTF("Panel", slot0.songListPanel) slot0.songContainer = slot0:findTF("Container/Viewport/Content", slot0.panel) slot0.songTpl = slot0:findTF("SongTpl", slot0.panel) slot0.upToggle = slot0:findTF("BG2/UpToggle", slot0.panel) slot0.downToggle = slot0:findTF("BG2/DownToggle", slot0.panel) slot0.songUIItemList = UIItemList.New(slot0.songContainer, slot0.songTpl) slot0.emptyPanel = slot0:findTF("EmptyPanel") slot0.upImg1 = slot0:findTF("Up", slot0.sortToggle) slot0.downImg1 = slot0:findTF("Down", slot0.sortToggle) slot0.upImg2 = slot0:findTF("SelImg", slot0.upToggle) slot0.downImg2 = slot0:findTF("SelImg", slot0.downToggle) slot0.likeFilteOffImg = slot0:findTF("Off", slot0.likeFilteToggle) slot0.likeFilteOnImg = slot0:findTF("On", slot0.likeFilteToggle) slot0.likeOffImg = slot0:findTF("Off", slot0.likeToggle) slot0.likeOnImg = slot0:findTF("On", slot0.likeToggle) end slot0.addListener = function (slot0) onButton(slot0, slot0.listBtn, function () slot0:openSongListPanel() end, SFX_PANEL) onButton(slot0, slot0.closeBtn, function () slot0:closeSongListPanel() end, SFX_PANEL) onButton(slot0, slot0.resRepaireBtn, function () pg.MsgboxMgr.GetInstance().ShowMsgBox(slot1, { hideYes = true, content = i18n("resource_verify_warn"), custom = { { text = i18n("msgbox_repair"), onCallback = function () if PathMgr.FileExists(Application.persistentDataPath .. "/hashes-bgm.csv") then BundleWizard.Inst:GetGroupMgr("GALLERY_BGM"):StartVerifyForLua() else pg.TipsMgr.GetInstance():ShowTips(i18n("word_no_cache")) end end } } }) end, SFX_PANEL) onButton(slot0, slot0.sortToggle, function () slot0.sortValue = (slot0.sortValue == MusicCollectionConst.Sort_Order_Up and MusicCollectionConst.Sort_Order_Down) or MusicCollectionConst.Sort_Order_Up slot0:saveRunData() slot0(slot0.saveRunData, slot0.sortValue == MusicCollectionConst.Sort_Order_Down) end, SFX_PANEL) onButton(slot0, slot0.upToggle, function () if slot0.sortValue == MusicCollectionConst.Sort_Order_Up then return else slot0.sortValue = MusicCollectionConst.Sort_Order_Up slot0:saveRunData() slot0.saveRunData:sortAndUpdate(false) end end, SFX_PANEL) onButton(slot0, slot0.downToggle, function () if slot0.sortValue == MusicCollectionConst.Sort_Order_Down then return else slot0.sortValue = MusicCollectionConst.Sort_Order_Down slot0:saveRunData() slot0.saveRunData:sortAndUpdate(true) end end, SFX_PANEL) onButton(slot0, slot0.likeFilteToggle, function () slot0.likeValue = (slot0.likeValue == MusicCollectionConst.Filte_Normal_Value and MusicCollectionConst.Filte_Like_Value) or MusicCollectionConst.Filte_Normal_Value slot0:saveRunData() slot0(slot0.saveRunData, slot0.sortValue == MusicCollectionConst.Sort_Order_Down) end, SFX_PANEL) onButton(slot0, slot0.playBtn, function () if not slot0.playbackInfo then slot0:playMusic() elseif slot0.hadDrag then slot0.hadDrag = false slot0.playbackInfo:SetStartTimeAndPlay(slot0.playSliderSC.value) slot0.playbackInfo.SetStartTimeAndPlay.playProgressTimer:Start() else slot0.playbackInfo.playback:Resume(CriAtomEx.ResumeMode.PausedPlayback) end setActive(slot0.playingAni, true) setActive(slot0.staicImg, false) SetActive(slot0.pauseBtn, true) SetActive(slot0.playBtn, false) end, SFX_PANEL) onButton(slot0, slot0.pauseBtn, function () if slot0.playbackInfo then slot0.playbackInfo.playback:Pause() end setActive(slot0.playingAni, false) setActive(slot0.staicImg, true) SetActive(slot0.pauseBtn, false) SetActive(slot0.playBtn, true) end, SFX_PANEL) onButton(slot0, slot0.preBtn, function () if slot0.curMidddleIndex == 1 then pg.TipsMgr.GetInstance():ShowTips(i18n("res_music_no_pre_tip")) elseif not slot0.isPlayingAni then slot0:setAniState(true) slot0.setAniState:closePlateAni(slot0.plateTFList[slot0.curMidddleIndex]) slot0.setAniState.closePlateAni.lScrollPageSC:MoveToItemID(slot0.curMidddleIndex - 1 - 1) end end, SFX_PANEL) onButton(slot0, slot0.nextBtn, function () if slot0.curMidddleIndex == #slot0.musicForShowConfigList then pg.TipsMgr.GetInstance():ShowTips(i18n("res_music_no_next_tip")) elseif not slot0.isPlayingAni then slot0:setAniState(true) slot0.setAniState:closePlateAni(slot0.plateTFList[slot0.curMidddleIndex]) slot0.setAniState.closePlateAni.lScrollPageSC:MoveToItemID((slot0.curMidddleIndex + 1) - 1) end end, SFX_PANEL) onButton(slot0, slot0.likeToggle, function () if slot0.appreciateProxy:isLikedByMusicID(slot0:getMusicConfigForShowByIndex(slot0.curMidddleIndex).id) == true then pg.m02:sendNotification(GAME.APPRECIATE_MUSIC_LIKE, { isAdd = 1, musicID = slot1 }) setActive(slot0.likeOnImg, false) slot0:updateSongTFLikeImg(slot0.songTFList[slot0.curMidddleIndex], false) else pg.m02:sendNotification(GAME.APPRECIATE_MUSIC_LIKE, { isAdd = 0, musicID = slot1 }) setActive(slot0.likeOnImg, true) slot0:updateSongTFLikeImg(slot0.songTFList[slot0.curMidddleIndex], true) end end, SFX_PANEL) slot0.playSliderSC.AddPointDownFunc(slot1, function (slot0) if slot0.playbackInfo and not slot0.onDrag then slot0.onDrag = true if slot0.playbackInfo.playback:IsPaused() then else slot0.playbackInfo.playback:Stop(true) end slot0.playProgressTimer:Stop() end end) slot0.playSliderSC.AddPointUpFunc(slot1, function (slot0) if slot0.playbackInfo and slot0.onDrag then slot0.onDrag = false if slot0.playbackInfo.playback:IsPaused() then slot0.hadDrag = true else slot0.playbackInfo:SetStartTimeAndPlay(slot0.playSliderSC.value) slot0.playProgressTimer:Start() end else slot0.playSliderSC:SetValueWithoutEvent(0) end end) end slot0.tryShowTipMsgBox = function (slot0) if slot0.appreciateProxy:isMusicHaveNewRes() then pg.MsgboxMgr.GetInstance().ShowMsgBox(slot3, { hideClose = true, hideNo = true, content = i18n("res_music_new_tip", MusicCollectionConst.NewCount), onYes = function () slot0.lScrollPageSC:MoveToItemID(MusicCollectionConst.AutoScrollIndex - 1) PlayerPrefs.SetInt("musicVersion", MusicCollectionConst.Version) PlayerPrefs.SetInt:emit(CollectionScene.UPDATE_RED_POINT) end, onCancel = function () slot0.lScrollPageSC.MoveToItemID(MusicCollectionConst.AutoScrollIndex - 1) PlayerPrefs.SetInt("musicVersion", MusicCollectionConst.Version) PlayerPrefs.SetInt.emit(CollectionScene.UPDATE_RED_POINT) end, onClose = function () slot0.lScrollPageSC.MoveToItemID(MusicCollectionConst.AutoScrollIndex - 1) PlayerPrefs.SetInt("musicVersion", MusicCollectionConst.Version) PlayerPrefs.SetInt.emit(CollectionScene.UPDATE_RED_POINT) end }) end end slot0.initPlateListPanel = function (slot0) slot0.lScrollPageSC.itemInitedCallback = function (slot0, slot1) slot0.plateTFList[slot0 + 1] = slot1 slot0:updatePlateTF(slot1, slot0) end slot0.lScrollPageSC.itemClickCallback = function (slot0, slot1) if slot0.curMidddleIndex ~= slot0 + 1 and not slot0.isPlayingAni then slot0:setAniState(true) slot0:closePlateAni(slot0.plateTFList[slot0.curMidddleIndex]) slot0.lScrollPageSC:MoveToItemID(slot0) end end slot0.lScrollPageSC.itemPitchCallback = function (slot0, slot1) slot2 = slot0 + 1 slot0:stopMusic() slot0:checkUpdateSongTF() slot0.curMidddleIndex = slot0 + 1 slot0:saveRunData() slot0:playPlateAni(slot1, true) slot0:updatePlayPanel() slot0:tryPlayMusic() end slot0.lScrollPageSC.itemRecycleCallback = function (slot0, slot1) slot0.plateTFList[slot0 + 1] = nil end addSlip(SLIP_TYPE_HRZ, slot0.plateListPanel, function () if slot0.curMidddleIndex > 1 and not slot0.isPlayingAni then slot0:setAniState(true) slot0.setAniState.lScrollPageSC:MoveToItemID(slot0.curMidddleIndex - 1 - 1) slot0.setAniState.lScrollPageSC.MoveToItemID:closePlateAni(slot0.plateTFList[slot0.curMidddleIndex]) end end, function () if slot0.curMidddleIndex < slot0.lScrollPageSC.DataCount and not slot0.isPlayingAni then slot0:setAniState(true) slot0.setAniState.lScrollPageSC:MoveToItemID((slot0.curMidddleIndex + 1) - 1) slot0.setAniState.lScrollPageSC.MoveToItemID:closePlateAni(slot0.plateTFList[slot0.curMidddleIndex]) end end) end slot0.updatePlateListPanel = function (slot0) slot0.plateTFList = {} if #slot0.musicForShowConfigList == 0 then setActive(slot0.plateListPanel, false) return else setActive(slot0.plateListPanel, true) end slot0.lScrollPageSC.DataCount = #slot0.musicForShowConfigList slot0.lScrollPageSC:Init(slot0.curMidddleIndex - 1) end slot0.updatePlateTF = function (slot0, slot1, slot2) if #slot0.musicForShowConfigList == 0 then return end slot3 = slot0:findTF("CirclePanel/SmallImg", slot1) slot6 = slot0:findTF("BlackMask", slot1) slot7 = slot0:findTF("Lock", slot6) slot8 = slot0:findTF("UnlockTipText", slot6) slot9 = slot0:findTF("UnlockBtn", slot6) slot10 = slot0:findTF("DownloadBtn", slot6) setText(slot11, i18n("res_downloading")) slot0.resLoader:LoadSprite(slot15, slot14, slot4, false) setText(slot5, "#" .. slot12) slot17, slot18 = nil slot18 = slot0.appreciateProxy:getMusicExistStateByID(slot16) if slot0:getMusicStateByID(slot0:getMusicConfigForShowByIndex(slot12).id) == GalleryConst.CardStates.DirectShow then print("is impossible to go to this, something wrong") if slot18 then setActive(slot6, false) else setActive(slot6, true) setActive(slot7, false) setActive(slot8, false) setActive(slot9, false) setActive(slot10, true) setActive(slot11, false) end elseif slot17 == GalleryConst.CardStates.Unlocked then if slot18 then setActive(slot6, false) else if slot0.manager.state == DownloadState.None or slot19 == DownloadState.CheckFailure then slot0.manager:CheckD() end if slot0.manager:CheckF(MusicCollectionConst.MUSIC_SONG_PATH_PREFIX .. slot20 .. ".b") == DownloadState.None or slot22 == DownloadState.CheckToUpdate or slot22 == DownloadState.UpdateFailure then setActive(slot6, true) setActive(slot7, false) setActive(slot8, false) setActive(slot9, false) setActive(slot10, true) setActive(slot11, false) table.removebyvalue(slot0.downloadCheckIDList, slot16, true) onButton(slot0, slot10, function () function slot0() setActive(setActive, true) setActive(setActive, false) setActive(false, false) setActive(slot3, false) setActive(slot4, false) setActive(slot5, true) VersionMgr.Inst:RequestUIForUpdateF("GALLERY_BGM", slot6, false) if not table.contains(slot7.downloadCheckIDList, slot8) then table.insert(slot7.downloadCheckIDList, slot8) end slot7:tryStartDownloadCheckTimer() end if Application.internetReachability == UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork then pg.MsgboxMgr.GetInstance().ShowMsgBox(slot1, { content = i18n("res_wifi_tip"), onYes = slot0 }) else slot0() end end, SFX_PANEL) elseif slot22 == DownloadState.Updating then setActive(slot6, true) setActive(slot7, false) setActive(slot8, false) setActive(slot9, false) setActive(slot10, false) setActive(slot11, true) elseif PathMgr.FileExists(PathMgr.getAssetBundle(slot21)) then slot0.appreciateProxy:updateMusicFileExistStateTable(slot16, true) table.removebyvalue(slot0.downloadCheckIDList, slot16, true) if #slot0.downloadCheckIDList == 0 and slot0.downloadCheckTimer then slot0.downloadCheckTimer:Stop() slot0.downloadCheckTimer = nil end setActive(slot6, false) slot0:updatePlayPanel() end end elseif slot17 == GalleryConst.CardStates.Unlockable then setActive(slot6, true) setActive(slot7, true) setActive(slot8, false) setActive(slot9, true) setActive(slot10, false) setActive(slot11, false) onButton(slot0, slot9, function () if not slot0.appreciateUnlockMsgBox then slot0.appreciateUnlockMsgBox = AppreciateUnlockMsgBox.New(slot0._tf, slot0.event, slot0.contextData) end slot0.appreciateUnlockMsgBox:Reset() slot0.appreciateUnlockMsgBox.Reset.appreciateUnlockMsgBox:Load() slot0.appreciateUnlockMsgBox.Reset.appreciateUnlockMsgBox.Load.appreciateUnlockMsgBox:ActionInvoke("showCustomMsgBox", { content = i18n("res_unlock_tip"), items = slot0.appreciateProxy:getMusicUnlockMaterialByID(slot0.appreciateUnlockMsgBox.Reset.appreciateUnlockMsgBox.Load.appreciateUnlockMsgBox), onYes = function () pg.m02:sendNotification(GAME.APPRECIATE_MUSIC_UNLOCK, { musicID = slot0, unlockCBFunc = function () slot0:updatePlateTF(slot0, ) slot0.updatePlateTF:updateSongTF(slot0.songTFList[slot2 + 1], slot2 + 1) slot0.updatePlateTF.updateSongTF:updatePlayPanel() slot0.updatePlateTF.updateSongTF.updatePlayPanel:tryPlayMusic() slot0.updatePlateTF.updateSongTF.updatePlayPanel.tryPlayMusic.appreciateUnlockMsgBox:hideCustomMsgBox() end }) end }) end, SFX_PANEL) elseif slot17 == GalleryConst.CardStates.DisUnlockable then setActive(slot6, true) setActive(slot7, true) setActive(slot8, true) setActive(slot9, false) setActive(slot10, false) setActive(slot11, false) setText(slot8, slot13.illustrate) end end slot0.initSongListPanel = function (slot0) slot0.songUIItemList:make(function (slot0, slot1, slot2) if slot0 == UIItemList.EventUpdate then slot0.songTFList[slot1 + 1] = slot2 slot0:updateSongTF(slot2, slot1 + 1) end end) end slot0.updateSongListPanel = function (slot0) slot0.songTFList = {} if #slot0.musicForShowConfigList == 0 then return end slot0.songUIItemList:align(#slot0.musicForShowConfigList) end slot0.updateSongTF = function (slot0, slot1, slot2) if #slot0.musicForShowConfigList == 0 then return end slot4 = slot0:findTF("IndexText", slot3) slot6 = slot0:findTF("NameText", slot3) slot7 = slot0:findTF("PlayingImg", slot3) slot8 = slot0:findTF("DownloadImg", slot3) slot9 = slot0:findTF("LockImg", slot3) setActive(slot5, true) slot0:updateSongTFLikeImg(slot1, slot0.appreciateProxy:isLikedByMusicID(slot11)) slot12, slot13 = nil slot13 = slot0.appreciateProxy:getMusicExistStateByID(slot11) slot16 = slot0.manager:CheckF(slot15) slot17 = nil if slot0:getMusicStateByID(slot11) == MusicCollectionConst.MusicStates.Unlockable then slot17 = MusicCollectionConst.Color_Of_Empty_Song setActive(slot7, false) setActive(slot8, false) setActive(slot9, true) elseif slot12 == MusicCollectionConst.MusicStates.DisUnlockable then slot17 = MusicCollectionConst.Color_Of_Empty_Song setActive(slot7, false) setActive(slot8, false) setActive(slot9, true) elseif slot12 == MusicCollectionConst.MusicStates.Unlocked then if slot13 then slot18 = slot0.isPlayingSong slot19 = slot2 == slot0.curMidddleIndex if slot18 and slot19 then slot17 = MusicCollectionConst.Color_Of_Playing_Song setActive(slot7, true) setActive(slot8, false) setActive(slot9, false) else slot17 = MusicCollectionConst.Color_Of_Normal_Song setActive(slot7, false) setActive(slot8, false) setActive(slot9, false) end elseif slot16 == DownloadState.None or slot16 == DownloadState.CheckToUpdate or slot16 == DownloadState.UpdateFailure then slot17 = MusicCollectionConst.Color_Of_Empty_Song setActive(slot7, false) setActive(slot8, false) setActive(slot9, false) table.removebyvalue(slot0.downloadCheckIDList, slot11, true) if #slot0.downloadCheckIDList == 0 and slot0.downloadCheckTimer then slot0.downloadCheckTimer:Stop() slot0.downloadCheckTimer = nil return end elseif slot16 == DownloadState.Updating then slot17 = MusicCollectionConst.Color_Of_Empty_Song setActive(slot7, false) setActive(slot8, true) setActive(slot9, false) else setActive(slot7, false) setActive(slot8, false) setActive(slot9, false) if PathMgr.FileExists(PathMgr.getAssetBundle(slot15)) then slot17 = MusicCollectionConst.Color_Of_Normal_Song slot0.appreciateProxy:updateMusicFileExistStateTable(slot11, true) table.removebyvalue(slot0.downloadCheckIDList, slot11, true) if #slot0.downloadCheckIDList == 0 and slot0.downloadCheckTimer then slot0.downloadCheckTimer:Stop() slot0.downloadCheckTimer = nil end end end end setText(slot4, slot2) setText(slot6, setColorStr(slot10.name, slot17)) onButton(slot0, slot3, function () if slot0.isPlayingAni then return else if slot1 == MusicCollectionConst.MusicStates.Unlocked then if slot2 then if not isActive(slot3) then slot0:setAniState(true) slot0.setAniState:closePlateAni(slot0.plateTFList[slot0.curMidddleIndex]) slot0.setAniState.closePlateAni.lScrollPageSC:MoveToItemID(slot4 - 1) end else function slot0() setActive(setActive, false) setActive(setActive, true) setActive(true, false) VersionMgr.Inst:RequestUIForUpdateF("GALLERY_BGM", slot3, false) if not table.contains(slot4.downloadCheckIDList, slot5) then table.insert(slot4.downloadCheckIDList, slot5) end slot4:tryStartDownloadCheckTimer() slot4:setAniState(true) slot4:closePlateAni(slot4.plateTFList[slot4.curMidddleIndex]) slot4.lScrollPageSC:MoveToItemID(slot6 - 1) end if Application.internetReachability == UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork then pg.MsgboxMgr.GetInstance().ShowMsgBox(slot1, { content = i18n("res_wifi_tip"), onYes = slot0 }) else slot0() end end elseif slot1 == MusicCollectionConst.MusicStates.DisUnlockable then pg.TipsMgr.GetInstance():ShowTips(slot9.illustrate) elseif slot1 == MusicCollectionConst.MusicStates.Unlockable then if not slot0.appreciateUnlockMsgBox then slot0.appreciateUnlockMsgBox = AppreciateUnlockMsgBox.New(slot0._tf, slot0.event, slot0.contextData) end slot0.appreciateUnlockMsgBox:Reset() slot0.appreciateUnlockMsgBox.Reset.appreciateUnlockMsgBox:Load() slot0.appreciateUnlockMsgBox.Reset.appreciateUnlockMsgBox.Load.appreciateUnlockMsgBox:ActionInvoke("showCustomMsgBox", { content = i18n("res_unlock_tip"), items = slot0.appreciateProxy:getMusicUnlockMaterialByID(slot8), onYes = function () pg.m02:sendNotification(GAME.APPRECIATE_MUSIC_UNLOCK, { musicID = slot0, unlockCBFunc = function () slot0.lScrollPageSC:MoveToItemID(slot1 - 1) if slot0.lScrollPageSC.MoveToItemID.plateTFList[slot0.lScrollPageSC] then slot0:updatePlateTF(slot0.plateTFList[slot1], slot1 - 1) end slot0:updateSongTF(slot2, slot0) slot0.updateSongTF.appreciateUnlockMsgBox:hideCustomMsgBox() end }) end }) end slot0.closeSongListPanel(slot0) end end, SFX_PANEL) end slot0.updateSongTFLikeImg = function (slot0, slot1, slot2) setActive(slot4, true) triggerToggle(slot0:findTF("LikeToggle", slot3), slot2) end slot0.updateSortToggle = function (slot0) setActive(slot0.upImg1, slot0.sortValue == MusicCollectionConst.Sort_Order_Up) setActive(slot0.upImg2, slot0.sortValue == MusicCollectionConst.Sort_Order_Up) setActive(slot0.downImg1, slot0.sortValue == MusicCollectionConst.Sort_Order_Down) setActive(slot0.downImg2, slot0.sortValue == MusicCollectionConst.Sort_Order_Down) end slot0.updateLikeToggle = function (slot0) setActive(slot0.likeFilteOnImg, slot0.likeValue == MusicCollectionConst.Filte_Like_Value) end slot0.updatePlayPanel = function (slot0) if #slot0.musicForShowConfigList == 0 then setActive(slot0.playPanel, false) setActive(slot0.playingAni, false) setActive(slot0.staicImg, false) setActive(slot0.songNameText, false) setActive(slot0.emptyPanel, true) return else setActive(slot0.playPanel, true) setActive(slot0.playingAni, false) setActive(slot0.staicImg, true) setActive(slot0.songNameText, true) setActive(slot0.emptyPanel, false) end slot1 = slot0:getMusicConfigForShowByIndex(slot0.curMidddleIndex) slot0.resLoader:LoadSprite(slot3, slot2, slot0.songImg, false) setScrollText(slot0.songNameText, slot4) setText(slot0.playPanelNameText, slot4) setActive(slot0.likeOnImg, slot0.appreciateProxy:isLikedByMusicID(slot1.id)) slot5 = nil if slot0:getMusicStateByID(slot1.id) == GalleryConst.CardStates.Unlockable or slot5 == GalleryConst.CardStates.DisUnlockable then setActive(slot0.likeToggle, false) else setActive(slot0.likeToggle, true) end if not slot0:isCanPlayByMusicID(slot1.id) then setActive(slot0.playBtn, false) setActive(slot0.pauseBtn, false) setActive(slot0.lockImg, true) slot0.playSliderSC.enabled = false slot0.playSliderSC:SetValueWithoutEvent(0) setActive(slot0.nowTimeText, false) setActive(slot0.totalTimeText, false) else setActive(slot0.playBtn, true) setActive(slot0.pauseBtn, false) setActive(slot0.lockImg, false) slot0.playSliderSC.enabled = true slot0.playSliderSC:SetValueWithoutEvent(0) setActive(slot0.nowTimeText, true) setActive(slot0.totalTimeText, true) end end slot0.sortAndUpdate = function (slot0, slot1) slot0.curMidddleIndex = 1 slot0:saveRunData() slot0.musicForShowConfigList = slot0:fliteMusicConfigForShow() slot0:sortMusicConfigList(slot1) slot0.musicForShowConfigList = slot0:filteMusicConfigByLike() slot0:stopMusic() slot0:checkUpdateSongTF() slot0:updatePlateListPanel() slot0:updateSongListPanel() slot0:updatePlayPanel() slot0:updateSortToggle() slot0:updateLikeToggle() slot0:tryPlayMusic() end slot0.initTimer = function (slot0) slot0.playProgressTimer = Timer.New(function () if slot0.playbackInfo then slot0 = slot0.playbackInfo:GetTime() slot0.playSliderSC:SetValueWithoutEvent(slot0) setText(slot0.nowTimeText, slot0:descTime(slot0)) if slot0.playbackInfo.playback:GetStatus():ToInt() == 3 then slot0:stopMusic() slot0:checkUpdateSongTF() SetActive(slot0.pauseBtn, false) SetActive(slot0.playBtn, true) slot0:tryPlayMusic() end end end, 0.033, -1) slot0.playProgressTimer.Start(slot1) end slot0.playPlateAni = function (slot0, slot1, slot2, slot3, slot4) setActive(slot5, slot2) setActive(slot0:findTF("BoxImg", slot1), slot2) slot7 = 0.5 if slot2 == true then slot10 = (443 - 198) / slot7 slot13 = (-121 - 0) / slot7 LeanTween.value(go(slot1), 0, slot7, slot7):setOnUpdate(System.Action_float(function (slot0) setAnchoredPosition(slot4, Vector2.New(slot1, 0)) setAnchoredPosition(Vector2.New, Vector2.New(slot1 * slot0 + slot3 * slot0, 0)) end)).setOnComplete(slot14, System.Action(function () setAnchoredPosition(setAnchoredPosition, Vector2.New(setAnchoredPosition, 0)) setAnchoredPosition(Vector2.New, Vector2.New(setAnchoredPosition, 0)) slot4:setAniState(false) end)) return end slot10 = (198 - 448) / slot7 slot13 = ((slot3 - slot4) * (slot0.lScrollPageSC.ItemSize.x + slot0.lScrollPageSC.MarginSize.x) - getAnchoredPosition(slot1).x) / slot7 setAnchoredPosition(slot5, Vector2.New(slot9, 0)) setAnchoredPosition(slot1, Vector2.New((slot3 - slot4) * (slot0.lScrollPageSC.ItemSize.x + slot0.lScrollPageSC.MarginSize.x), 0)) end slot0.closePlateAni = function (slot0, slot1) setActive(slot2, false) setActive(slot3, false) setAnchoredPosition(slot2, Vector2.New(198, 0)) setAnchoredPosition(slot1, Vector2.zero) end slot0.setAniState = function (slot0, slot1) slot0.isPlayingAni = slot1 end slot0.openSongListPanel = function (slot0) pg.UIMgr.GetInstance():BlurPanel(slot0.songListPanel, false, { groupName = LayerWeightConst.GROUP_COLLECTION }) slot0.songListPanel.offsetMax = slot0._tf.parent.offsetMax slot0.songListPanel.offsetMin = slot0._tf.parent.offsetMin setActive(slot0.songListPanel, true) LeanTween.value(go(slot0.panel), -460, 500, 0.3):setOnUpdate(System.Action_float(function (slot0) setAnchoredPosition(slot0.panel, { y = slot0 }) end)).setOnComplete(slot1, System.Action(function () setAnchoredPosition(slot0.panel, { y = 500 }) end)) end slot0.closeSongListPanel = function (slot0, slot1) if slot1 == true then pg.UIMgr.GetInstance():UnblurPanel(slot0.songListPanel, slot0._tf) setActive(slot0.songListPanel, false) end if isActive(slot0.songListPanel) then LeanTween.cancel(go(slot0.panel)) LeanTween.value(go(slot0.panel), slot2, -460, 0.3):setOnUpdate(System.Action_float(function (slot0) setAnchoredPosition(slot0.panel, { y = slot0 }) end)).setOnComplete(slot3, System.Action(function () setAnchoredPosition(slot0.panel, { y = -460 }) pg.UIMgr.GetInstance():UnblurPanel(slot0.songListPanel, slot0._tf) setActive(slot0.songListPanel, false) end)) end end slot0.playMusic = function (slot0) slot2 = slot0:getMusicConfigForShowByIndex(slot0.curMidddleIndex).music if not slot0.cueData then slot0.cueData = CueData.New() end slot0.cueData.channelName = pg.CriMgr.C_GALLERY_MUSIC slot0.cueData.cueSheetName = slot2 slot0.cueData.cueName = "" CriWareMgr.Inst:PlaySound(slot0.cueData, CriWareMgr.CRI_FADE_TYPE.FADE_INOUT, function (slot0) slot0.playbackInfo = slot0 slot0.playbackInfo:SetIgnoreAutoUnload(true) setSlider(slot0.playProgressBar, 0, slot0.playbackInfo:GetLength(), 0) setText(slot0.totalTimeText, slot0:descTime(slot0.playbackInfo:GetLength())) slot0.isPlayingSong = true setActive(slot0.playingAni, true) setActive(slot0.staicImg, false) slot0:updateSongTF(slot0.songTFList[slot0.curMidddleIndex], slot0.curMidddleIndex) end) end slot0.stopMusic = function (slot0) if slot0.playbackInfo then slot0.playbackInfo:SetStartTime(0) CriWareMgr.Inst:StopSound(slot0.cueData, CriWareMgr.CRI_FADE_TYPE.NONE) slot0.playbackInfo = nil slot0.isPlayingSong = false end setActive(slot0.playingAni, false) setActive(slot0.staicImg, true) slot0.playSliderSC:SetValueWithoutEvent(0) setText(slot0.nowTimeText, slot0:descTime(0)) end slot0.checkUpdateSongTF = function (slot0) if #slot0.songTFList > 0 then slot0:updateSongTF(slot0.songTFList[slot0.curMidddleIndex], slot0.curMidddleIndex) end end slot0.tryPlayMusic = function (slot0) if #slot0.musicForShowConfigList == 0 then return end if slot0:isCanPlayByMusicID(slot0:getMusicConfigForShowByIndex(slot0.curMidddleIndex).id) and isActive(slot0.playBtn) then triggerButton(slot0.playBtn) end end slot0.tryPauseMusic = function (slot0) if isActive(slot0.pauseBtn) and slot0.playbackInfo then triggerButton(slot0.pauseBtn) end end slot0.fliteMusicConfigForShow = function (slot0) slot1 = {} for slot5, slot6 in ipairs(pg.music_collect_config.all) do slot7 = slot0.appreciateProxy:getSingleMusicConfigByID(slot6) if slot0.appreciateProxy:isMusicNeedUnlockByID(slot6) then if not slot0.appreciateProxy:isMusicUnlockedByID(slot6) then slot10, slot11 = slot0.appreciateProxy:isMusicUnlockableByID(slot6) if slot10 then slot1[#slot1 + 1] = slot7 elseif slot11 then slot1[#slot1 + 1] = slot7 end else slot1[#slot1 + 1] = slot7 end else slot1[#slot1 + 1] = slot7 end end return slot1 end slot0.getMusicConfigForShowByIndex = function (slot0, slot1) if slot0.musicForShowConfigList[slot1] then return slot2 end end slot0.getMusicStateByID = function (slot0, slot1) if not slot0.appreciateProxy:isMusicNeedUnlockByID(slot1) then return MusicCollectionConst.MusicStates.Unlocked elseif slot0.appreciateProxy:isMusicUnlockedByID(slot1) then return MusicCollectionConst.MusicStates.Unlocked elseif slot0.appreciateProxy:isMusicUnlockableByID(slot1) then return MusicCollectionConst.MusicStates.Unlockable else return MusicCollectionConst.MusicStates.DisUnlockable end end slot0.sortMusicConfigList = function (slot0, slot1) function slot2(slot0, slot1) slot2 = slot0.id slot3 = slot1.id if slot0 == true then return slot3 < slot2 else return slot2 < slot3 end end table.sort(slot0.musicForShowConfigList, slot2) end slot0.filteMusicConfigByLike = function (slot0) if slot0.likeValue == MusicCollectionConst.Filte_Normal_Value then return slot0.musicForShowConfigList end slot1 = {} for slot5, slot6 in ipairs(slot0.musicForShowConfigList) do if slot0.appreciateProxy:isLikedByMusicID(slot6.id) then slot1[#slot1 + 1] = slot6 end end return slot1 end slot0.isCanPlayByMusicID = function (slot0, slot1) slot2, slot3 = nil slot3 = slot0.appreciateProxy:getMusicExistStateByID(slot1) if slot0:getMusicStateByID(slot1) == GalleryConst.CardStates.DirectShow then print("is impossible to go to this, something wrong") if slot3 then return true else return false end elseif slot2 == GalleryConst.CardStates.Unlocked then if slot3 then return true else return false end elseif slot2 == GalleryConst.CardStates.Unlockable then return false elseif slot2 == GalleryConst.CardStates.DisUnlockable then return false end end slot0.descTime = function (slot0, slot1) slot4 = math.floor((math.floor(slot1 / 1000) - math.floor(math.floor(slot1 / 1000) / 3600) * 3600) / 60) slot5 = (math.floor(slot1 / 1000) - math.floor(math.floor(slot1 / 1000) / 3600) * 3600) % 60 if math.floor(math.floor(slot1 / 1000) / 3600) ~= 0 then return string.format("%02d:%02d:%02d", slot3, slot4, slot5) else return string.format("%02d:%02d", slot4, slot5) end end slot0.tryStartDownloadCheckTimer = function (slot0) if #slot0.downloadCheckIDList == 0 and slot0.downloadCheckTimer then slot0.downloadCheckTimer:Stop() slot0.downloadCheckTimer = nil return end if not slot0.downloadCheckTimer and #slot0.downloadCheckIDList > 0 then function slot1() for slot3, slot4 in ipairs(slot0.downloadCheckIDList) do slot5 = nil for slot9, slot10 in ipairs(slot0.musicForShowConfigList) do if slot10.id == slot4 then slot5 = slot9 break end end if slot5 then slot0:updatePlateTF(slot6, slot5 - 1) slot0:updateSongTF(slot0.songTFList[slot5], slot5) end end end slot0.downloadCheckTimer = Timer.New(slot1, 1, -1) slot0.downloadCheckTimer:Start() end end return slot0
local plugins_configurations_schema = require "kong.dao.schemas.plugins_configurations" local query_builder = require "kong.dao.cassandra.query_builder" local constants = require "kong.constants" local BaseDao = require "kong.dao.cassandra.base_dao" local cjson = require "cjson" local PluginsConfigurations = BaseDao:extend() function PluginsConfigurations:new(properties) self._table = "plugins_configurations" self._schema = plugins_configurations_schema PluginsConfigurations.super.new(self, properties) end -- @override function PluginsConfigurations:_marshall(t) if type(t.value) == "table" then t.value = cjson.encode(t.value) end return t end -- @override function PluginsConfigurations:_unmarshall(t) -- deserialize values (tables) string to json if type(t.value) == "string" then t.value = cjson.decode(t.value) end -- remove consumer_id if null uuid if t.consumer_id == constants.DATABASE_NULL_ID then t.consumer_id = nil end return t end -- @override function PluginsConfigurations:update(t) if not t.consumer_id then t.consumer_id = constants.DATABASE_NULL_ID end return PluginsConfigurations.super.update(self, t) end function PluginsConfigurations:find_distinct() -- Open session local session, err = PluginsConfigurations.super._open_session(self) if err then return nil, err end local select_q = query_builder.select(self._table) -- Execute query local distinct_names = {} for rows, err in PluginsConfigurations.super.execute(self, select_q, nil, nil, {auto_paging=true}) do if err then return nil, err end for _, v in ipairs(rows) do -- Rows also contains other properties, so making sure it's a plugin if v.name then distinct_names[v.name] = true end end end -- Close session local socket_err = PluginsConfigurations.super._close_session(self, session) if socket_err then return nil, socket_err end local result = {} for k, _ in pairs(distinct_names) do table.insert(result, k) end return result, nil end return { plugins_configurations = PluginsConfigurations }
-- exitd.lua -- Created by wugd -- 结束进程 -- 声明模块名 EXIT_D = {} setmetatable(EXIT_D, {__index = _G}) local _ENV = EXIT_D local shutdown_status = false -- 定义公共接口 function exit() --TODO 保存数据库,关闭程序 end --关闭服务器 function shutdown() stop_server() -- CONNECT_D.closeConnectingInfo() --通知其它服务器关闭 set_shutdown_status(true) exit() end function set_shutdown_status(flag) shutdown_status = flag end function is_shutdown() return shutdown_status end function create() end create()
local mysql = require "mysql" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" description = [[ Dumps the password hashes from an MySQL server in a format suitable for cracking by tools such as John the Ripper. Appropriate DB privileges (root) are required. The <code>username</code> and <code>password</code> arguments take precedence over credentials discovered by the mysql-brute and mysql-empty-password scripts. ]] --- -- @usage -- nmap -p 3306 <ip> --script mysql-dump-hashes --script-args='username=root,password=secret' -- -- @output -- PORT STATE SERVICE -- 3306/tcp open mysql -- | mysql-dump-hashes: -- | root:*9B500343BC52E2911172EB52AE5CF4847604C6E5 -- | debian-sys-maint:*92357EE43977D9228AC9C0D60BB4B4479BD7A337 -- |_ toor:*14E65567ABDB5135D0CFD9A70B3032C179A49EE7 -- -- @args username the username to use to connect to the server -- @args password the password to use to connect to the server -- author = "Patrik Karlsson" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"auth", "discovery", "safe"} dependencies = {"mysql-empty-password", "mysql-brute"} portrule = shortport.port_or_service(3306, "mysql") local arg_username = stdnse.get_script_args(SCRIPT_NAME .. ".username") local arg_password = stdnse.get_script_args(SCRIPT_NAME .. ".password") or "" local function fail(err) return ("\n ERROR: %s"):format(err or "") end local function getCredentials() -- first, let's see if the script has any credentials as arguments? if ( arg_username ) then return { [arg_username] = arg_password } -- next, let's see if mysql-brute or mysql-empty-password brought us anything elseif nmap.registry.mysqlusers then -- do we have root credentials? if nmap.registry.mysqlusers['root'] then return { ['root'] = nmap.registry.mysqlusers['root'] } else -- we didn't have root, so let's make sure we loop over them all return nmap.registry.mysqlusers end -- last, no dice, we don't have any credentials at all end end local function mysqlLogin(socket, username, password) local status, response = mysql.receiveGreeting( socket ) if ( not(status) ) then return response end return mysql.loginRequest( socket, { authversion = "post41", charset = response.charset }, username, password, response.salt ) end action = function(host, port) local creds = getCredentials() if ( not(creds) ) then stdnse.print_debug(2, "No credentials were supplied, aborting ...") return end local result = {} for username, password in pairs(creds) do local socket = nmap.new_socket() if ( not(socket:connect(host, port)) ) then return fail("Failed to connect to server") end local status, response = mysqlLogin(socket, username, password) if ( status ) then local query = "SELECT DISTINCT CONCAT(user, ':', password) FROM mysql.user WHERE password <> ''" local status, rows = mysql.sqlQuery( socket, query ) socket:close() if ( status ) then result = mysql.formatResultset(rows, { noheaders = true }) break end else socket:close() end end if ( result ) then return stdnse.format_output(true, result) end end
LinkLuaModifier("modifier_intimidator_be_my_friend_lua", "heroes/intimidator/intimidator_modifiers_lua.lua", LUA_MODIFIER_MOTION_NONE) intimidator_be_my_friend_lua = class({}) function intimidator_be_my_friend_lua:GetBehavior() self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_intimidator_2" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end if self.hSpecial and self.hSpecial:GetSpecialValueFor("value") > 0 then return DOTA_ABILITY_BEHAVIOR_NO_TARGET+DOTA_ABILITY_BEHAVIOR_CHANNELLED else return DOTA_ABILITY_BEHAVIOR_UNIT_TARGET+DOTA_ABILITY_BEHAVIOR_CHANNELLED end end function intimidator_be_my_friend_lua:OnSpellStart() self.appliedModifier = nil self.hSpecial = self.hSpecial or self:GetCaster():FindAbilityByName("special_bonus_intimidator_2") if (not self.hSpecial or self.hSpecial:GetLevel() == 0) and self:GetCursorTarget():TriggerSpellAbsorb( self ) then self:GetCaster():Interrupt() return end self.tModifiers = self.tModifiers or {} self.tParticles = self.tParticles or {} if self.hSpecial and self.hSpecial:GetLevel() > 0 then local caster = self:GetCaster() local duration = self:GetChannelTime() local tTargets = FindUnitsInRadius(caster:GetTeamNumber(), caster:GetOrigin(), nil, FIND_UNITS_EVERYWHERE, DOTA_UNIT_TARGET_TEAM_ENEMY, DOTA_UNIT_TARGET_HERO, DOTA_UNIT_TARGET_FLAG_NOT_ILLUSIONS+DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES, FIND_ANY_ORDER, false) for k, v in ipairs(tTargets) do self.tModifiers[k] = v:AddNewModifier(caster, self, "modifier_intimidator_be_my_friend_lua", {Duration = duration*CalculateStatusResist(v)}) self.tParticles[k] = ParticleManager:CreateParticle("particles/econ/items/razor/razor_punctured_crest_golden/razor_static_link_new_arc_blade_golden.vpcf", PATTACH_CUSTOMORIGIN_FOLLOW, v) ParticleManager:SetParticleControlEnt(self.tParticles[k], 0, caster, PATTACH_POINT, "follow_attack1", caster:GetAbsOrigin(), true) ParticleManager:SetParticleControlEnt(self.tParticles[k], 1, v, PATTACH_POINT, "follow_origin", v:GetAbsOrigin(), true) end else local caster = self:GetCaster() local target = self:GetCursorTarget() local duration = self:GetChannelTime() self.appliedModifier = target:AddNewModifier(caster, self, "modifier_intimidator_be_my_friend_lua", {Duration = duration*CalculateStatusResist(target)}) self.particle = ParticleManager:CreateParticle("particles/econ/items/razor/razor_punctured_crest_golden/razor_static_link_new_arc_blade_golden.vpcf", PATTACH_CUSTOMORIGIN_FOLLOW, target) ParticleManager:SetParticleControlEnt(self.particle, 0, caster, PATTACH_POINT, "follow_attack1", caster:GetAbsOrigin(), true) ParticleManager:SetParticleControlEnt(self.particle, 1, target, PATTACH_POINT, "follow_origin", target:GetAbsOrigin(), true) end end function intimidator_be_my_friend_lua:OnChannelFinish(interrupted) if self.appliedModifier and not self.appliedModifier:IsNull() and self.appliedModifier.Destroy then self.appliedModifier:Destroy() self.appliedModifier= nil end if self.particle then ParticleManager:DestroyParticle(self.particle, false) self.particle = nil end if #self.tModifiers > 0 then local iSize = #self.tModifiers for i = 1, iSize do if self.tModifiers[iSize+1-i] and not self.tModifiers[iSize+1-i]:IsNull() then self.tModifiers[iSize+1-i]:Destroy() end end end end function intimidator_be_my_friend_lua:GetChannelAnimation() return ACT_DOTA_GENERIC_CHANNEL_1 end
local jackmovementdirectionprovider = { Properties = { Camera = {default = EntityId()}, WalkSpeedMutiplier = { default = 0.25, description = "Multiplier for speed while walking.", }, Events = { ControlsEnabled = { default = "EnableControlsEvent", description = "If passed '1.0' it will enable controls, oherwise it will disable them." }, }, }, InputValues = { NavForwardBack = 0.0, NavLeftRight = 0.0, } } function jackmovementdirectionprovider:OnActivate() -- Input listeners (movement). self.navForwardBackEventId = GameplayNotificationId(self.entityId, "NavForwardBack", "float"); self.navForwardBackHandler = GameplayNotificationBus.Connect(self, self.navForwardBackEventId); self.navLeftRightEventId = GameplayNotificationId(self.entityId, "NavLeftRight", "float"); self.navLeftRightHandler = GameplayNotificationBus.Connect(self, self.navLeftRightEventId); self.navForwardBackKMEventId = GameplayNotificationId(self.entityId, "NavForwardBackKM", "float"); self.navForwardBackKMHandler = GameplayNotificationBus.Connect(self, self.navForwardBackKMEventId); self.navLeftRightKMEventId = GameplayNotificationId(self.entityId, "NavLeftRightKM", "float"); self.navLeftRightKMHandler = GameplayNotificationBus.Connect(self, self.navLeftRightKMEventId); self.navWalkPressedEventId = GameplayNotificationId(self.entityId, "NavWalkPressed", "float"); self.navWalkPressedHandler = GameplayNotificationBus.Connect(self, self.navWalkPressedEventId); self.navWalkReleasedEventId = GameplayNotificationId(self.entityId, "NavWalkReleased", "float"); self.navWalkReleasedHandler = GameplayNotificationBus.Connect(self, self.navWalkReleasedEventId); -- Tick needed to detect aim timeout self.tickBusHandler = TickBus.Connect(self); self.controlsDisabledCount = 0; self.controlsEnabled = true; self.controlsEnabledEventId = GameplayNotificationId(self.entityId, self.Properties.Events.ControlsEnabled, "float"); self.controlsEnabledHandler = GameplayNotificationBus.Connect(self, self.controlsEnabledEventId); self.WalkEnabled = false; self.WalkToggleHeld = false; end function jackmovementdirectionprovider:OnDeactivate() self.navForwardBackHandler:Disconnect(); self.navForwardBackHandler = nil; self.navLeftRightHandler:Disconnect(); self.navLeftRightHandler = nil; self.navForwardBackKMHandler:Disconnect(); self.navForwardBackKMHandler = nil; self.navLeftRightKMHandler:Disconnect(); self.navLeftRightKMHandler = nil; self.navWalkPressedHandler:Disconnect(); self.navWalkPressedHandler = nil; self.navWalkReleasedHandler:Disconnect(); self.navWalkReleasedHandler = nil; self.tickBusHandler:Disconnect(); self.tickBusHandler = nil; self.controlsEnabledHandler:Disconnect(); self.controlsEnabledHandler = nil; end function jackmovementdirectionprovider:SetControlsEnabled(newControlsEnabled) self.controlsEnabled = newControlsEnabled; if (not newControlsEnabled) then self.InputValues.NavForwardBack = 0.0; self.InputValues.NavLeftRight = 0.0; self.WalkEnabled = false; end end function jackmovementdirectionprovider:OnEventBegin(value) if (GameplayNotificationBus.GetCurrentBusId() == self.controlsEnabledEventId) then --Debug.Log("controlsEnabledEventId " .. tostring(value)); if (value == 1.0) then self.controlsDisabledCount = self.controlsDisabledCount - 1; else self.controlsDisabledCount = self.controlsDisabledCount + 1; end if (self.controlsDisabledCount < 0) then Debug.Log("[Warning] JackMovementDirectionProvider: controls disabled ref count is less than 0. Probable enable/disable mismatch."); self.controlsDisabledCount = 0; end local newEnabled = self.controlsDisabledCount == 0; if (self.controlsEnabled ~= newEnabled) then self:SetControlsEnabled(newEnabled); end end if (self.controlsEnabled) then if (GameplayNotificationBus.GetCurrentBusId() == self.navForwardBackEventId) then self.InputValues.NavForwardBack = value; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navLeftRightEventId) then self.InputValues.NavLeftRight = value; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navForwardBackKMEventId) then if(self.WalkEnabled) then self.InputValues.NavForwardBack = value * self.Properties.WalkSpeedMutiplier; else self.InputValues.NavForwardBack = value; end elseif (GameplayNotificationBus.GetCurrentBusId() == self.navLeftRightKMEventId) then if(self.WalkEnabled) then self.InputValues.NavLeftRight = value * self.Properties.WalkSpeedMutiplier; else self.InputValues.NavLeftRight = value; end elseif (GameplayNotificationBus.GetCurrentBusId() == self.navWalkPressedEventId) then if (self.WalkToggleHeld == false) then self.WalkToggleHeld = true if (self.WalkEnabled) then self.WalkEnabled = false else self.WalkEnabled = true end end elseif (GameplayNotificationBus.GetCurrentBusId() == self.navWalkReleasedEventId) then self.WalkToggleHeld = false end else self.InputValues.NavForwardBack = 0; self.InputValues.NavLeftRight = 0; end end function jackmovementdirectionprovider:OnEventUpdating(value) if (self.controlsEnabled == true) then if (GameplayNotificationBus.GetCurrentBusId() == self.navForwardBackEventId) then self.InputValues.NavForwardBack = value; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navLeftRightEventId) then self.InputValues.NavLeftRight = value; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navForwardBackKMEventId) then if(self.WalkEnabled) then self.InputValues.NavForwardBack = value * self.Properties.WalkSpeedMutiplier; else self.InputValues.NavForwardBack = value; end elseif (GameplayNotificationBus.GetCurrentBusId() == self.navLeftRightKMEventId) then if(self.WalkEnabled) then self.InputValues.NavLeftRight = value * self.Properties.WalkSpeedMutiplier; else self.InputValues.NavLeftRight = value; end end else self.InputValues.NavForwardBack = 0; self.InputValues.NavLeftRight = 0; end end function jackmovementdirectionprovider:GetInputVector() --Debug.Log("InputVector: "..self.InputValues.NavLeftRight..", "..self.InputValues.NavForwardBack); local v = Vector3(self.InputValues.NavLeftRight, self.InputValues.NavForwardBack, 0); return v end function jackmovementdirectionprovider:OnEventEnd() if (GameplayNotificationBus.GetCurrentBusId() == self.navForwardBackEventId) then --Debug.Log("ended forwardBack") self.InputValues.NavForwardBack = 0; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navLeftRightEventId) then self.InputValues.NavLeftRight = 0; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navForwardBackKMEventId) then --Debug.Log("ended forwardBack") self.InputValues.NavForwardBack = 0; elseif (GameplayNotificationBus.GetCurrentBusId() == self.navLeftRightKMEventId) then self.InputValues.NavLeftRight = 0; end end function jackmovementdirectionprovider:OnTick(deltaTime, timePoint) local moveLocal = self:GetInputVector(); local movementDirection = Vector3(0,0,0); if (moveLocal:GetLengthSq() > 0.01) then local tm = TransformBus.Event.GetWorldTM(self.entityId); local cameraOrientation = TransformBus.Event.GetWorldTM(self.Properties.Camera); cameraOrientation:SetTranslation(Vector3(0,0,0)); local camRight = cameraOrientation:GetColumn(0); -- right local camForward = camRight:Cross(Vector3(0,0,-1)); local desiredFacing = (camForward * moveLocal.y) + (camRight * moveLocal.x); movementDirection = desiredFacing:GetNormalized(); end local moveMag = moveLocal:GetLength(); if (moveMag > 1.0) then moveMag = 1.0 end movementDirection = movementDirection * moveMag; self.SetMovementDirectionId = GameplayNotificationId(self.entityId, "SetMovementDirection", "float"); GameplayNotificationBus.Event.OnEventBegin(self.SetMovementDirectionId, movementDirection); --Debug.Log("MDC: "..movementDirection.x..", "..movementDirection.y .. " to ID : " .. tostring(self.entityId)); end return jackmovementdirectionprovider;
local Erase = class("Editor.Erase") function Erase:initialize(editor) self.editor = editor self.level = self.editor.level end function Erase:draw() local mouseX, mouseY = getWorldMouse() local coordX, coordY = self.level:cameraToCoordinate(mouseX, mouseY) local worldX, worldY = self.level:coordinateToWorld(coordX-1, coordY-1) Gui3.drawBox(self.editor.selectImg, self.editor.selectQuad, worldX, worldY, 16, 16) end function Erase:update(dt) if self.penDown then local x, y = self.level:cameraToCoordinate(getWorldMouse()) local layer = self.editor.activeLayer if layer:inMap(x, y) then layer:setCoordinate(x, y, nil) layer:optimizeSize() end end end function Erase:mousepressed(x, y, button) if (button == 1 and controls3.cmdDown("editor.pipette")) or button == 3 then self.editor:pipette() elseif button == 1 then self.penDown = true end return true end function Erase:mousereleased(x, y, button) if self.penDown then self.editor:mapChanged() self.penDown = false end end return Erase
local FileReader = torch.class("FileReader") function FileReader:__init(filename) self.file = assert(io.open(filename, "r")) end --[[ Read next line in the file and split it on spaces. If EOF is reached, returns nil. ]] function FileReader:next() local line = self.file:read() if line == nil then return nil end local sent = {} for word in line:gmatch'([^%s]+)' do table.insert(sent, word) end return sent end function FileReader:close() self.file:close() end return FileReader
-- tools_mtg/init.lua -- Aliases to support loading worlds using nodes following the old naming convention -- These can also be helpful when using chat commands, for example /giveme minetest.register_alias("WPick", "base_tools:wood_pick") minetest.register_alias("STPick", "base_tools:stone_pick") minetest.register_alias("SteelPick", "base_tools:steel_pick") minetest.register_alias("MesePick", "base_tools:mese_pick") minetest.register_alias("WShovel", "base_tools:wood_shovel") minetest.register_alias("STShovel", "base_tools:stone_shovel") minetest.register_alias("SteelShovel", "base_tools:steel_shovel") minetest.register_alias("WAxe", "base_tools:wood_axe") minetest.register_alias("STAxe", "base_tools:stone_axe") minetest.register_alias("SteelAxe", "base_tools:steel_axe") minetest.register_alias("WSword", "base_tools:wood_sword") minetest.register_alias("STSword", "base_tools:stone_sword") minetest.register_alias("SteelSword", "base_tools:steel_sword") minetest.register_alias("default:pick_wood", "base_tools:wood_pick") minetest.register_alias("default:pick_stone", "base_tools:stone_pick") minetest.register_alias("default:pick_bronze", "base_tools:bronze_pick") minetest.register_alias("default:pick_steel", "base_tools:steel_pick") minetest.register_alias("default:pick_mese", "base_tools:mese_pick") minetest.register_alias("default:pick_diamond", "base_tools:diamond_pick") minetest.register_alias("default:shovel_wood", "base_tools:wood_shovel") minetest.register_alias("default:shovel_stone", "base_tools:stone_shovel") minetest.register_alias("default:shovel_bronze", "base_tools:bronze_shovel") minetest.register_alias("default:shovel_steel", "base_tools:steel_shovel") minetest.register_alias("default:shovel_mese", "base_tools:mese_shovel") minetest.register_alias("default:shovel_diamond", "base_tools:diamond_shovel") minetest.register_alias("default:axe_wood", "base_tools:wood_axe") minetest.register_alias("default:axe_stone", "base_tools:stone_axe") minetest.register_alias("default:axe_bronze", "base_tools:bronze_axe") minetest.register_alias("default:axe_steel", "base_tools:steel_axe") minetest.register_alias("default:axe_mese", "base_tools:mese_axe") minetest.register_alias("default:axe_diamond", "base_tools:diamond_axe") minetest.register_alias("default:sword_wood", "base_tools:wood_sword") minetest.register_alias("default:sword_stone", "base_tools:stone_sword") minetest.register_alias("default:sword_bronze", "base_tools:bronze_sword") minetest.register_alias("default:sword_steel", "base_tools:steel_sword") minetest.register_alias("default:sword_mese", "base_tools:mese_sword") minetest.register_alias("default:sword_diamond", "base_tools:diamond_sword")
-- @author Sachin Mehta --- ---- -- Module to parse command line arguments -- @module opts local opts = {} --- -------------------------------------------------- -- A function to parse the command line arguments -- @function [parent=#opts] parse -- @param #string arg command line arguments -- -------------------------------------------------- function opts.parse(arg) local cmd = torch.CmdLine() cmd:text() cmd:text('Multi-Scale Residual Network') cmd:text() cmd:text('Command-Line options:') --general options cmd:option('-seed', 0, 'random seed') --training related options cmd:option('-lr', 0.0005, 'Initial Learning Rate') cmd:option('-d', 1, 'learning rate decay factor') cmd:option('-de', 50, 'decay learning rate by x epochs') cmd:option('-w', 5e-4, 'weight decay') cmd:option('-optimizer', 'sgd', 'adam or sgd') cmd:option('-m', 0.9, 'momentum') cmd:option('-batchSize', 10, 'Batch Size') cmd:option('-resume', 'false' , 'resume training') cmd:option('-resumeEpoch', 1, 'epoch from where to resume training') cmd:option('-maxEpoch', 50, 'Maximum number of epochs') --network related options cmd:option('-optimize', 1, 'optimize the model') cmd:option('-disp', 1, 'Print model and generate graph') --data related options cmd:option('-snap', './results/', 'save the models here') cmd:option('-datapath', './data/mel', 'Path to the dataset') cmd:option('-dataset', 'mel', 'Which dataset (mel for melanoma)?') cmd:option('-dataCache', './cache/', 'Path to directory for caching data related properties') cmd:option('-imWidth', 384, 'Image Width (256 for melanoma)') cmd:option('-imHeight', 384, 'Image Height (256 for melanoma)') cmd:option('-cropStart', 64, 'location from where to crop') cmd:option('-cropEnd', 256, 'Length of the cropped patch') cmd:option('-aug', 'true' , 'Data augmentation') cmd:option('-augType', 2, 'Which augmentation? (2 for h-flip, 3 - h-flip + translate, 4 - h-flip + translate + cropScale, 5 - h-flip + translate + cropScaleFlip, 6 - h-flip + translate + cropScaleFlip + v-flip ') --model related options cmd:option('-model', 'model/Model_MRIADCMD.lua', 'Model File') cmd:option('-encoder', './model/resnet-18.t7', 'Classification network pretrained on the ImageNet. Please download the pretrained model from here: https://github.com/facebook/fb.resnet.torch') local opt = cmd:parse(arg or {}) opt.resume = opt.resume ~= 'false' opt.aug = opt.aug ~= 'false' --check if snapshot directory exist or not. If not, then create it if not paths.dirp(opt.snap) and not paths.mkdir(opt.snap) then cmd:error('Error: Unable to create snapshot directory: '.. opt.snap .. '\n') end --check if data directory exist or not if not paths.dirp(opt.datapath) then cmd:error('Error: Data directory does not exist : '.. opt.datapath .. '\n') end return opt end return opts
Sprite = { Animations = { { Name = "Normal", Texture = "@Graphics/GoalFx.png", FrameCount = { X = 10, Y = 2 }, StartIndex = 1, EndIndex = 20, FrameTime = 20, Loop = false, }, }, DefaultAnimation = "Normal", }
local log = require "kong.plugins.tcplog.log" local BasePlugin = require "kong.plugins.base_plugin" local basic_serializer = require "kong.plugins.log_serializers.basic" local TcpLogHandler = BasePlugin:extend() function TcpLogHandler:new() TcpLogHandler.super.new(self, "tcplog") end function TcpLogHandler:log(conf) TcpLogHandler.super.log(self) local message = basic_serializer.serialize(ngx) log.execute(conf, message) end return TcpLogHandler
function love.draw() love.graphics.print('Hello world', 400, 300) end
-- Replaced QuadTree with Spacialhash, after benchmarks, it shows to have better performances local spatialhash = instance(Spatialhash, 1000) -- Rate check for collisions, instead of checking on each frame, this will avoid overusage because collisions check is heavy as f***. (even with optimizations) local TIMER_CHECK_VALUE = 50 local id = 0 local zones = {} local playerZones = {} local playerDrawCollisionsState = {} local zoneUpdate = 0 -- TODO All this project is only used for 2D collisions right now. Add the usage of "z" axis for full 3D support. AddEvent("OnPackageStart", function() CreateTimer(function() for _, player in pairs(GetAllPlayers()) do local x, y, z = GetPlayerLocation(player) local playerCollider = newPointShape(x, y) -- We retrieve the objects that are in the same cell (or tree branch) local neighbors = spatialhash:inSameCells(playerCollider:bbox()) rawset(neighbors, playerCollider, nil) if not playerZones[player] then playerZones[player] = {} end -- We check collisions with each object local collisions = {} for other in pairs(neighbors) do local collides, dx, dy = playerCollider:collidesWith(other) if collides then rawset(collisions, other, {dx,dy, x=dx, y=dy}) end end -- Clear zones that player is not in anymore for zoneId, _ in pairs(playerZones[player]) do if not collisions[zones[zoneId]] then playerZones[player][zoneId] = nil CallEvent("mogzones:zone_exit", player, zoneId) end end if zoneUpdate == 0 and rawget(playerDrawCollisionsState, player) then local toSend = {} local i = 1 for neighbor in pairs(neighbors) do if neighbor._type == 'circle' then toSend[i] = { type = 'circle', x = neighbor._center.x, y = neighbor._center.y, radius = neighbor._radius } elseif neighbor._type == 'polygon' then toSend[i] = { type = 'polygon', vertices = neighbor._polygon.vertices } end i = i + 1 end CallRemoteEvent(player, "mogzones:update_collision_shapes", json_encode(toSend)) local cellX, cellY = spatialhash:cellCoords(x, y) CallRemoteEvent(player, "mogzones:update_current_cell", json_encode({ x = cellX * 1000, y = cellY * 1000, width = spatialhash.cell_size, height = spatialhash.cell_size })) end for zone in pairs(collisions) do if not playerZones[player][zone.id] then playerZones[player][zone.id] = true CallEvent("mogzones:zone_enter", player, zone.id) end end zoneUpdate = (zoneUpdate + 1) % 10 end end, TIMER_CHECK_VALUE) end) AddEvent("OnPlayerQuit", function(player) playerZones[player] = nil end) local function UpdateZone(zoneId, fnc) local shape = rawget(zones, zoneId) if not shape then return false end local oldX1, oldY1, oldX2, oldY2 = shape:bbox() fnc(shape) spatialhash:update(zone, oldX1, oldY1, oldX2, oldY2, zone:bbox()) return true end function CreateZone(shape) shape.id = id spatialhash:register(shape, shape:bbox()) zones[id] = shape id = id + 1 return id - 1 end --- Deletes a zone --- @param id number The ID of the zone to delete function DeleteZone(id) local shape = zones[id] zones[id] = nil spatialhash:remove(shape, shape:bbox()) end AddFunctionExport("DeleteZone", DeleteZone) --- Creates a custom polygon zone. Each point of the polygon is assumed to followup. --- In this example, x,y are the position of a point, x1,y1 from another point, etc. AddFunctionExport("NewPolygonZone", function(...) return CreateZone(newPolygonShape(...)) end) --- Creates a circle shaped zone AddFunctionExport("NewCircleZone", function(x, y, radius) return CreateZone(newCircleShape(x, y, radius)) end) --- Creates a zone of with and height 1 AddFunctionExport("NewPointZone", function(x, y) return CreateZone(newPointShape(x, y)) end) --- Creates a new rectangle shaped zone AddFunctionExport("NewRectangleZone", function(x, y, width, height) return CreateZone(newRectangleShape(x, y, width, height)) end) --- Updates a zone location --- @param zoneId number The ID of the zone to update --- @param x number The new X position --- @param y number The new Y position AddFunctionExport("UpdateZoneLocation", function(zoneId, x, y) return UpdateZone(zoneId, function(shape) shape:moveTo(x, y) end) end) --- Updates a zone rotation --- @param zoneId number The ID of the zone to update --- @param angle number The new angle of the zone --- @param centerX number OPTIONAL: the center X of the rotation --- @param centerY number OPTIONAL: the center Y of the rotation AddFunctionExport("UpdateZoneRotation", function(zoneId, angle, centerX, centerY) return UpdateZone(zoneId, function(shape) shape:rotate(angle, centerX, centerY) end) end) --- Updates the size of a zone, by multiplying by a scale --- @param zoneId number The ID of the zone to update --- @param scale number The scale to apply on the zone AddFunctionExport("UpdateZoneScale", function(zoneId, scale) return UpdateZone(zoneId, function(shape) shape:scale(scale) end) end) --- Check if a player collides with a specific zone function PlayerCollidesWithZone(player, zoneId) local x, y, z = GetPlayerLocation(player) local playerCollider = newPointShape(x, y) return playerCollider:collidesWith(zones[zoneId]) end AddFunctionExport("PlayerCollidesWithZone", PlayerCollidesWithZone) AddCommand("drawcollisions", function(player) local drawCollisionsState = not rawget(playerDrawCollisionsState, player) rawset(playerDrawCollisionsState, player, drawCollisionsState) CallRemoteEvent(player, "mogzones:update_draw_collisions", drawCollisionsState) end)
SkadaPerCharDB = { ["sets"] = { { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 77, ["interrupts"] = 0, ["mobdone"] = 442799, ["mobtaken"] = 1832942, ["damage"] = 1832942, ["players"] = { { ["last"] = 1423948502, ["healingabsorbed"] = 0, ["class"] = "SHAMAN", ["damaged"] = { ["Skulloc"] = 438110, ["Zoggosh"] = 99520, ["Koramar"] = 106694, }, ["auras"] = { ["Lava Surge"] = { ["name"] = "Lava Surge", ["active"] = 0, ["id"] = 77762, ["uptime"] = 17, ["auratype"] = "BUFF", }, ["Fizzlebang's Folly"] = { ["name"] = "Fizzlebang's Folly", ["active"] = 0, ["id"] = 176903, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Glyph of Lightning Shield"] = { ["name"] = "Glyph of Lightning Shield", ["active"] = 0, ["id"] = 142912, ["uptime"] = 18, ["auratype"] = "BUFF", }, ["Elemental Blast: Multistrike"] = { ["name"] = "Elemental Blast: Multistrike", ["active"] = 1, ["id"] = 173185, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Ghost Wolf"] = { ["name"] = "Ghost Wolf", ["active"] = 0, ["id"] = 2645, ["uptime"] = 13, ["auratype"] = "BUFF", }, ["Flame Shock"] = { ["name"] = "Flame Shock", ["active"] = 0, ["id"] = 8050, ["uptime"] = 74, ["auratype"] = "DEBUFF", }, ["Improved Chain Lightning"] = { ["name"] = "Improved Chain Lightning", ["active"] = 0, ["id"] = 157766, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Elemental Blast: Critical Strike"] = { ["name"] = "Elemental Blast: Critical Strike", ["active"] = 0, ["id"] = 118522, ["uptime"] = 24, ["auratype"] = "BUFF", }, ["Nightmare Fire"] = { ["name"] = "Nightmare Fire", ["active"] = 1, ["id"] = 162919, ["uptime"] = 6, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 76, ["interrupts"] = 0, ["damage"] = 644324, ["damagespells"] = { ["Lava Burst"] = { ["min"] = 17143, ["multistrike"] = 8, ["critical"] = 8, ["totalhits"] = 8, ["id"] = 51505, ["max"] = 17144, ["damage"] = 192694, }, ["Lightning Bolt"] = { ["min"] = 6579, ["multistrike"] = 7, ["critical"] = 3, ["hit"] = 9, ["totalhits"] = 12, ["id"] = 403, ["max"] = 16448, ["damage"] = 127206, }, ["Greater Fire Elemental: Fire Blast"] = { ["min"] = 436, ["multistrike"] = 1, ["hit"] = 4, ["totalhits"] = 4, ["id"] = 57984, ["max"] = 437, ["damage"] = 2188, }, ["Flame Shock"] = { ["min"] = 417, ["multistrike"] = 29, ["critical"] = 6, ["hit"] = 32, ["totalhits"] = 38, ["id"] = 8050, ["max"] = 1752, ["damage"] = 50238, }, ["Lightning Shield"] = { ["min"] = 904, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 26364, ["max"] = 2261, ["damage"] = 5351, }, ["Searing Totem: Searing Bolt"] = { ["min"] = 800, ["multistrike"] = 9, ["critical"] = 1, ["hit"] = 10, ["totalhits"] = 11, ["id"] = 3606, ["max"] = 2001, ["damage"] = 14385, }, ["Molten Earth"] = { ["min"] = 4373, ["multistrike"] = 14, ["critical"] = 3, ["hit"] = 19, ["totalhits"] = 22, ["id"] = 170379, ["max"] = 10933, ["damage"] = 143335, }, ["Greater Fire Elemental: Attack"] = { ["min"] = 951, ["multistrike"] = 3, ["critical"] = 3, ["hit"] = 13, ["totalhits"] = 16, ["id"] = 6603, ["max"] = 2379, ["damage"] = 20667, }, ["Fulmination"] = { ["min"] = 12663, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 88767, ["max"] = 12663, ["damage"] = 12663, }, ["Elemental Blast"] = { ["min"] = 7693, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 117014, ["max"] = 19234, ["damage"] = 53220, }, ["Chain Lightning"] = { ["min"] = 4370, ["multistrike"] = 2, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 421, ["max"] = 4370, ["damage"] = 14935, }, ["Earth Shock"] = { ["min"] = 3698, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 8042, ["max"] = 3698, ["damage"] = 7442, }, }, ["shielding"] = 0, ["damagetaken"] = 17852, ["power"] = { }, ["id"] = "Player-3725-06AFFEE7", ["first"] = 1423948426, ["dispells"] = 0, ["damagetakenspells"] = { ["Berserker Leap"] = { ["crushing"] = 0, ["id"] = 168399, ["damage"] = 9069, ["max"] = 4747, ["name"] = "Berserker Leap", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 4322, ["absorbed"] = 0, }, ["Gronn Smash"] = { ["crushing"] = 0, ["id"] = 168227, ["damage"] = 8783, ["max"] = 8783, ["name"] = "Gronn Smash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8783, ["absorbed"] = 0, }, }, ["maxhp"] = 130980, ["healed"] = { ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 8184, ["class"] = "SHAMAN", ["shielding"] = 0, }, }, ["name"] = "Nabooli", ["healing"] = 8184, ["healingspells"] = { ["Flames of Life"] = { ["shielding"] = 0, ["id"] = 137808, ["healing"] = 8184, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Flames of Life", ["hits"] = 38, ["overhealing"] = 9050, ["max"] = 835, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 9050, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [1] { ["last"] = 1423948502, ["healingabsorbed"] = 0, ["class"] = "PRIEST", ["damaged"] = { ["Skulloc"] = 16571, }, ["auras"] = { ["Intellect"] = { ["name"] = "Intellect", ["active"] = 1, ["id"] = 60234, ["uptime"] = 21, ["auratype"] = "BUFF", }, ["Focused Will"] = { ["name"] = "Focused Will", ["active"] = 0, ["id"] = 45242, ["uptime"] = 16, ["auratype"] = "BUFF", }, ["Prayer of Mending"] = { ["name"] = "Prayer of Mending", ["active"] = 2, ["id"] = 41635, ["uptime"] = 70, ["auratype"] = "BUFF", }, ["Borrowed Time"] = { ["name"] = "Borrowed Time", ["active"] = 1, ["id"] = 59889, ["uptime"] = 50, ["auratype"] = "BUFF", }, ["Power Word: Shield"] = { ["name"] = "Power Word: Shield", ["active"] = 1, ["id"] = 17, ["uptime"] = 55, ["auratype"] = "BUFF", }, ["Weakened Soul"] = { ["name"] = "Weakened Soul", ["active"] = 1, ["id"] = 6788, ["uptime"] = 56, ["auratype"] = "DEBUFF", }, ["Body and Soul"] = { ["name"] = "Body and Soul", ["active"] = 1, ["id"] = 65081, ["uptime"] = 39, ["auratype"] = "BUFF", }, ["Divine Aegis"] = { ["name"] = "Divine Aegis", ["active"] = 2, ["id"] = 47753, ["uptime"] = 60, ["auratype"] = "BUFF", }, ["Mindbender: Shadowcrawl"] = { ["name"] = "Mindbender: Shadowcrawl", ["active"] = 0, ["id"] = 63619, ["uptime"] = 10, ["auratype"] = "BUFF", }, }, ["role"] = "HEALER", ["time"] = 75, ["interrupts"] = 0, ["damage"] = 16571, ["damagespells"] = { ["Mindbender: Attack"] = { ["min"] = 1793, ["multistrike"] = 1, ["hit"] = 8, ["totalhits"] = 8, ["id"] = 6603, ["max"] = 2062, ["damage"] = 16571, }, }, ["shielding"] = 277735, ["damagetaken"] = 5759, ["power"] = { [0] = { ["spells"] = { [123051] = 6615, }, ["amount"] = 6615, }, }, ["id"] = "Player-3725-06B02413", ["first"] = 1423948427, ["dispells"] = 0, ["damagetakenspells"] = { ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168390, ["damage"] = 3125, ["max"] = 3125, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3125, ["absorbed"] = 1620, }, ["Rapid Fire"] = { ["crushing"] = 0, ["id"] = 168348, ["damage"] = 2634, ["max"] = 2634, ["name"] = "Rapid Fire", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 2634, ["absorbed"] = 0, }, }, ["maxhp"] = 113220, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 235508, ["class"] = "WARRIOR", ["shielding"] = 49468, }, ["Player-3725-06B02413"] = { ["role"] = "HEALER", ["name"] = "Gachnar", ["amount"] = 44112, ["class"] = "PRIEST", ["shielding"] = 38353, }, ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 14470, ["class"] = "SHAMAN", ["shielding"] = 4802, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 329812, ["class"] = "DEATHKNIGHT", ["shielding"] = 171187, }, ["Creature-0-3748-1195-6623-15438-00005FBA8C"] = { ["shielding"] = 386, ["role"] = "NONE", ["name"] = "Greater Fire Elemental", ["amount"] = 1052, }, ["Player-105-07C35AF4"] = { ["role"] = "DAMAGER", ["name"] = "Janettie-Thunderhorn", ["amount"] = 45816, ["class"] = "MAGE", ["shielding"] = 13539, }, }, ["name"] = "Gachnar", ["healing"] = 670770, ["healingspells"] = { ["Heal"] = { ["shielding"] = 0, ["id"] = 2060, ["healing"] = 71491, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 1, ["name"] = "Heal", ["hits"] = 6, ["overhealing"] = 27022, ["max"] = 17693, ["critical"] = 1, ["absorbed"] = 0, }, ["Power Word: Shield"] = { ["shielding"] = 204343, ["id"] = 17, ["healing"] = 204343, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Power Word: Shield", ["hits"] = 43, ["overhealing"] = 137346.109375, ["max"] = 15157, ["critical"] = 0, ["absorbed"] = 0, }, ["Divine Aegis"] = { ["shielding"] = 73392, ["id"] = 47753, ["healing"] = 73392, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Divine Aegis", ["hits"] = 16, ["overhealing"] = 55234.369140625, ["max"] = 21255, ["critical"] = 0, ["absorbed"] = 0, }, ["Penance"] = { ["shielding"] = 0, ["id"] = 47750, ["healing"] = 206211, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 1, ["name"] = "Penance", ["hits"] = 21, ["overhealing"] = 19764, ["max"] = 14886, ["critical"] = 3, ["absorbed"] = 0, }, ["Cascade"] = { ["shielding"] = 0, ["id"] = 121148, ["healing"] = 18607, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Cascade", ["hits"] = 11, ["overhealing"] = 14798, ["max"] = 4183, ["critical"] = 1, ["absorbed"] = 0, }, ["Prayer of Healing"] = { ["shielding"] = 0, ["id"] = 596, ["healing"] = 63744, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 4, ["name"] = "Prayer of Healing", ["hits"] = 13, ["overhealing"] = 32730, ["max"] = 11277, ["critical"] = 3, ["absorbed"] = 0, }, ["Prayer of Mending"] = { ["shielding"] = 0, ["id"] = 33110, ["healing"] = 32982, ["multistrikes"] = 0, ["min"] = 3635, ["multistrike"] = 0, ["name"] = "Prayer of Mending", ["hits"] = 7, ["overhealing"] = 137, ["max"] = 6042, ["critical"] = 2, ["absorbed"] = 0, }, }, ["overhealing"] = 287031.478515625, ["ccbreaks"] = 0, ["multistrikes"] = 6, }, -- [2] { ["last"] = 1423948502, ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { ["Skulloc"] = 424722, ["Zoggosh"] = 44243, ["Koramar"] = 173644, }, ["auras"] = { ["Enrage"] = { ["name"] = "Enrage", ["active"] = 1, ["id"] = 12880, ["uptime"] = 39, ["auratype"] = "BUFF", }, ["Charge"] = { ["name"] = "Charge", ["active"] = 0, ["id"] = 109128, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Raging Blow!"] = { ["name"] = "Raging Blow!", ["active"] = 1, ["id"] = 131116, ["uptime"] = 34, ["auratype"] = "BUFF", }, ["Victorious"] = { ["name"] = "Victorious", ["active"] = 0, ["id"] = 32216, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Victory Rush"] = { ["name"] = "Victory Rush", ["active"] = 0, ["id"] = 118779, ["uptime"] = 7, ["auratype"] = "BUFF", }, ["Inspiring Presence"] = { ["name"] = "Inspiring Presence", ["active"] = 1, ["id"] = 167188, ["uptime"] = 30, ["auratype"] = "BUFF", }, ["Meat Cleaver"] = { ["name"] = "Meat Cleaver", ["active"] = 0, ["id"] = 85739, ["uptime"] = 7, ["auratype"] = "BUFF", }, ["Mortal Wounds"] = { ["name"] = "Mortal Wounds", ["active"] = 0, ["id"] = 115804, ["uptime"] = 13, ["auratype"] = "DEBUFF", }, ["Shattered Bleed"] = { ["name"] = "Shattered Bleed", ["active"] = 0, ["id"] = 159238, ["uptime"] = 25, ["auratype"] = "DEBUFF", }, ["Sudden Death"] = { ["name"] = "Sudden Death", ["active"] = 0, ["id"] = 52437, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Bladestorm"] = { ["name"] = "Bladestorm", ["active"] = 0, ["id"] = 46924, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Die by the Sword"] = { ["name"] = "Die by the Sword", ["active"] = 0, ["id"] = 118038, ["uptime"] = 9, ["auratype"] = "BUFF", }, ["Berserker Rage"] = { ["name"] = "Berserker Rage", ["active"] = 0, ["id"] = 18499, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Strength of Steel"] = { ["name"] = "Strength of Steel", ["active"] = 0, ["id"] = 162917, ["uptime"] = 20, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 75, ["interrupts"] = 0, ["damage"] = 642609, ["damagespells"] = { ["Raging Blow"] = { ["min"] = 6085, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 96103, ["max"] = 12450, ["damage"] = 31001, }, ["Dragon Roar"] = { ["min"] = 8176, ["critical"] = 2, ["totalhits"] = 4, ["id"] = 118895, ["IMMUNE"] = 2, ["max"] = 8176, ["damage"] = 16352, }, ["Hamstring"] = { ["min"] = 108, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 1715, ["max"] = 108, ["damage"] = 108, }, ["Victory Rush"] = { ["min"] = 3345, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 34428, ["max"] = 3345, ["damage"] = 3345, }, ["Execute"] = { ["min"] = 8860, ["critical"] = 2, ["hit"] = 5, ["totalhits"] = 7, ["id"] = 5308, ["max"] = 24436, ["damage"] = 95430, }, ["Whirlwind"] = { ["min"] = 1168, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 1680, ["max"] = 3371, ["damage"] = 4539, }, ["Bladestorm"] = { ["min"] = 2393, ["multistrike"] = 2, ["critical"] = 6, ["hit"] = 15, ["totalhits"] = 21, ["id"] = 50622, ["max"] = 10007, ["damage"] = 126940, }, ["Execute Off-Hand"] = { ["min"] = 5290, ["multistrike"] = 1, ["critical"] = 4, ["hit"] = 3, ["totalhits"] = 7, ["id"] = 163558, ["max"] = 16327, ["damage"] = 75308, }, ["Bloodthirst"] = { ["min"] = 703, ["critical"] = 4, ["hit"] = 2, ["totalhits"] = 6, ["id"] = 23881, ["max"] = 2943, ["damage"] = 11952, }, ["Warbringer"] = { ["totalhits"] = 1, ["id"] = 7922, ["IMMUNE"] = 1, ["max"] = 0, ["damage"] = 0, }, ["Raging Blow Off-Hand"] = { ["min"] = 3594, ["critical"] = 2, ["hit"] = 2, ["totalhits"] = 4, ["id"] = 85384, ["max"] = 7727, ["damage"] = 22347, }, ["Wild Strike"] = { ["min"] = 9778, ["critical"] = 3, ["totalhits"] = 3, ["id"] = 100130, ["max"] = 13662, ["damage"] = 33307, }, ["Bladestorm Off-Hand"] = { ["min"] = 2144, ["multistrike"] = 2, ["critical"] = 8, ["hit"] = 13, ["totalhits"] = 21, ["id"] = 95738, ["max"] = 6224, ["damage"] = 83819, }, ["Shattered Bleed"] = { ["min"] = 659, ["multistrike"] = 4, ["critical"] = 2, ["hit"] = 33, ["totalhits"] = 35, ["id"] = 159238, ["max"] = 2652, ["damage"] = 36437, }, ["Whirlwind Off-Hand"] = { ["min"] = 692, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 44949, ["max"] = 2071, ["damage"] = 2763, }, ["Attack"] = { ["id"] = 6603, ["min"] = 1344, ["multistrike"] = 4, ["critical"] = 13, ["hit"] = 17, ["totalhits"] = 37, ["max"] = 6629, ["MISS"] = 7, ["damage"] = 98961, }, }, ["shielding"] = 0, ["damagetaken"] = 238094, ["power"] = { { ["spells"] = { [109128] = 20, [23881] = 60, [12880] = 60, }, ["amount"] = 140, }, -- [1] }, ["id"] = "Player-52-04B8B228", ["first"] = 1423948427, ["dispells"] = 0, ["damagetakenspells"] = { ["Gronn Smash"] = { ["crushing"] = 0, ["id"] = 168227, ["damage"] = 3635, ["max"] = 3635, ["name"] = "Gronn Smash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3635, ["absorbed"] = 5092, }, ["Rapid Fire"] = { ["crushing"] = 0, ["id"] = 168348, ["damage"] = 5132, ["max"] = 2588, ["name"] = "Rapid Fire", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 2544, ["absorbed"] = 0, }, ["Shattering Blade"] = { ["crushing"] = 0, ["id"] = 168955, ["damage"] = 12232, ["max"] = 8758, ["name"] = "Shattering Blade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 3474, ["absorbed"] = 7236, }, ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168148, ["damage"] = 41857, ["max"] = 4910, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 9, ["resisted"] = 0, ["min"] = 3040, ["absorbed"] = 1887, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 175238, ["max"] = 39711, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 2, ["blocked"] = 0, ["totalhits"] = 9, ["resisted"] = 0, ["min"] = 3656, ["absorbed"] = 0, }, }, ["maxhp"] = 142332, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 33039, ["class"] = "WARRIOR", ["shielding"] = 0, }, }, ["name"] = "Lupinne", ["healing"] = 33039, ["healingspells"] = { ["Victory Rush"] = { ["shielding"] = 0, ["id"] = 118779, ["healing"] = 9605, ["multistrikes"] = 0, ["min"] = 9605, ["multistrike"] = 0, ["name"] = "Victory Rush", ["hits"] = 1, ["overhealing"] = 11745, ["max"] = 9605, ["critical"] = 0, ["absorbed"] = 0, }, ["Bloodthirst Heal"] = { ["shielding"] = 0, ["id"] = 117313, ["healing"] = 18787, ["multistrikes"] = 0, ["min"] = 3131, ["multistrike"] = 0, ["name"] = "Bloodthirst Heal", ["hits"] = 6, ["overhealing"] = 0, ["max"] = 3132, ["critical"] = 0, ["absorbed"] = 0, }, ["Leech"] = { ["shielding"] = 0, ["id"] = 143924, ["healing"] = 4647, ["multistrikes"] = 0, ["min"] = 220, ["multistrike"] = 0, ["name"] = "Leech", ["hits"] = 5, ["overhealing"] = 0, ["max"] = 2030, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 11745, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [3] { ["last"] = 1423948501, ["healingabsorbed"] = 0, ["class"] = "MAGE", ["damaged"] = { ["Koramar"] = 95785, ["Skulloc"] = 220252, }, ["auras"] = { ["Exquisite Proficiency"] = { ["name"] = "Exquisite Proficiency", ["active"] = 0, ["id"] = 133630, ["uptime"] = 20, ["auratype"] = "BUFF", }, ["Blink"] = { ["name"] = "Blink", ["active"] = 0, ["id"] = 119415, ["uptime"] = 1, ["auratype"] = "BUFF", }, ["Arcane Charge"] = { ["name"] = "Arcane Charge", ["active"] = 1, ["id"] = 36032, ["uptime"] = 36, ["auratype"] = "DEBUFF", }, ["Expanded Mind"] = { ["name"] = "Expanded Mind", ["active"] = 1, ["id"] = 146046, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Ice Floes"] = { ["name"] = "Ice Floes", ["active"] = 0, ["id"] = 108839, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Rune of Power"] = { ["name"] = "Rune of Power", ["active"] = 1, ["id"] = 116014, ["uptime"] = 47, ["auratype"] = "BUFF", }, ["Improved Blink"] = { ["name"] = "Improved Blink", ["active"] = 0, ["id"] = 157610, ["uptime"] = 2, ["auratype"] = "BUFF", }, ["Arcane Missiles!"] = { ["name"] = "Arcane Missiles!", ["active"] = 0, ["id"] = 79683, ["uptime"] = 13, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 72, ["interrupts"] = 0, ["damage"] = 316037, ["damagespells"] = { ["Arcane Blast"] = { ["min"] = 5183, ["multistrike"] = 4, ["critical"] = 2, ["hit"] = 10, ["totalhits"] = 12, ["id"] = 30451, ["max"] = 15117, ["damage"] = 140749, }, ["Shoot"] = { ["min"] = 197, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 5019, ["max"] = 199, ["damage"] = 396, }, ["Arcane Missiles"] = { ["min"] = 1189, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 12, ["totalhits"] = 13, ["id"] = 7268, ["max"] = 3769, ["damage"] = 28845, }, ["Arcane Barrage"] = { ["min"] = 2783, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 4, ["totalhits"] = 5, ["id"] = 44425, ["max"] = 15992, ["damage"] = 48427, }, ["Supernova"] = { ["min"] = 8543, ["multistrike"] = 2, ["hit"] = 6, ["totalhits"] = 6, ["id"] = 157980, ["max"] = 18984, ["damage"] = 97620, }, }, ["shielding"] = 0, ["damagetaken"] = 39916, ["power"] = { }, ["id"] = "Player-105-07C35AF4", ["first"] = 1423948429, ["dispells"] = 0, ["damagetakenspells"] = { ["Berserker Leap"] = { ["crushing"] = 0, ["id"] = 168399, ["damage"] = 9664, ["max"] = 4842, ["name"] = "Berserker Leap", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 4822, ["absorbed"] = 0, }, ["Shattering Blade"] = { ["crushing"] = 0, ["id"] = 168955, ["damage"] = 22397, ["max"] = 11247, ["name"] = "Shattering Blade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 11150, ["absorbed"] = 0, }, ["Rapid Fire"] = { ["crushing"] = 0, ["id"] = 168348, ["damage"] = 7855, ["max"] = 2647, ["name"] = "Rapid Fire", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 2583, ["absorbed"] = 0, }, }, ["maxhp"] = 110940, ["healed"] = { }, ["name"] = "Janettie", ["healing"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [4] { ["last"] = 1423948503, ["healingabsorbed"] = 0, ["class"] = "DEATHKNIGHT", ["damaged"] = { ["Skulloc"] = 202908, ["Zoggosh"] = 10493, }, ["auras"] = { ["Blood Charge"] = { ["name"] = "Blood Charge", ["active"] = 1, ["id"] = 114851, ["uptime"] = 54, ["auratype"] = "BUFF", }, ["Rune Tap"] = { ["name"] = "Rune Tap", ["active"] = 0, ["id"] = 171049, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Rune Weapon: Soul Reaper"] = { ["name"] = "Rune Weapon: Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, ["Soul Reaper"] = { ["name"] = "Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 25, ["auratype"] = "DEBUFF", }, ["Blood Shield"] = { ["name"] = "Blood Shield", ["active"] = 0, ["id"] = 77535, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Scent of Blood"] = { ["name"] = "Scent of Blood", ["active"] = 0, ["id"] = 50421, ["uptime"] = 47, ["auratype"] = "BUFF", }, ["Dancing Rune Weapon"] = { ["name"] = "Dancing Rune Weapon", ["active"] = 0, ["id"] = 81256, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Blood Plague"] = { ["name"] = "Blood Plague", ["active"] = 0, ["id"] = 55078, ["uptime"] = 67, ["auratype"] = "DEBUFF", }, ["Frost Fever"] = { ["name"] = "Frost Fever", ["active"] = 0, ["id"] = 55095, ["uptime"] = 72, ["auratype"] = "DEBUFF", }, ["Unholy Strength"] = { ["name"] = "Unholy Strength", ["active"] = 1, ["id"] = 53365, ["uptime"] = 62, ["auratype"] = "BUFF", }, ["Rune Weapon: Blood Plague"] = { ["name"] = "Rune Weapon: Blood Plague", ["active"] = 1, ["id"] = 55078, ["uptime"] = 69, ["auratype"] = "DEBUFF", }, ["Vampiric Blood"] = { ["name"] = "Vampiric Blood", ["active"] = 0, ["id"] = 55233, ["uptime"] = 20, ["auratype"] = "BUFF", }, ["Rune Weapon: Frost Fever"] = { ["name"] = "Rune Weapon: Frost Fever", ["active"] = 1, ["id"] = 55095, ["uptime"] = 69, ["auratype"] = "DEBUFF", }, ["Dark Command"] = { ["name"] = "Dark Command", ["active"] = 0, ["id"] = 56222, ["uptime"] = 3, ["auratype"] = "DEBUFF", }, }, ["role"] = "TANK", ["time"] = 73, ["interrupts"] = 0, ["damage"] = 213401, ["damagespells"] = { ["Attack"] = { ["min"] = 1431, ["multistrike"] = 5, ["critical"] = 2, ["hit"] = 16, ["totalhits"] = 18, ["id"] = 6603, ["max"] = 2779, ["damage"] = 37802, }, ["Death Strike"] = { ["min"] = 5078, ["multistrike"] = 2, ["critical"] = 2, ["hit"] = 4, ["totalhits"] = 6, ["id"] = 49998, ["max"] = 10342, ["damage"] = 44096, }, ["Rune Weapon: Blood Plague"] = { ["min"] = 248, ["multistrike"] = 2, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 55078, ["max"] = 248, ["damage"] = 646, }, ["Icy Touch"] = { ["min"] = 1663, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 45477, ["max"] = 1663, ["damage"] = 1663, }, ["Rune Weapon: Attack"] = { ["min"] = 500, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 6603, ["max"] = 1000, ["damage"] = 2000, }, ["Soul Reaper"] = { ["min"] = 941, ["multistrike"] = 1, ["critical"] = 2, ["hit"] = 4, ["totalhits"] = 6, ["id"] = 114866, ["max"] = 9315, ["damage"] = 18306, }, ["Blood Boil"] = { ["min"] = 1710, ["multistrike"] = 1, ["critical"] = 3, ["hit"] = 5, ["totalhits"] = 8, ["id"] = 50842, ["max"] = 4024, ["damage"] = 21739, }, ["Rune Weapon: Death Strike"] = { ["min"] = 1368, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 49998, ["max"] = 1368, ["damage"] = 2736, }, ["Blood Plague"] = { ["min"] = 729, ["multistrike"] = 9, ["critical"] = 8, ["hit"] = 16, ["totalhits"] = 24, ["id"] = 55078, ["max"] = 1716, ["damage"] = 29513, }, ["Frost Fever"] = { ["min"] = 729, ["multistrike"] = 7, ["critical"] = 4, ["hit"] = 21, ["totalhits"] = 25, ["id"] = 55095, ["max"] = 1716, ["damage"] = 26308, }, ["Rune Weapon: Soul Reaper"] = { ["min"] = 325, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 114866, ["max"] = 325, ["damage"] = 422, }, ["Rune Weapon: Death Coil"] = { ["min"] = 653, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 47632, ["max"] = 653, ["damage"] = 653, }, ["Death Coil"] = { ["min"] = 1916, ["multistrike"] = 5, ["critical"] = 2, ["hit"] = 6, ["totalhits"] = 8, ["id"] = 47632, ["max"] = 4509, ["damage"] = 26261, }, ["Rune Weapon: Frost Fever"] = { ["min"] = 248, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 55095, ["max"] = 249, ["damage"] = 497, }, ["Rune Weapon: Blood Boil"] = { ["min"] = 584, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 50842, ["max"] = 584, ["damage"] = 759, }, }, ["shielding"] = 49122, ["damagetaken"] = 200339, ["power"] = { [6] = { ["spells"] = { [50842] = 60, [163948] = 75, }, ["amount"] = 135, }, }, ["id"] = "Player-1136-073491F8", ["first"] = 1423948430, ["dispells"] = 0, ["damagetakenspells"] = { ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168390, ["damage"] = 14179, ["max"] = 4496, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 808, ["absorbed"] = 3669, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 186160, ["max"] = 24915, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 14, ["resisted"] = 0, ["min"] = 1779, ["absorbed"] = 91346, }, }, ["maxhp"] = 97891, ["healed"] = { ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 96905, ["class"] = "DEATHKNIGHT", ["shielding"] = 49122, }, ["Creature-0-3748-1195-6623-27893-00005FBA90"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Rune Weapon", ["amount"] = 0, }, }, ["name"] = "Stewgottz", ["healing"] = 96905, ["healingspells"] = { ["Rune Weapon: Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 0, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Rune Weapon: Death Strike", ["hits"] = 2, ["overhealing"] = 6467, ["max"] = 0, ["critical"] = 0, ["absorbed"] = 0, }, ["Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 38973, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Death Strike", ["hits"] = 6, ["overhealing"] = 64406, ["max"] = 25256, ["critical"] = 0, ["absorbed"] = 0, }, ["Blood Shield"] = { ["shielding"] = 49122, ["id"] = 77535, ["healing"] = 49122, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Blood Shield", ["hits"] = 12, ["overhealing"] = 0, ["max"] = 11549, ["critical"] = 0, ["absorbed"] = 0, }, ["Unholy Strength"] = { ["shielding"] = 0, ["id"] = 53365, ["healing"] = 8810, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Unholy Strength", ["hits"] = 6, ["overhealing"] = 9251, ["max"] = 2937, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 80124, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [5] }, ["deaths"] = 0, ["mobs"] = { ["Skulloc"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 424722, ["done"] = 153746, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 202908, ["done"] = 186160, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 16571, ["done"] = 0, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Nabooli"] = { ["taken"] = 438110, ["done"] = 8783, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 220252, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1302563, ["done"] = 348689, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Blackhand's Might Turret"] = { ["players"] = { ["Gachnar"] = { ["taken"] = 0, ["done"] = 2634, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 0, ["done"] = 7855, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 0, ["done"] = 5132, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 0, ["done"] = 15621, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Zoggosh"] = { ["players"] = { ["Stewgottz-Hakkar"] = { ["taken"] = 10493, ["done"] = 0, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 99520, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 44243, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 154256, ["done"] = 0, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Koramar"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 106694, ["done"] = 9069, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 173644, ["done"] = 37359, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 95785, ["done"] = 32061, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 376123, ["done"] = 78489, ["htaken"] = 0, ["htakenspell"] = { }, }, }, ["gotboss"] = true, ["starttime"] = 1423948426, ["healing"] = 808898, ["damagetaken"] = 501960, ["multistrikes"] = 6, ["overhealing"] = 387950.478515625, ["shielding"] = 326857, ["name"] = "Koramar", ["mobname"] = "Koramar", ["power"] = { 140, -- [1] [6] = 135, [0] = 6615, }, ["mobhdone"] = 0, ["last_action"] = 1423948426, ["endtime"] = 1423948503, }, -- [1] { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 50, ["interrupts"] = 0, ["mobdone"] = 210691, ["mobtaken"] = 1286363, ["damage"] = 1286363, ["players"] = { { ["last"] = 1423948388, ["healingabsorbed"] = 0, ["class"] = "PRIEST", ["damaged"] = { }, ["auras"] = { ["Borrowed Time"] = { ["name"] = "Borrowed Time", ["active"] = 1, ["id"] = 59889, ["uptime"] = 27, ["auratype"] = "BUFF", }, ["Body and Soul"] = { ["name"] = "Body and Soul", ["active"] = 1, ["id"] = 65081, ["uptime"] = 19, ["auratype"] = "BUFF", }, ["Divine Aegis"] = { ["name"] = "Divine Aegis", ["active"] = 1, ["id"] = 47753, ["uptime"] = 14, ["auratype"] = "BUFF", }, ["Power Word: Shield"] = { ["name"] = "Power Word: Shield", ["active"] = 1, ["id"] = 17, ["uptime"] = 33, ["auratype"] = "BUFF", }, ["Weakened Soul"] = { ["name"] = "Weakened Soul", ["active"] = 1, ["id"] = 6788, ["uptime"] = 39, ["auratype"] = "DEBUFF", }, ["Intellect"] = { ["name"] = "Intellect", ["active"] = 1, ["id"] = 60234, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Focused Will"] = { ["name"] = "Focused Will", ["active"] = 1, ["id"] = 45242, ["uptime"] = 19, ["auratype"] = "BUFF", }, ["Prayer of Mending"] = { ["name"] = "Prayer of Mending", ["active"] = 0, ["id"] = 41635, ["uptime"] = 42, ["auratype"] = "BUFF", }, }, ["role"] = "HEALER", ["time"] = 49, ["interrupts"] = 0, ["damage"] = 0, ["damagespells"] = { }, ["shielding"] = 141516, ["damagetaken"] = 35780, ["power"] = { }, ["id"] = "Player-3725-06B02413", ["first"] = 1423948339, ["dispells"] = 0, ["damagetakenspells"] = { ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 27714, ["max"] = 9854, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 8252, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 8066, ["max"] = 8066, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8066, ["absorbed"] = 0, }, }, ["maxhp"] = 113220, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 33158, ["class"] = "WARRIOR", ["shielding"] = 21129, }, ["Player-3725-06B02413"] = { ["role"] = "HEALER", ["name"] = "Gachnar", ["amount"] = 8502, ["class"] = "PRIEST", ["shielding"] = 0, }, ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 9663, ["class"] = "SHAMAN", ["shielding"] = 5535, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 176632, ["class"] = "DEATHKNIGHT", ["shielding"] = 114852, }, ["Player-105-07C35AF4"] = { ["role"] = "DAMAGER", ["name"] = "Janettie-Thunderhorn", ["amount"] = 4191, ["class"] = "MAGE", ["shielding"] = 0, }, }, ["name"] = "Gachnar", ["healing"] = 232146, ["healingspells"] = { ["Penance"] = { ["shielding"] = 0, ["id"] = 47750, ["healing"] = 47956, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Penance", ["hits"] = 10, ["overhealing"] = 60343, ["max"] = 13770, ["critical"] = 1, ["absorbed"] = 0, }, ["Power Word: Shield"] = { ["shielding"] = 120285, ["id"] = 17, ["healing"] = 120285, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Power Word: Shield", ["hits"] = 20, ["overhealing"] = 0, ["max"] = 14671, ["critical"] = 0, ["absorbed"] = 0, }, ["Cascade"] = { ["shielding"] = 0, ["id"] = 121148, ["healing"] = 13765, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Cascade", ["hits"] = 5, ["overhealing"] = 4033, ["max"] = 4191, ["critical"] = 1, ["absorbed"] = 0, }, ["Divine Aegis"] = { ["shielding"] = 21231, ["id"] = 47753, ["healing"] = 21231, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Divine Aegis", ["hits"] = 5, ["overhealing"] = 0, ["max"] = 8459, ["critical"] = 0, ["absorbed"] = 0, }, ["Prayer of Mending"] = { ["shielding"] = 0, ["id"] = 33110, ["healing"] = 28909, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 1, ["name"] = "Prayer of Mending", ["hits"] = 9, ["overhealing"] = 8327, ["max"] = 5254, ["critical"] = 1, ["absorbed"] = 0, }, }, ["overhealing"] = 72703, ["ccbreaks"] = 0, ["multistrikes"] = 1, }, -- [1] { ["last"] = 1423948388, ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { ["Oshir"] = 357666, }, ["auras"] = { ["Enrage"] = { ["name"] = "Enrage", ["active"] = 0, ["id"] = 12880, ["uptime"] = 31, ["auratype"] = "BUFF", }, ["Charge"] = { ["name"] = "Charge", ["active"] = 0, ["id"] = 109128, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Strength of Steel"] = { ["name"] = "Strength of Steel", ["active"] = 0, ["id"] = 162917, ["uptime"] = 20, ["auratype"] = "BUFF", }, ["Intervene"] = { ["name"] = "Intervene", ["active"] = 0, ["id"] = 147833, ["uptime"] = 0, ["auratype"] = "BUFF", }, ["Berserker Rage"] = { ["name"] = "Berserker Rage", ["active"] = 0, ["id"] = 18499, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Raging Blow!"] = { ["name"] = "Raging Blow!", ["active"] = 1, ["id"] = 131116, ["uptime"] = 25, ["auratype"] = "BUFF", }, ["Sudden Death"] = { ["name"] = "Sudden Death", ["active"] = 0, ["id"] = 52437, ["uptime"] = 19, ["auratype"] = "BUFF", }, ["Bladestorm"] = { ["name"] = "Bladestorm", ["active"] = 0, ["id"] = 46924, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Shattered Bleed"] = { ["name"] = "Shattered Bleed", ["active"] = 0, ["id"] = 159238, ["uptime"] = 15, ["auratype"] = "DEBUFF", }, ["Mortal Wounds"] = { ["name"] = "Mortal Wounds", ["active"] = 0, ["id"] = 115804, ["uptime"] = 21, ["auratype"] = "DEBUFF", }, ["Darkflight"] = { ["name"] = "Darkflight", ["active"] = 0, ["id"] = 68992, ["uptime"] = 10, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 48, ["interrupts"] = 0, ["damage"] = 357666, ["damagespells"] = { ["Warbringer"] = { ["totalhits"] = 1, ["id"] = 7922, ["IMMUNE"] = 1, ["max"] = 0, ["damage"] = 0, }, ["Execute"] = { ["min"] = 9283, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 5308, ["max"] = 26135, ["damage"] = 79305, }, ["Dragon Roar"] = { ["min"] = 8177, ["critical"] = 1, ["totalhits"] = 2, ["id"] = 118895, ["IMMUNE"] = 1, ["max"] = 8177, ["damage"] = 8177, }, ["Bladestorm Off-Hand"] = { ["min"] = 2865, ["critical"] = 4, ["hit"] = 3, ["totalhits"] = 7, ["id"] = 95738, ["max"] = 6170, ["damage"] = 32655, }, ["Execute Off-Hand"] = { ["min"] = 5337, ["multistrike"] = 2, ["hit"] = 5, ["totalhits"] = 5, ["id"] = 163558, ["max"] = 8180, ["damage"] = 42166, }, ["Shattered Bleed"] = { ["min"] = 947, ["multistrike"] = 4, ["critical"] = 1, ["hit"] = 18, ["totalhits"] = 19, ["id"] = 159238, ["max"] = 3796, ["damage"] = 24114, }, ["Bloodthirst"] = { ["min"] = 1438, ["multistrike"] = 1, ["critical"] = 3, ["hit"] = 1, ["totalhits"] = 4, ["id"] = 23881, ["max"] = 3060, ["damage"] = 9953, }, ["Bladestorm"] = { ["min"] = 4625, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 6, ["totalhits"] = 7, ["id"] = 50622, ["max"] = 9365, ["damage"] = 43712, }, ["Wild Strike"] = { ["min"] = 5015, ["multistrike"] = 1, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 100130, ["max"] = 7265, ["damage"] = 20987, }, ["Heroic Leap"] = { ["min"] = 1741, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 52174, ["max"] = 1741, ["damage"] = 1741, }, ["Raging Blow"] = { ["min"] = 5959, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 96103, ["max"] = 12413, ["damage"] = 24651, }, ["Raging Blow Off-Hand"] = { ["min"] = 3583, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 85384, ["max"] = 3671, ["damage"] = 10873, }, ["Attack"] = { ["id"] = 6603, ["min"] = 1345, ["multistrike"] = 1, ["critical"] = 5, ["hit"] = 15, ["totalhits"] = 24, ["max"] = 6293, ["MISS"] = 4, ["damage"] = 59332, }, }, ["shielding"] = 0, ["damagetaken"] = 103498, ["power"] = { { ["spells"] = { [109128] = 20, [12880] = 50, [23881] = 40, }, ["amount"] = 110, }, -- [1] }, ["id"] = "Player-52-04B8B228", ["first"] = 1423948340, ["dispells"] = 0, ["damagetakenspells"] = { ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 9482, ["max"] = 9482, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 9482, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 73997, ["max"] = 9712, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 8, ["resisted"] = 0, ["min"] = 7471, ["absorbed"] = 1970, }, ["Primal Assault"] = { ["crushing"] = 0, ["id"] = 161256, ["damage"] = 20019, ["max"] = 20019, ["name"] = "Primal Assault", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 20019, ["absorbed"] = 0, }, }, ["maxhp"] = 142332, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 3131, ["class"] = "WARRIOR", ["shielding"] = 0, }, }, ["name"] = "Lupinne", ["healing"] = 3131, ["healingspells"] = { ["Bloodthirst Heal"] = { ["shielding"] = 0, ["id"] = 117313, ["healing"] = 3131, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Bloodthirst Heal", ["hits"] = 4, ["overhealing"] = 9394, ["max"] = 3131, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 9394, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [2] { ["last"] = 1423948388, ["healingabsorbed"] = 0, ["class"] = "SHAMAN", ["damaged"] = { ["Oshir"] = 576185, }, ["auras"] = { ["Elemental Blast: Haste"] = { ["name"] = "Elemental Blast: Haste", ["active"] = 0, ["id"] = 173183, ["uptime"] = 16, ["auratype"] = "BUFF", }, ["Fizzlebang's Folly"] = { ["name"] = "Fizzlebang's Folly", ["active"] = 0, ["id"] = 176903, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Flame Shock"] = { ["name"] = "Flame Shock", ["active"] = 0, ["id"] = 8050, ["uptime"] = 37, ["auratype"] = "DEBUFF", }, ["Lava Surge"] = { ["name"] = "Lava Surge", ["active"] = 0, ["id"] = 77762, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Ascendance"] = { ["name"] = "Ascendance", ["active"] = 0, ["id"] = 114050, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Elemental Blast: Mastery"] = { ["name"] = "Elemental Blast: Mastery", ["active"] = 0, ["id"] = 173184, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Nightmare Fire"] = { ["name"] = "Nightmare Fire", ["active"] = 1, ["id"] = 162919, ["uptime"] = 15, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 48, ["interrupts"] = 0, ["damage"] = 576185, ["damagespells"] = { ["Flame Shock"] = { ["min"] = 686, ["multistrike"] = 7, ["critical"] = 2, ["hit"] = 14, ["totalhits"] = 16, ["id"] = 8050, ["max"] = 3500, ["damage"] = 18867, }, ["Lava Burst"] = { ["min"] = 11429, ["multistrike"] = 14, ["critical"] = 11, ["totalhits"] = 11, ["id"] = 51505, ["max"] = 17144, ["damage"] = 275440, }, ["Molten Earth"] = { ["min"] = 4372, ["multistrike"] = 8, ["critical"] = 3, ["hit"] = 13, ["totalhits"] = 16, ["id"] = 170379, ["max"] = 14141, ["damage"] = 115469, }, ["Fulmination"] = { ["min"] = 12663, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 88767, ["max"] = 12663, ["damage"] = 17792, }, ["Searing Totem: Searing Bolt"] = { ["min"] = 800, ["multistrike"] = 12, ["critical"] = 3, ["hit"] = 16, ["totalhits"] = 19, ["id"] = 3606, ["max"] = 2001, ["damage"] = 24161, }, ["Elemental Blast"] = { ["min"] = 7694, ["multistrike"] = 3, ["critical"] = 2, ["hit"] = 1, ["totalhits"] = 3, ["id"] = 117014, ["max"] = 19234, ["damage"] = 55510, }, ["Lightning Bolt"] = { ["min"] = 6579, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 6, ["totalhits"] = 7, ["id"] = 403, ["max"] = 16448, ["damage"] = 65248, }, ["Earth Shock"] = { ["min"] = 3698, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 8042, ["max"] = 3698, ["damage"] = 3698, }, }, ["shielding"] = 0, ["damagetaken"] = 4128, ["power"] = { }, ["id"] = "Player-3725-06AFFEE7", ["first"] = 1423948340, ["dispells"] = 0, ["damagetakenspells"] = { ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 4128, ["max"] = 4128, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 4128, ["absorbed"] = 5535, }, }, ["maxhp"] = 130980, ["healed"] = { ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 0, ["class"] = "SHAMAN", ["shielding"] = 0, }, }, ["name"] = "Nabooli", ["healing"] = 0, ["healingspells"] = { ["Flames of Life"] = { ["shielding"] = 0, ["id"] = 137808, ["healing"] = 0, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Flames of Life", ["hits"] = 16, ["overhealing"] = 7505, ["max"] = 0, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 7505, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [3] { ["last"] = 1423948387, ["healingabsorbed"] = 0, ["class"] = "MAGE", ["damaged"] = { ["Oshir"] = 211329, }, ["auras"] = { ["Expanded Mind"] = { ["name"] = "Expanded Mind", ["active"] = 0, ["id"] = 146046, ["uptime"] = 20, ["auratype"] = "BUFF", }, ["Arcane Charge"] = { ["name"] = "Arcane Charge", ["active"] = 1, ["id"] = 36032, ["uptime"] = 25, ["auratype"] = "DEBUFF", }, ["Rune of Power"] = { ["name"] = "Rune of Power", ["active"] = 0, ["id"] = 116014, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Ice Floes"] = { ["name"] = "Ice Floes", ["active"] = 1, ["id"] = 108839, ["uptime"] = 4, ["auratype"] = "BUFF", }, ["Arcane Missiles!"] = { ["name"] = "Arcane Missiles!", ["active"] = 1, ["id"] = 79683, ["uptime"] = 11, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 46, ["interrupts"] = 0, ["damage"] = 211329, ["damagespells"] = { ["Arcane Blast"] = { ["min"] = 5184, ["multistrike"] = 3, ["critical"] = 2, ["hit"] = 8, ["totalhits"] = 10, ["id"] = 30451, ["max"] = 21113, ["damage"] = 97443, }, ["Arcane Missiles"] = { ["min"] = 2186, ["multistrike"] = 1, ["critical"] = 4, ["hit"] = 6, ["totalhits"] = 10, ["id"] = 7268, ["max"] = 5607, ["damage"] = 35805, }, ["Arcane Barrage"] = { ["min"] = 5166, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 44425, ["max"] = 19746, ["damage"] = 42514, }, ["Supernova"] = { ["min"] = 15911, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 157980, ["max"] = 19656, ["damage"] = 35567, }, }, ["shielding"] = 0, ["damagetaken"] = 29741, ["power"] = { }, ["id"] = "Player-105-07C35AF4", ["first"] = 1423948341, ["dispells"] = 0, ["damagetakenspells"] = { ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 19826, ["max"] = 9987, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 9839, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 9915, ["max"] = 9915, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 9915, ["absorbed"] = 0, }, }, ["maxhp"] = 110940, ["healed"] = { }, ["name"] = "Janettie", ["healing"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [4] { ["last"] = 1423948389, ["healingabsorbed"] = 0, ["class"] = "DEATHKNIGHT", ["damaged"] = { ["Oshir"] = 141183, }, ["auras"] = { ["Blood Charge"] = { ["name"] = "Blood Charge", ["active"] = 1, ["id"] = 114851, ["uptime"] = 46, ["auratype"] = "BUFF", }, ["Crimson Scourge"] = { ["name"] = "Crimson Scourge", ["active"] = 0, ["id"] = 81141, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Rune Weapon: Soul Reaper"] = { ["name"] = "Rune Weapon: Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, ["Soul Reaper"] = { ["name"] = "Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 15, ["auratype"] = "DEBUFF", }, ["Blood Shield"] = { ["name"] = "Blood Shield", ["active"] = 0, ["id"] = 77535, ["uptime"] = 14, ["auratype"] = "BUFF", }, ["Scent of Blood"] = { ["name"] = "Scent of Blood", ["active"] = 0, ["id"] = 50421, ["uptime"] = 21, ["auratype"] = "BUFF", }, ["Conversion"] = { ["name"] = "Conversion", ["active"] = 0, ["id"] = 119975, ["uptime"] = 4, ["auratype"] = "BUFF", }, ["Blood Plague"] = { ["name"] = "Blood Plague", ["active"] = 0, ["id"] = 55078, ["uptime"] = 41, ["auratype"] = "DEBUFF", }, ["Frost Fever"] = { ["name"] = "Frost Fever", ["active"] = 0, ["id"] = 55095, ["uptime"] = 41, ["auratype"] = "DEBUFF", }, ["Unholy Strength"] = { ["name"] = "Unholy Strength", ["active"] = 0, ["id"] = 53365, ["uptime"] = 45, ["auratype"] = "BUFF", }, ["Rune Tap"] = { ["name"] = "Rune Tap", ["active"] = 0, ["id"] = 171049, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Rune Weapon: Blood Plague"] = { ["name"] = "Rune Weapon: Blood Plague", ["active"] = 1, ["id"] = 55078, ["uptime"] = 46, ["auratype"] = "DEBUFF", }, ["Rune Weapon: Frost Fever"] = { ["name"] = "Rune Weapon: Frost Fever", ["active"] = 1, ["id"] = 55095, ["uptime"] = 46, ["auratype"] = "DEBUFF", }, ["Dark Command"] = { ["name"] = "Dark Command", ["active"] = 0, ["id"] = 56222, ["uptime"] = 6, ["auratype"] = "DEBUFF", }, }, ["role"] = "TANK", ["time"] = 48, ["interrupts"] = 0, ["damage"] = 141183, ["damagespells"] = { ["Rune Weapon: Soul Reaper"] = { ["min"] = 274, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 114866, ["max"] = 274, ["damage"] = 274, }, ["Death Coil"] = { ["min"] = 2240, ["multistrike"] = 2, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 47632, ["max"] = 4481, ["damage"] = 16256, }, ["Attack"] = { ["min"] = 1713, ["multistrike"] = 5, ["critical"] = 4, ["hit"] = 9, ["totalhits"] = 13, ["id"] = 6603, ["max"] = 4143, ["damage"] = 37575, }, ["Death Strike"] = { ["min"] = 5012, ["multistrike"] = 3, ["hit"] = 7, ["totalhits"] = 7, ["id"] = 49998, ["max"] = 5281, ["damage"] = 41005, }, ["Blood Boil"] = { ["min"] = 2000, ["multistrike"] = 1, ["hit"] = 5, ["totalhits"] = 5, ["id"] = 50842, ["max"] = 2000, ["damage"] = 11200, }, ["Rune Weapon: Death Strike"] = { ["min"] = 1360, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 49998, ["max"] = 1360, ["damage"] = 1360, }, ["Blood Plague"] = { ["min"] = 725, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 12, ["totalhits"] = 13, ["id"] = 55078, ["max"] = 1706, ["damage"] = 12066, }, ["Frost Fever"] = { ["min"] = 725, ["multistrike"] = 8, ["hit"] = 13, ["totalhits"] = 13, ["id"] = 55095, ["max"] = 853, ["damage"] = 13476, }, ["Rune Weapon: Blood Boil"] = { ["min"] = 580, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 50842, ["max"] = 580, ["damage"] = 580, }, ["Rune Weapon: Blood Plague"] = { ["min"] = 247, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 55078, ["max"] = 247, ["damage"] = 247, }, ["Soul Reaper"] = { ["min"] = 1123, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 114866, ["max"] = 2626, ["damage"] = 5828, }, ["Rune Weapon: Frost Fever"] = { ["min"] = 247, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 55095, ["max"] = 247, ["damage"] = 247, }, ["Rune Weapon: Attack"] = { ["min"] = 423, ["multistrike"] = 1, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 6603, ["max"] = 497, ["damage"] = 1069, }, }, ["shielding"] = 57587, ["damagetaken"] = 173823, ["power"] = { [6] = { ["spells"] = { [163948] = 75, [50842] = 50, }, ["amount"] = 125, }, }, ["id"] = "Player-1136-073491F8", ["first"] = 1423948341, ["dispells"] = 0, ["damagetakenspells"] = { ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 15619, ["max"] = 8800, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 6819, ["absorbed"] = 0, }, ["Primal Assault"] = { ["crushing"] = 0, ["id"] = 161256, ["damage"] = 31452, ["max"] = 19930, ["name"] = "Primal Assault", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 11522, ["absorbed"] = 8027, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 44301, ["max"] = 8833, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 580, ["absorbed"] = 8267, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 82451, ["max"] = 18557, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 8, ["resisted"] = 0, ["min"] = 1476, ["absorbed"] = 21141, }, }, ["maxhp"] = 110380, ["healed"] = { ["Creature-0-3748-1195-6623-27893-00005FBA33"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Rune Weapon", ["amount"] = 3214, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 128788, ["class"] = "DEATHKNIGHT", ["shielding"] = 57587, }, }, ["name"] = "Stewgottz", ["healing"] = 132002, ["healingspells"] = { ["Rune Weapon: Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 3214, ["multistrikes"] = 0, ["min"] = 3214, ["multistrike"] = 0, ["name"] = "Rune Weapon: Death Strike", ["hits"] = 1, ["overhealing"] = 0, ["max"] = 3214, ["critical"] = 0, ["absorbed"] = 0, }, ["Unholy Strength"] = { ["shielding"] = 0, ["id"] = 53365, ["healing"] = 5759, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Unholy Strength", ["hits"] = 5, ["overhealing"] = 9504, ["max"] = 2880, ["critical"] = 0, ["absorbed"] = 0, }, ["Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 57763, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Death Strike", ["hits"] = 7, ["overhealing"] = 60103, ["max"] = 23603, ["critical"] = 0, ["absorbed"] = 0, }, ["Blood Shield"] = { ["shielding"] = 57587, ["id"] = 77535, ["healing"] = 57587, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Blood Shield", ["hits"] = 14, ["overhealing"] = 8933.673828125, ["max"] = 11947, ["critical"] = 0, ["absorbed"] = 0, }, ["Conversion"] = { ["shielding"] = 0, ["id"] = 119980, ["healing"] = 7679, ["multistrikes"] = 0, ["min"] = 1919, ["multistrike"] = 0, ["name"] = "Conversion", ["hits"] = 4, ["overhealing"] = 0, ["max"] = 1920, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 78540.673828125, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [5] }, ["deaths"] = 0, ["mobs"] = { ["Oshir"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 576185, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 141183, ["done"] = 113903, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Janettie-Thunderhorn"] = { ["taken"] = 211329, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 357666, ["done"] = 20019, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1286363, ["done"] = 133922, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Rylak Skyterror"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 0, ["done"] = 9482, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 0, ["done"] = 4128, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 0, ["done"] = 15619, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 27714, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 0, ["done"] = 19826, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 0, ["done"] = 76769, ["htaken"] = 0, ["htakenspell"] = { }, }, }, ["gotboss"] = true, ["starttime"] = 1423948339, ["healing"] = 367279, ["damagetaken"] = 346970, ["multistrikes"] = 1, ["overhealing"] = 168142.673828125, ["shielding"] = 199103, ["name"] = "Oshir", ["mobname"] = "Oshir", ["power"] = { 110, -- [1] [6] = 125, }, ["mobhdone"] = 0, ["last_action"] = 1423948339, ["endtime"] = 1423948389, }, -- [2] { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 19, ["interrupts"] = 0, ["mobdone"] = 119235, ["damage"] = 637390, ["players"] = { { ["last"] = 1423948311, ["healingabsorbed"] = 0, ["class"] = "PRIEST", ["damaged"] = { ["Siegemaster Rokra"] = 20092, }, ["auras"] = { ["Evangelism"] = { ["name"] = "Evangelism", ["active"] = 0, ["id"] = 81661, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Holy Fire"] = { ["name"] = "Holy Fire", ["active"] = 0, ["id"] = 14914, ["uptime"] = 9, ["auratype"] = "DEBUFF", }, ["Divine Aegis"] = { ["name"] = "Divine Aegis", ["active"] = 0, ["id"] = 47753, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Archangel"] = { ["name"] = "Archangel", ["active"] = 1, ["id"] = 81700, ["uptime"] = 5, ["auratype"] = "BUFF", }, }, ["role"] = "HEALER", ["time"] = 19, ["interrupts"] = 0, ["damage"] = 20092, ["damagespells"] = { ["Holy Fire"] = { ["min"] = 74, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 10, ["totalhits"] = 11, ["id"] = 14914, ["max"] = 6578, ["damage"] = 8384, }, ["Smite"] = { ["min"] = 2209, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 585, ["max"] = 4419, ["damage"] = 11708, }, }, ["shielding"] = 43337, ["damagetaken"] = 0, ["power"] = { }, ["id"] = "Player-3725-06B02413", ["first"] = 1423948292, ["dispells"] = 0, ["damagetakenspells"] = { }, ["maxhp"] = 113220, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 7846, ["class"] = "WARRIOR", ["shielding"] = 3033, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 72266, ["class"] = "DEATHKNIGHT", ["shielding"] = 40304, }, ["Player-105-07C35AF4"] = { ["role"] = "DAMAGER", ["name"] = "Janettie-Thunderhorn", ["amount"] = 8340, ["class"] = "MAGE", ["shielding"] = 0, }, ["Player-3725-06B02413"] = { ["role"] = "HEALER", ["name"] = "Gachnar", ["amount"] = 0, ["class"] = "PRIEST", ["shielding"] = 0, }, }, ["name"] = "Gachnar", ["healing"] = 88452, ["healingspells"] = { ["Penance"] = { ["shielding"] = 0, ["id"] = 47750, ["healing"] = 26471, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Penance", ["hits"] = 6, ["overhealing"] = 30710, ["max"] = 9624, ["critical"] = 1, ["absorbed"] = 0, }, ["Power Word: Shield"] = { ["shielding"] = 27468, ["id"] = 17, ["healing"] = 27468, ["multistrikes"] = 0, ["min"] = 255, ["multistrike"] = 0, ["name"] = "Power Word: Shield", ["hits"] = 3, ["overhealing"] = 0, ["max"] = 14621, ["critical"] = 0, ["absorbed"] = 0, }, ["Cascade"] = { ["shielding"] = 0, ["id"] = 121148, ["healing"] = 4050, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Cascade", ["hits"] = 3, ["overhealing"] = 5634, ["max"] = 3202, ["critical"] = 0, ["absorbed"] = 0, }, ["Atonement"] = { ["shielding"] = 0, ["id"] = 94472, ["healing"] = 14594, ["multistrikes"] = 0, ["min"] = 24, ["multistrike"] = 0, ["name"] = "Atonement", ["hits"] = 18, ["overhealing"] = 0, ["max"] = 3289, ["critical"] = 2, ["absorbed"] = 0, }, ["Divine Aegis"] = { ["shielding"] = 15869, ["id"] = 47753, ["healing"] = 15869, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Divine Aegis", ["hits"] = 7, ["overhealing"] = 4514.33447265625, ["max"] = 9794, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 40858.3344726563, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [1] { ["last"] = 1423948309, ["healingabsorbed"] = 0, ["class"] = "DEATHKNIGHT", ["damaged"] = { ["Siegemaster Rokra"] = 85686, ["Grom'kar Battlemaster"] = 13751, ["Grom'kar Technician"] = 20869, }, ["auras"] = { ["Soul Reaper"] = { ["name"] = "Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 10, ["auratype"] = "DEBUFF", }, ["Rune Tap"] = { ["name"] = "Rune Tap", ["active"] = 0, ["id"] = 171049, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Blood Shield"] = { ["name"] = "Blood Shield", ["active"] = 0, ["id"] = 77535, ["uptime"] = 5, ["auratype"] = "BUFF", }, ["Chilblains"] = { ["name"] = "Chilblains", ["active"] = 0, ["id"] = 50435, ["uptime"] = 8, ["auratype"] = "DEBUFF", }, ["Scent of Blood"] = { ["name"] = "Scent of Blood", ["active"] = 1, ["id"] = 50421, ["uptime"] = 15, ["auratype"] = "BUFF", }, }, ["role"] = "TANK", ["time"] = 17, ["interrupts"] = 0, ["damage"] = 120306, ["damagespells"] = { ["Soul Reaper"] = { ["min"] = 1378, ["multistrike"] = 1, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 114866, ["max"] = 9260, ["damage"] = 12459, }, ["Blood Plague"] = { ["min"] = 852, ["multistrike"] = 4, ["hit"] = 16, ["totalhits"] = 16, ["id"] = 55078, ["max"] = 853, ["damage"] = 14667, }, ["Frost Fever"] = { ["min"] = 852, ["multistrike"] = 6, ["critical"] = 3, ["hit"] = 13, ["totalhits"] = 16, ["id"] = 55095, ["max"] = 1706, ["damage"] = 17736, }, ["Death and Decay"] = { ["min"] = 333, ["multistrike"] = 12, ["critical"] = 5, ["hit"] = 25, ["totalhits"] = 30, ["id"] = 52212, ["max"] = 666, ["damage"] = 13252, }, ["Death Coil"] = { ["min"] = 2241, ["multistrike"] = 3, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 47632, ["max"] = 4482, ["damage"] = 17702, }, ["Attack"] = { ["min"] = 2091, ["multistrike"] = 5, ["hit"] = 8, ["totalhits"] = 8, ["id"] = 6603, ["max"] = 2171, ["damage"] = 20292, }, ["Death Strike"] = { ["min"] = 5272, ["multistrike"] = 1, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 49998, ["max"] = 5344, ["damage"] = 12198, }, ["Blood Boil"] = { ["min"] = 2000, ["critical"] = 1, ["hit"] = 4, ["totalhits"] = 5, ["id"] = 50842, ["max"] = 4000, ["damage"] = 12000, }, }, ["shielding"] = 16398, ["damagetaken"] = 58719, ["power"] = { [6] = { ["spells"] = { [163948] = 75, [50842] = 20, }, ["amount"] = 95, }, }, ["id"] = "Player-1136-073491F8", ["first"] = 1423948292, ["dispells"] = 0, ["damagetakenspells"] = { ["Bladestorm"] = { ["crushing"] = 0, ["id"] = 167233, ["damage"] = 9586, ["max"] = 6595, ["name"] = "Bladestorm", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 2991, ["absorbed"] = 3514, }, ["Fling Hammer"] = { ["crushing"] = 0, ["id"] = 172703, ["damage"] = 11413, ["max"] = 11413, ["name"] = "Fling Hammer", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 11413, ["absorbed"] = 0, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 37720, ["max"] = 11090, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 4936, ["absorbed"] = 270, }, }, ["maxhp"] = 95983, ["healed"] = { ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 35469, ["class"] = "DEATHKNIGHT", ["shielding"] = 16398, }, }, ["name"] = "Stewgottz", ["healing"] = 35469, ["healingspells"] = { ["Blood Shield"] = { ["shielding"] = 16398, ["id"] = 77535, ["healing"] = 16398, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Blood Shield", ["hits"] = 6, ["overhealing"] = 0, ["max"] = 6182, ["critical"] = 0, ["absorbed"] = 0, }, ["Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 16192, ["multistrikes"] = 0, ["min"] = 5102, ["multistrike"] = 0, ["name"] = "Death Strike", ["hits"] = 2, ["overhealing"] = 16206, ["max"] = 11090, ["critical"] = 0, ["absorbed"] = 0, }, ["Unholy Strength"] = { ["shielding"] = 0, ["id"] = 53365, ["healing"] = 2879, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Unholy Strength", ["hits"] = 2, ["overhealing"] = 2879, ["max"] = 2879, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 19085, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [2] { ["last"] = 1423948309, ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { ["Grom'kar Technician"] = 36429, ["Grom'kar Battlemaster"] = 147717, ["Siegemaster Rokra"] = 72788, }, ["auras"] = { ["Enrage"] = { ["name"] = "Enrage", ["active"] = 1, ["id"] = 12880, ["uptime"] = 13, ["auratype"] = "BUFF", }, ["Raging Blow!"] = { ["name"] = "Raging Blow!", ["active"] = 0, ["id"] = 131116, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Sudden Death"] = { ["name"] = "Sudden Death", ["active"] = 1, ["id"] = 52437, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Meat Cleaver"] = { ["name"] = "Meat Cleaver", ["active"] = 1, ["id"] = 85739, ["uptime"] = 5, ["auratype"] = "BUFF", }, ["Shattered Bleed"] = { ["name"] = "Shattered Bleed", ["active"] = 0, ["id"] = 159238, ["uptime"] = 14, ["auratype"] = "DEBUFF", }, ["Dragon Roar"] = { ["name"] = "Dragon Roar", ["active"] = 0, ["id"] = 118895, ["uptime"] = 0, ["auratype"] = "DEBUFF", }, ["Bloodsurge"] = { ["name"] = "Bloodsurge", ["active"] = 1, ["id"] = 46916, ["uptime"] = 5, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 17, ["interrupts"] = 0, ["damage"] = 256934, ["damagespells"] = { ["Execute"] = { ["min"] = 9621, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 5308, ["max"] = 13299, ["damage"] = 35721, }, ["Dragon Roar"] = { ["min"] = 8177, ["critical"] = 3, ["totalhits"] = 4, ["id"] = 118895, ["IMMUNE"] = 1, ["max"] = 8177, ["damage"] = 24531, }, ["Execute Off-Hand"] = { ["min"] = 8061, ["multistrike"] = 1, ["critical"] = 2, ["hit"] = 1, ["totalhits"] = 3, ["id"] = 163558, ["max"] = 15824, ["damage"] = 38169, }, ["Bloodthirst"] = { ["min"] = 2256, ["critical"] = 2, ["totalhits"] = 2, ["id"] = 23881, ["max"] = 2281, ["damage"] = 4537, }, ["Whirlwind"] = { ["min"] = 1680, ["multistrike"] = 1, ["critical"] = 2, ["hit"] = 6, ["totalhits"] = 8, ["id"] = 1680, ["max"] = 3732, ["damage"] = 18369, }, ["Shattered Bleed"] = { ["min"] = 663, ["multistrike"] = 2, ["critical"] = 2, ["hit"] = 16, ["totalhits"] = 18, ["id"] = 159238, ["max"] = 2652, ["damage"] = 22385, }, ["Raging Blow Off-Hand"] = { ["min"] = 3858, ["hit"] = 4, ["totalhits"] = 4, ["id"] = 85384, ["max"] = 4059, ["damage"] = 15859, }, ["Raging Blow"] = { ["min"] = 11973, ["multistrike"] = 1, ["critical"] = 4, ["totalhits"] = 4, ["id"] = 96103, ["max"] = 12985, ["damage"] = 51274, }, ["Whirlwind Off-Hand"] = { ["min"] = 1046, ["multistrike"] = 1, ["critical"] = 3, ["hit"] = 5, ["totalhits"] = 8, ["id"] = 44949, ["max"] = 2200, ["damage"] = 12567, }, ["Attack"] = { ["id"] = 6603, ["min"] = 1386, ["multistrike"] = 3, ["critical"] = 4, ["hit"] = 6, ["totalhits"] = 11, ["max"] = 4662, ["MISS"] = 1, ["damage"] = 33522, }, }, ["shielding"] = 0, ["damagetaken"] = 34691, ["power"] = { { ["spells"] = { [23881] = 20, [12880] = 20, }, ["amount"] = 40, }, -- [1] }, ["id"] = "Player-52-04B8B228", ["first"] = 1423948292, ["dispells"] = 0, ["damagetakenspells"] = { ["Bladestorm"] = { ["crushing"] = 0, ["id"] = 167233, ["damage"] = 23681, ["max"] = 6801, ["name"] = "Bladestorm", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 3913, ["absorbed"] = 3033, }, ["High Explosive Grenade"] = { ["crushing"] = 0, ["id"] = 178299, ["damage"] = 11010, ["max"] = 11010, ["name"] = "High Explosive Grenade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 11010, ["absorbed"] = 0, }, }, ["maxhp"] = 142332, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 3132, ["class"] = "WARRIOR", ["shielding"] = 0, }, }, ["name"] = "Lupinne", ["healing"] = 3132, ["healingspells"] = { ["Bloodthirst Heal"] = { ["shielding"] = 0, ["id"] = 117313, ["healing"] = 3132, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Bloodthirst Heal", ["hits"] = 2, ["overhealing"] = 3132, ["max"] = 3132, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 3132, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [3] { ["last"] = 1423948310, ["healingabsorbed"] = 0, ["class"] = "SHAMAN", ["damaged"] = { ["Grom'kar Technician"] = 59347, ["Grom'kar Battlemaster"] = 60502, ["Siegemaster Rokra"] = 50592, }, ["auras"] = { ["Fizzlebang's Folly"] = { ["name"] = "Fizzlebang's Folly", ["active"] = 1, ["id"] = 176903, ["uptime"] = 13, ["auratype"] = "BUFF", }, ["Improved Chain Lightning"] = { ["name"] = "Improved Chain Lightning", ["active"] = 1, ["id"] = 157766, ["uptime"] = 13, ["auratype"] = "BUFF", }, ["Earthquake"] = { ["name"] = "Earthquake", ["active"] = 0, ["id"] = 61882, ["uptime"] = 13, ["auratype"] = "BUFF", }, ["Elemental Blast: Mastery"] = { ["name"] = "Elemental Blast: Mastery", ["active"] = 0, ["id"] = 173184, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Glyph of Lightning Shield"] = { ["name"] = "Glyph of Lightning Shield", ["active"] = 1, ["id"] = 142912, ["uptime"] = 5, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 16, ["interrupts"] = 0, ["damage"] = 170441, ["damagespells"] = { ["Lightning Shield"] = { ["min"] = 905, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 26364, ["max"] = 905, ["damage"] = 1821, }, ["Earthquake"] = { ["min"] = 661, ["multistrike"] = 36, ["critical"] = 3, ["hit"] = 28, ["totalhits"] = 31, ["id"] = 77478, ["max"] = 1813, ["damage"] = 37651, }, ["Fulmination"] = { ["min"] = 12663, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 88767, ["max"] = 12663, ["damage"] = 12663, }, ["Molten Earth"] = { ["min"] = 5657, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 170379, ["max"] = 5657, ["damage"] = 7948, }, ["Elemental Blast"] = { ["min"] = 7693, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 117014, ["max"] = 7693, ["damage"] = 7693, }, ["Chain Lightning"] = { ["min"] = 4370, ["multistrike"] = 6, ["critical"] = 2, ["hit"] = 14, ["totalhits"] = 16, ["id"] = 421, ["max"] = 10926, ["damage"] = 98967, }, ["Earth Shock"] = { ["min"] = 3698, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 8042, ["max"] = 3698, ["damage"] = 3698, }, }, ["shielding"] = 0, ["damagetaken"] = 17485, ["power"] = { }, ["id"] = "Player-3725-06AFFEE7", ["first"] = 1423948294, ["dispells"] = 0, ["damagetakenspells"] = { ["Gatecrasher"] = { ["crushing"] = 0, ["id"] = 172963, ["damage"] = 17485, ["max"] = 8743, ["name"] = "Gatecrasher", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 8742, ["absorbed"] = 0, }, }, ["maxhp"] = 130980, ["healed"] = { }, ["name"] = "Nabooli", ["healing"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [4] { ["last"] = 1423948309, ["healingabsorbed"] = 0, ["class"] = "MAGE", ["damaged"] = { ["Grom'kar Technician"] = 16275, ["Grom'kar Battlemaster"] = 32550, ["Siegemaster Rokra"] = 20792, }, ["auras"] = { ["Exquisite Proficiency"] = { ["name"] = "Exquisite Proficiency", ["active"] = 1, ["id"] = 133630, ["uptime"] = 2, ["auratype"] = "BUFF", }, ["Rune of Power"] = { ["name"] = "Rune of Power", ["active"] = 1, ["id"] = 116014, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Arcane Charge"] = { ["name"] = "Arcane Charge", ["active"] = 1, ["id"] = 36032, ["uptime"] = 2, ["auratype"] = "DEBUFF", }, ["Arcane Missiles!"] = { ["name"] = "Arcane Missiles!", ["active"] = 1, ["id"] = 79683, ["uptime"] = 9, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 14, ["interrupts"] = 0, ["damage"] = 69617, ["damagespells"] = { ["Supernova"] = { ["min"] = 8137, ["hit"] = 6, ["totalhits"] = 6, ["id"] = 157980, ["max"] = 16275, ["damage"] = 65101, }, ["Arcane Missiles"] = { ["min"] = 1109, ["hit"] = 4, ["totalhits"] = 4, ["id"] = 7268, ["max"] = 1189, ["damage"] = 4516, }, }, ["shielding"] = 0, ["damagetaken"] = 8340, ["power"] = { }, ["id"] = "Player-105-07C35AF4", ["first"] = 1423948295, ["dispells"] = 0, ["damagetakenspells"] = { ["Chain Drag"] = { ["crushing"] = 0, ["id"] = 172860, ["damage"] = 8340, ["max"] = 8340, ["name"] = "Chain Drag", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8340, ["absorbed"] = 0, }, }, ["maxhp"] = 110940, ["healed"] = { }, ["name"] = "Janettie", ["healing"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [5] }, ["deaths"] = 0, ["mobs"] = { ["Siegemaster Rokra"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 72788, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Gachnar"] = { ["taken"] = 20092, ["done"] = 0, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 85686, ["done"] = 26666, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 50592, ["done"] = 17485, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 20792, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 249950, ["done"] = 44151, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Battlemaster"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 147717, ["done"] = 23681, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 13751, ["done"] = 9586, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Janettie-Thunderhorn"] = { ["taken"] = 32550, ["done"] = 8340, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 60502, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 254520, ["done"] = 41607, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Technician"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 36429, ["done"] = 11010, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 20869, ["done"] = 22467, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 59347, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 16275, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 132920, ["done"] = 33477, ["htaken"] = 0, ["htakenspell"] = { }, }, }, ["mobtaken"] = 637390, ["starttime"] = 1423948292, ["healing"] = 127053, ["power"] = { 40, -- [1] [6] = 95, }, ["damagetaken"] = 119235, ["overhealing"] = 63075.3344726563, ["shielding"] = 59735, ["name"] = "Siegemaster Rokra", ["mobname"] = "Siegemaster Rokra", ["multistrikes"] = 0, ["mobhdone"] = 0, ["last_action"] = 1423948292, ["endtime"] = 1423948311, }, -- [3] { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 22, ["interrupts"] = 0, ["mobdone"] = 293773, ["damage"] = 707027, ["players"] = { { ["last"] = 1423948262, ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { ["Ironwing Flamespitter"] = 129046, ["Thunderlord Wrangler"] = 156180, }, ["auras"] = { ["Enrage"] = { ["name"] = "Enrage", ["active"] = 1, ["id"] = 12880, ["uptime"] = 7, ["auratype"] = "BUFF", }, ["Mortal Wounds"] = { ["name"] = "Mortal Wounds", ["active"] = 0, ["id"] = 115804, ["uptime"] = 10, ["auratype"] = "DEBUFF", }, ["Raging Blow!"] = { ["name"] = "Raging Blow!", ["active"] = 0, ["id"] = 131116, ["uptime"] = 2, ["auratype"] = "BUFF", }, ["Meat Cleaver"] = { ["name"] = "Meat Cleaver", ["active"] = 0, ["id"] = 85739, ["uptime"] = 4, ["auratype"] = "BUFF", }, ["Shattered Bleed"] = { ["name"] = "Shattered Bleed", ["active"] = 0, ["id"] = 159238, ["uptime"] = 11, ["auratype"] = "DEBUFF", }, }, ["role"] = "DAMAGER", ["time"] = 20, ["interrupts"] = 0, ["damage"] = 285226, ["damagespells"] = { ["Execute"] = { ["min"] = 18858, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 5308, ["max"] = 18858, ["damage"] = 18858, }, ["Whirlwind"] = { ["min"] = 1242, ["multistrike"] = 1, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 1680, ["max"] = 2478, ["damage"] = 9072, }, ["Raging Blow Off-Hand"] = { ["min"] = 2676, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 85384, ["max"] = 3944, ["damage"] = 6620, }, ["Execute Off-Hand"] = { ["min"] = 5492, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 163558, ["max"] = 5492, ["damage"] = 5492, }, ["Bladestorm Off-Hand"] = { ["min"] = 2077, ["multistrike"] = 4, ["critical"] = 6, ["hit"] = 17, ["totalhits"] = 23, ["id"] = 95738, ["max"] = 4420, ["damage"] = 64886, }, ["Bloodthirst"] = { ["min"] = 1091, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 23881, ["max"] = 2187, ["damage"] = 3278, }, ["Shattered Bleed"] = { ["min"] = 658, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 19, ["totalhits"] = 20, ["id"] = 159238, ["max"] = 2652, ["damage"] = 18000, }, ["Wild Strike"] = { ["min"] = 5146, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 100130, ["max"] = 5146, ["damage"] = 5146, }, ["Bladestorm"] = { ["min"] = 2446, ["multistrike"] = 3, ["critical"] = 5, ["hit"] = 18, ["totalhits"] = 23, ["max"] = 7365, ["id"] = 50622, ["damage"] = 100216, }, ["Raging Blow"] = { ["min"] = 6148, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 96103, ["max"] = 13077, ["damage"] = 19225, }, ["Whirlwind Off-Hand"] = { ["min"] = 742, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 44949, ["max"] = 1489, ["damage"] = 5266, }, ["Attack"] = { ["id"] = 6603, ["min"] = 1473, ["multistrike"] = 3, ["critical"] = 5, ["hit"] = 3, ["totalhits"] = 9, ["max"] = 4824, ["MISS"] = 1, ["damage"] = 29167, }, }, ["shielding"] = 0, ["damagetaken"] = 51499, ["power"] = { { ["spells"] = { [23881] = 20, [12880] = 10, }, ["amount"] = 30, }, -- [1] }, ["id"] = "Player-52-04B8B228", ["first"] = 1423948242, ["dispells"] = 0, ["damagetakenspells"] = { ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 23434, ["max"] = 2890, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 9, ["resisted"] = 0, ["min"] = 322, ["absorbed"] = 2568, }, ["Jagged Caltrops"] = { ["crushing"] = 0, ["id"] = 173324, ["damage"] = 28065, ["max"] = 5613, ["name"] = "Jagged Caltrops", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 5613, ["absorbed"] = 0, }, }, ["maxhp"] = 142332, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 6262, ["class"] = "WARRIOR", ["shielding"] = 0, }, }, ["name"] = "Lupinne", ["healing"] = 6262, ["healingspells"] = { ["Bloodthirst Heal"] = { ["shielding"] = 0, ["id"] = 117313, ["healing"] = 6262, ["multistrikes"] = 0, ["min"] = 3131, ["multistrike"] = 0, ["name"] = "Bloodthirst Heal", ["hits"] = 2, ["overhealing"] = 0, ["max"] = 3131, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [1] { ["last"] = 1423948263, ["healingabsorbed"] = 0, ["class"] = "MAGE", ["damaged"] = { ["Ironwing Flamespitter"] = 96768, ["Thunderlord Wrangler"] = 35937, }, ["auras"] = { ["Arcane Charge"] = { ["name"] = "Arcane Charge", ["active"] = 1, ["id"] = 36032, ["uptime"] = 8, ["auratype"] = "DEBUFF", }, ["Rune of Power"] = { ["name"] = "Rune of Power", ["active"] = 1, ["id"] = 116014, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Arcane Missiles!"] = { ["name"] = "Arcane Missiles!", ["active"] = 0, ["id"] = 79683, ["uptime"] = 1, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 20, ["interrupts"] = 0, ["damage"] = 132705, ["damagespells"] = { ["Arcane Blast"] = { ["min"] = 5578, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 30451, ["max"] = 26020, ["damage"] = 58610, }, ["Arcane Missiles"] = { ["min"] = 1446, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 7268, ["max"] = 1446, ["damage"] = 1446, }, ["Arcane Barrage"] = { ["min"] = 4281, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 44425, ["max"] = 8563, ["damage"] = 17125, }, ["Supernova"] = { ["min"] = 8757, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 157980, ["max"] = 17866, ["damage"] = 55524, }, }, ["shielding"] = 0, ["damagetaken"] = 44044, ["power"] = { }, ["id"] = "Player-105-07C35AF4", ["first"] = 1423948243, ["dispells"] = 0, ["damagetakenspells"] = { ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 44044, ["max"] = 14682, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 14681, ["absorbed"] = 0, }, }, ["maxhp"] = 110940, ["healed"] = { }, ["name"] = "Janettie", ["healing"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [2] { ["last"] = 1423948264, ["healingabsorbed"] = 0, ["class"] = "DEATHKNIGHT", ["damaged"] = { ["Ironwing Flamespitter"] = 71669, ["Thunderlord Wrangler"] = 54430, }, ["auras"] = { ["Soul Reaper"] = { ["name"] = "Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, ["Scent of Blood"] = { ["name"] = "Scent of Blood", ["active"] = 1, ["id"] = 50421, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Will of the Necropolis"] = { ["name"] = "Will of the Necropolis", ["active"] = 1, ["id"] = 157335, ["uptime"] = 12, ["auratype"] = "DEBUFF", }, ["Blood Shield"] = { ["name"] = "Blood Shield", ["active"] = 0, ["id"] = 77535, ["uptime"] = 4, ["auratype"] = "BUFF", }, ["Rune Tap"] = { ["name"] = "Rune Tap", ["active"] = 0, ["id"] = 171049, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Vampiric Blood"] = { ["name"] = "Vampiric Blood", ["active"] = 1, ["id"] = 55233, ["uptime"] = 9, ["auratype"] = "BUFF", }, ["Chilblains"] = { ["name"] = "Chilblains", ["active"] = 0, ["id"] = 50435, ["uptime"] = 20, ["auratype"] = "DEBUFF", }, ["Death Grip"] = { ["name"] = "Death Grip", ["active"] = 0, ["id"] = 49560, ["uptime"] = 1, ["auratype"] = "DEBUFF", }, }, ["role"] = "TANK", ["time"] = 21, ["interrupts"] = 0, ["damage"] = 126099, ["damagespells"] = { ["Soul Reaper"] = { ["min"] = 1368, ["multistrike"] = 1, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 114867, ["max"] = 9259, ["damage"] = 21273, }, ["Blood Plague"] = { ["min"] = 724, ["multistrike"] = 9, ["critical"] = 2, ["hit"] = 18, ["totalhits"] = 20, ["id"] = 55078, ["max"] = 1706, ["damage"] = 19920, }, ["Frost Fever"] = { ["min"] = 724, ["multistrike"] = 8, ["critical"] = 3, ["hit"] = 17, ["totalhits"] = 20, ["id"] = 55095, ["max"] = 1706, ["damage"] = 20905, }, ["Death Coil"] = { ["min"] = 1904, ["multistrike"] = 1, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 47632, ["max"] = 2240, ["damage"] = 5489, }, ["Blood Boil"] = { ["min"] = 1700, ["multistrike"] = 3, ["hit"] = 11, ["totalhits"] = 11, ["id"] = 50842, ["max"] = 2000, ["damage"] = 23410, }, ["Death Strike"] = { ["min"] = 4643, ["multistrike"] = 3, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 49998, ["max"] = 10599, ["damage"] = 21207, }, ["Attack"] = { ["min"] = 1477, ["multistrike"] = 2, ["hit"] = 7, ["totalhits"] = 7, ["id"] = 6603, ["max"] = 2098, ["damage"] = 13895, }, }, ["shielding"] = 27806, ["damagetaken"] = 185132, ["power"] = { [6] = { ["spells"] = { [50842] = 40, [163948] = 30, }, ["amount"] = 70, }, }, ["id"] = "Player-1136-073491F8", ["first"] = 1423948243, ["dispells"] = 0, ["damagetakenspells"] = { ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 66048, ["max"] = 13209, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 5288, ["absorbed"] = 7920, }, ["Throw"] = { ["crushing"] = 0, ["id"] = 167095, ["damage"] = 27597, ["max"] = 9179, ["name"] = "Throw", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 3683, ["absorbed"] = 7904, }, ["Lava Blast"] = { ["crushing"] = 0, ["id"] = 173517, ["damage"] = 22417, ["max"] = 8806, ["name"] = "Lava Blast", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 4806, ["absorbed"] = 3999, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 31651, ["max"] = 2642, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 12, ["resisted"] = 0, ["min"] = 2620, ["absorbed"] = 0, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 37419, ["max"] = 14183, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 6604, ["absorbed"] = 0, }, }, ["maxhp"] = 95983, ["healed"] = { ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 78741, ["class"] = "DEATHKNIGHT", ["shielding"] = 27806, }, }, ["name"] = "Stewgottz", ["healing"] = 78741, ["healingspells"] = { ["Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 50935, ["multistrikes"] = 0, ["min"] = 14383, ["multistrike"] = 0, ["name"] = "Death Strike", ["hits"] = 2, ["overhealing"] = 8763, ["max"] = 36552, ["critical"] = 0, ["absorbed"] = 0, }, ["Blood Shield"] = { ["shielding"] = 27806, ["id"] = 77535, ["healing"] = 27806, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Blood Shield", ["hits"] = 7, ["overhealing"] = 0, ["max"] = 8709, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 8763, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [3] { ["last"] = 1423948262, ["healingabsorbed"] = 0, ["class"] = "PRIEST", ["damaged"] = { }, ["auras"] = { ["Borrowed Time"] = { ["name"] = "Borrowed Time", ["active"] = 0, ["id"] = 59889, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Power Word: Shield"] = { ["name"] = "Power Word: Shield", ["active"] = 0, ["id"] = 17, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Weakened Soul"] = { ["name"] = "Weakened Soul", ["active"] = 1, ["id"] = 6788, ["uptime"] = 19, ["auratype"] = "DEBUFF", }, ["Body and Soul"] = { ["name"] = "Body and Soul", ["active"] = 0, ["id"] = 65081, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Divine Aegis"] = { ["name"] = "Divine Aegis", ["active"] = 2, ["id"] = 47753, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Prayer of Mending"] = { ["name"] = "Prayer of Mending", ["active"] = 1, ["id"] = 41635, ["uptime"] = 3, ["auratype"] = "BUFF", }, }, ["role"] = "HEALER", ["time"] = 19, ["interrupts"] = 0, ["damage"] = 0, ["damagespells"] = { }, ["shielding"] = 66062, ["damagetaken"] = 0, ["power"] = { }, ["id"] = "Player-3725-06B02413", ["first"] = 1423948243, ["dispells"] = 0, ["damagetakenspells"] = { }, ["maxhp"] = 113220, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 22391, ["class"] = "WARRIOR", ["shielding"] = 11231, }, ["Player-3725-06B02413"] = { ["role"] = "HEALER", ["name"] = "Gachnar", ["amount"] = 2668, ["class"] = "PRIEST", ["shielding"] = 0, }, ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 11029, ["class"] = "SHAMAN", ["shielding"] = 0, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 143587, ["class"] = "DEATHKNIGHT", ["shielding"] = 54831, }, ["Player-105-07C35AF4"] = { ["role"] = "DAMAGER", ["name"] = "Janettie-Thunderhorn", ["amount"] = 13877, ["class"] = "MAGE", ["shielding"] = 0, }, }, ["name"] = "Gachnar", ["healing"] = 193552, ["healingspells"] = { ["Heal"] = { ["shielding"] = 0, ["id"] = 2060, ["healing"] = 25639, ["multistrikes"] = 0, ["min"] = 5303, ["multistrike"] = 1, ["name"] = "Heal", ["hits"] = 2, ["overhealing"] = 0, ["max"] = 20336, ["critical"] = 0, ["absorbed"] = 0, }, ["Penance"] = { ["shielding"] = 0, ["id"] = 47750, ["healing"] = 47270, ["multistrikes"] = 0, ["min"] = 9127, ["multistrike"] = 0, ["name"] = "Penance", ["hits"] = 5, ["overhealing"] = 0, ["max"] = 10007, ["critical"] = 1, ["absorbed"] = 0, }, ["Power Word: Shield"] = { ["shielding"] = 42258, ["id"] = 17, ["healing"] = 42258, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Power Word: Shield", ["hits"] = 7, ["overhealing"] = 0, ["max"] = 13209, ["critical"] = 0, ["absorbed"] = 0, }, ["Prayer of Healing"] = { ["shielding"] = 0, ["id"] = 596, ["healing"] = 37184, ["multistrikes"] = 0, ["min"] = 2398, ["multistrike"] = 1, ["name"] = "Prayer of Healing", ["hits"] = 6, ["overhealing"] = 5424, ["max"] = 8186, ["critical"] = 1, ["absorbed"] = 0, }, ["Cascade"] = { ["shielding"] = 0, ["id"] = 121148, ["healing"] = 13056, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 3, ["name"] = "Cascade", ["hits"] = 8, ["overhealing"] = 2622, ["max"] = 2977, ["critical"] = 2, ["absorbed"] = 0, }, ["Divine Aegis"] = { ["shielding"] = 23804, ["id"] = 47753, ["healing"] = 23804, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Divine Aegis", ["hits"] = 9, ["overhealing"] = 0, ["max"] = 6442, ["critical"] = 0, ["absorbed"] = 0, }, ["Prayer of Mending"] = { ["shielding"] = 0, ["id"] = 33110, ["healing"] = 4341, ["multistrikes"] = 0, ["min"] = 4341, ["multistrike"] = 0, ["name"] = "Prayer of Mending", ["hits"] = 1, ["overhealing"] = 0, ["max"] = 4341, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 8046, ["ccbreaks"] = 0, ["multistrikes"] = 5, }, -- [4] { ["last"] = 1423948263, ["healingabsorbed"] = 0, ["class"] = "SHAMAN", ["damaged"] = { ["Ironwing Flamespitter"] = 38558, ["Thunderlord Wrangler"] = 124439, }, ["auras"] = { ["Improved Chain Lightning"] = { ["name"] = "Improved Chain Lightning", ["active"] = 0, ["id"] = 157766, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Flame Shock"] = { ["name"] = "Flame Shock", ["active"] = 0, ["id"] = 8050, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, ["Glyph of Lightning Shield"] = { ["name"] = "Glyph of Lightning Shield", ["active"] = 0, ["id"] = 142912, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Nightmare Fire"] = { ["name"] = "Nightmare Fire", ["active"] = 1, ["id"] = 162919, ["uptime"] = 10, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 19, ["interrupts"] = 0, ["damage"] = 162997, ["damagespells"] = { ["Lightning Shield"] = { ["min"] = 905, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 26364, ["max"] = 905, ["damage"] = 1810, }, ["Molten Earth"] = { ["min"] = 4373, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 170379, ["max"] = 10932, ["damage"] = 23221, }, ["Flame Shock"] = { ["min"] = 701, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 8050, ["max"] = 3499, ["damage"] = 6451, }, ["Fulmination"] = { ["min"] = 12662, ["multistrike"] = 1, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 88767, ["max"] = 12662, ["damage"] = 17790, }, ["Lava Burst"] = { ["min"] = 17144, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 51505, ["max"] = 17144, ["damage"] = 17144, }, ["Chain Lightning"] = { ["min"] = 4370, ["multistrike"] = 6, ["critical"] = 4, ["hit"] = 7, ["totalhits"] = 11, ["id"] = 421, ["max"] = 10926, ["damage"] = 92883, }, ["Earth Shock"] = { ["min"] = 3698, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 8042, ["max"] = 3698, ["damage"] = 3698, }, }, ["shielding"] = 0, ["damagetaken"] = 13098, ["power"] = { }, ["id"] = "Player-3725-06AFFEE7", ["first"] = 1423948244, ["dispells"] = 0, ["damagetakenspells"] = { ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 13098, ["max"] = 13098, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 13098, ["absorbed"] = 0, }, }, ["maxhp"] = 130980, ["healed"] = { ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 2670, ["class"] = "SHAMAN", ["shielding"] = 0, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 30403, ["class"] = "DEATHKNIGHT", ["shielding"] = 0, }, }, ["name"] = "Nabooli", ["healing"] = 33073, ["healingspells"] = { ["Flames of Life"] = { ["shielding"] = 0, ["id"] = 137808, ["healing"] = 2670, ["multistrikes"] = 0, ["min"] = 335, ["multistrike"] = 0, ["name"] = "Flames of Life", ["hits"] = 3, ["overhealing"] = 0, ["max"] = 1668, ["critical"] = 0, ["absorbed"] = 0, }, ["Healing Surge"] = { ["shielding"] = 0, ["id"] = 8004, ["healing"] = 30403, ["multistrikes"] = 0, ["min"] = 5033, ["multistrike"] = 2, ["name"] = "Healing Surge", ["hits"] = 3, ["overhealing"] = 2280, ["max"] = 18057, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 2280, ["ccbreaks"] = 0, ["multistrikes"] = 2, }, -- [5] }, ["deaths"] = 0, ["mobs"] = { ["Ironwing Flamespitter"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 129046, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 71669, ["done"] = 111701, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Janettie-Thunderhorn"] = { ["taken"] = 96768, ["done"] = 44044, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 38558, ["done"] = 13098, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 336041, ["done"] = 168843, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Thunderlord Wrangler"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 156180, ["done"] = 51499, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 54430, ["done"] = 73431, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Janettie-Thunderhorn"] = { ["taken"] = 35937, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 124439, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 370986, ["done"] = 124930, ["htaken"] = 0, ["htakenspell"] = { }, }, }, ["mobtaken"] = 707027, ["starttime"] = 1423948242, ["healing"] = 311628, ["power"] = { 30, -- [1] [6] = 70, }, ["damagetaken"] = 293773, ["overhealing"] = 19089, ["shielding"] = 93868, ["name"] = "Ironwing Flamespitter (2)", ["mobname"] = "Ironwing Flamespitter", ["multistrikes"] = 7, ["mobhdone"] = 0, ["last_action"] = 1423948242, ["endtime"] = 1423948264, }, -- [4] { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 30, ["interrupts"] = 0, ["mobdone"] = 274622, ["damage"] = 612964, ["players"] = { { ["last"] = 1423948229, ["healingabsorbed"] = 0, ["class"] = "DEATHKNIGHT", ["damaged"] = { ["Ironwing Flamespitter"] = 33330, ["Rampaging Clefthoof"] = 31137, ["Thunderlord Wrangler"] = 45862, }, ["auras"] = { ["Rune Tap"] = { ["name"] = "Rune Tap", ["active"] = 0, ["id"] = 171049, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Death and Decay"] = { ["name"] = "Death and Decay", ["active"] = 0, ["id"] = 43265, ["uptime"] = 10, ["auratype"] = "DEBUFF", }, ["Blood Shield"] = { ["name"] = "Blood Shield", ["active"] = 0, ["id"] = 77535, ["uptime"] = 1, ["auratype"] = "BUFF", }, ["Scent of Blood"] = { ["name"] = "Scent of Blood", ["active"] = 0, ["id"] = 50421, ["uptime"] = 24, ["auratype"] = "BUFF", }, ["Soul Reaper"] = { ["name"] = "Soul Reaper", ["active"] = 1, ["id"] = 114866, ["uptime"] = 10, ["auratype"] = "DEBUFF", }, ["Blood Plague"] = { ["name"] = "Blood Plague", ["active"] = 0, ["id"] = 55078, ["uptime"] = 17, ["auratype"] = "DEBUFF", }, ["Frost Fever"] = { ["name"] = "Frost Fever", ["active"] = 0, ["id"] = 55095, ["uptime"] = 17, ["auratype"] = "DEBUFF", }, ["Unholy Strength"] = { ["name"] = "Unholy Strength", ["active"] = 0, ["id"] = 53365, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Crimson Scourge"] = { ["name"] = "Crimson Scourge", ["active"] = 1, ["id"] = 81141, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Chilblains"] = { ["name"] = "Chilblains", ["active"] = 0, ["id"] = 50435, ["uptime"] = 19, ["auratype"] = "DEBUFF", }, ["Dark Command"] = { ["name"] = "Dark Command", ["active"] = 0, ["id"] = 56222, ["uptime"] = 3, ["auratype"] = "DEBUFF", }, }, ["role"] = "TANK", ["time"] = 28, ["interrupts"] = 0, ["damage"] = 110329, ["damagespells"] = { ["Soul Reaper"] = { ["min"] = 1196, ["multistrike"] = 1, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 114866, ["max"] = 1346, ["damage"] = 2901, }, ["Blood Plague"] = { ["min"] = 725, ["multistrike"] = 5, ["critical"] = 3, ["hit"] = 14, ["totalhits"] = 17, ["id"] = 55078, ["max"] = 1706, ["damage"] = 17286, }, ["Frost Fever"] = { ["min"] = 724, ["multistrike"] = 4, ["critical"] = 3, ["hit"] = 14, ["totalhits"] = 17, ["id"] = 55095, ["max"] = 1706, ["damage"] = 17234, }, ["Death and Decay"] = { ["min"] = 283, ["multistrike"] = 13, ["critical"] = 3, ["hit"] = 25, ["totalhits"] = 28, ["id"] = 52212, ["max"] = 666, ["damage"] = 11541, }, ["Death Coil"] = { ["min"] = 2241, ["multistrike"] = 2, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 47632, ["max"] = 2241, ["damage"] = 5826, }, ["Blood Boil"] = { ["min"] = 1700, ["multistrike"] = 3, ["critical"] = 2, ["hit"] = 7, ["totalhits"] = 9, ["id"] = 50842, ["max"] = 4000, ["damage"] = 22420, }, ["Death Strike"] = { ["min"] = 4722, ["multistrike"] = 1, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 49998, ["max"] = 5427, ["damage"] = 16548, }, ["Attack"] = { ["min"] = 1841, ["multistrike"] = 3, ["hit"] = 7, ["totalhits"] = 7, ["id"] = 6603, ["max"] = 2168, ["damage"] = 16573, }, }, ["shielding"] = 20533, ["damagetaken"] = 65401, ["power"] = { [6] = { ["spells"] = { [50842] = 30, [163948] = 45, }, ["amount"] = 75, }, }, ["id"] = "Player-1136-073491F8", ["first"] = 1423948201, ["dispells"] = 0, ["damagetakenspells"] = { ["Rending Cleave"] = { ["crushing"] = 0, ["id"] = 167815, ["damage"] = 10638, ["max"] = 8285, ["name"] = "Rending Cleave", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 2353, ["absorbed"] = 5816, }, ["Throw"] = { ["crushing"] = 0, ["id"] = 167095, ["damage"] = 17676, ["max"] = 8497, ["name"] = "Throw", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 3683, ["absorbed"] = 4985, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 13208, ["max"] = 2642, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 2641, ["absorbed"] = 0, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 23879, ["max"] = 11118, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 503, ["absorbed"] = 16144, }, }, ["maxhp"] = 95983, ["healed"] = { ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 48225, ["class"] = "DEATHKNIGHT", ["shielding"] = 20533, }, }, ["name"] = "Stewgottz", ["healing"] = 48225, ["healingspells"] = { ["Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 24813, ["multistrikes"] = 0, ["min"] = 2353, ["multistrike"] = 0, ["name"] = "Death Strike", ["hits"] = 3, ["overhealing"] = 15749, ["max"] = 16461, ["critical"] = 0, ["absorbed"] = 0, }, ["Blood Shield"] = { ["shielding"] = 20533, ["id"] = 77535, ["healing"] = 20533, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Blood Shield", ["hits"] = 6, ["overhealing"] = 0, ["max"] = 9732, ["critical"] = 0, ["absorbed"] = 0, }, ["Unholy Strength"] = { ["shielding"] = 0, ["id"] = 53365, ["healing"] = 2879, ["multistrikes"] = 0, ["min"] = 2879, ["multistrike"] = 0, ["name"] = "Unholy Strength", ["hits"] = 1, ["overhealing"] = 0, ["max"] = 2879, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 15749, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [1] { ["last"] = 1423948228, ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { ["Ironwing Flamespitter"] = 13433, ["Rampaging Clefthoof"] = 120658, ["Thunderlord Wrangler"] = 21071, }, ["auras"] = { ["Enrage"] = { ["name"] = "Enrage", ["active"] = 0, ["id"] = 12880, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Charge"] = { ["name"] = "Charge", ["active"] = 0, ["id"] = 109128, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Strength of Steel"] = { ["name"] = "Strength of Steel", ["active"] = 0, ["id"] = 162917, ["uptime"] = 20, ["auratype"] = "BUFF", }, ["Victorious"] = { ["name"] = "Victorious", ["active"] = 1, ["id"] = 32216, ["uptime"] = 16, ["auratype"] = "BUFF", }, ["Dragon Roar"] = { ["name"] = "Dragon Roar", ["active"] = 0, ["id"] = 118895, ["uptime"] = 1, ["auratype"] = "DEBUFF", }, ["Sudden Death"] = { ["name"] = "Sudden Death", ["active"] = 0, ["id"] = 52437, ["uptime"] = 9, ["auratype"] = "BUFF", }, ["Meat Cleaver"] = { ["name"] = "Meat Cleaver", ["active"] = 0, ["id"] = 85739, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Shattered Bleed"] = { ["name"] = "Shattered Bleed", ["active"] = 0, ["id"] = 159238, ["uptime"] = 14, ["auratype"] = "DEBUFF", }, ["Victory Rush"] = { ["name"] = "Victory Rush", ["active"] = 0, ["id"] = 118779, ["uptime"] = 6, ["auratype"] = "BUFF", }, ["Raging Blow!"] = { ["name"] = "Raging Blow!", ["active"] = 0, ["id"] = 131116, ["uptime"] = 12, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 27, ["interrupts"] = 0, ["damage"] = 155162, ["damagespells"] = { ["Execute"] = { ["min"] = 9407, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 5308, ["max"] = 17661, ["damage"] = 27068, }, ["Dragon Roar"] = { ["min"] = 8176, ["critical"] = 3, ["totalhits"] = 5, ["id"] = 118895, ["IMMUNE"] = 2, ["max"] = 8177, ["damage"] = 24530, }, ["Execute Off-Hand"] = { ["min"] = 5507, ["critical"] = 2, ["hit"] = 1, ["totalhits"] = 3, ["id"] = 163558, ["max"] = 16110, ["damage"] = 32843, }, ["Bloodthirst"] = { ["min"] = 1140, ["critical"] = 1, ["hit"] = 1, ["totalhits"] = 2, ["id"] = 23881, ["max"] = 2121, ["damage"] = 3261, }, ["Whirlwind"] = { ["min"] = 1169, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 1680, ["max"] = 2564, ["damage"] = 8663, }, ["Warbringer"] = { ["totalhits"] = 1, ["id"] = 7922, ["IMMUNE"] = 1, ["max"] = 0, ["damage"] = 0, }, ["Shattered Bleed"] = { ["min"] = 663, ["multistrike"] = 1, ["critical"] = 3, ["hit"] = 19, ["totalhits"] = 22, ["id"] = 159238, ["max"] = 2653, ["damage"] = 23420, }, ["Victory Rush"] = { ["min"] = 3476, ["hit"] = 1, ["totalhits"] = 1, ["id"] = 34428, ["max"] = 3476, ["damage"] = 3476, }, ["Whirlwind Off-Hand"] = { ["min"] = 754, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 44949, ["max"] = 1567, ["damage"] = 5331, }, ["Attack"] = { ["min"] = 1420, ["critical"] = 5, ["hit"] = 4, ["totalhits"] = 9, ["id"] = 6603, ["max"] = 4890, ["damage"] = 26570, }, }, ["shielding"] = 0, ["damagetaken"] = 100054, ["power"] = { { ["spells"] = { [109128] = 20, [23881] = 20, [12880] = 10, }, ["amount"] = 50, }, -- [1] }, ["id"] = "Player-52-04B8B228", ["first"] = 1423948201, ["dispells"] = 0, ["damagetakenspells"] = { ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 86702, ["max"] = 14448, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 7232, ["absorbed"] = 14430, }, ["Trampling Stampede"] = { ["crushing"] = 0, ["id"] = 173351, ["damage"] = 13352, ["max"] = 13352, ["name"] = "Trampling Stampede", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 13352, ["absorbed"] = 0, }, }, ["maxhp"] = 142332, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 27611, ["class"] = "WARRIOR", ["shielding"] = 0, }, }, ["name"] = "Lupinne", ["healing"] = 27611, ["healingspells"] = { ["Bloodthirst Heal"] = { ["shielding"] = 0, ["id"] = 117313, ["healing"] = 6262, ["multistrikes"] = 0, ["min"] = 3131, ["multistrike"] = 0, ["name"] = "Bloodthirst Heal", ["hits"] = 2, ["overhealing"] = 0, ["max"] = 3131, ["critical"] = 0, ["absorbed"] = 0, }, ["Victory Rush"] = { ["shielding"] = 0, ["id"] = 118779, ["healing"] = 21349, ["multistrikes"] = 0, ["min"] = 21349, ["multistrike"] = 0, ["name"] = "Victory Rush", ["hits"] = 1, ["overhealing"] = 0, ["max"] = 21349, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [2] { ["last"] = 1423948229, ["healingabsorbed"] = 0, ["class"] = "MAGE", ["damaged"] = { ["Ironwing Flamespitter"] = 95014, ["Rampaging Clefthoof"] = 48504, ["Thunderlord Wrangler"] = 20403, }, ["auras"] = { ["Exquisite Proficiency"] = { ["name"] = "Exquisite Proficiency", ["active"] = 0, ["id"] = 133630, ["uptime"] = 20, ["auratype"] = "BUFF", }, ["Arcane Charge"] = { ["name"] = "Arcane Charge", ["active"] = 1, ["id"] = 36032, ["uptime"] = 2, ["auratype"] = "DEBUFF", }, ["Arcane Missiles!"] = { ["name"] = "Arcane Missiles!", ["active"] = 1, ["id"] = 79683, ["uptime"] = 4, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 27, ["interrupts"] = 0, ["damage"] = 163921, ["damagespells"] = { ["Arcane Blast"] = { ["min"] = 4507, ["multistrike"] = 1, ["critical"] = 2, ["hit"] = 3, ["totalhits"] = 5, ["id"] = 30451, ["max"] = 32074, ["damage"] = 87102, }, ["Arcane Missiles"] = { ["min"] = 2343, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 9, ["totalhits"] = 10, ["id"] = 7268, ["max"] = 6806, ["damage"] = 34613, }, ["Arcane Barrage"] = { ["min"] = 2783, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 44425, ["max"] = 4952, ["damage"] = 7735, }, ["Supernova"] = { ["min"] = 8161, ["multistrike"] = 1, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 157980, ["max"] = 16322, ["damage"] = 34471, }, }, ["shielding"] = 0, ["damagetaken"] = 0, ["power"] = { }, ["id"] = "Player-105-07C35AF4", ["first"] = 1423948202, ["dispells"] = 0, ["damagetakenspells"] = { }, ["maxhp"] = 110940, ["healed"] = { }, ["name"] = "Janettie", ["healing"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [3] { ["last"] = 1423948229, ["healingabsorbed"] = 0, ["class"] = "PRIEST", ["damaged"] = { ["Thunderlord Wrangler"] = 4517, }, ["auras"] = { ["Intellect"] = { ["name"] = "Intellect", ["active"] = 0, ["id"] = 60234, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Holy Fire"] = { ["name"] = "Holy Fire", ["active"] = 0, ["id"] = 14914, ["uptime"] = 3, ["auratype"] = "DEBUFF", }, ["Focused Will"] = { ["name"] = "Focused Will", ["active"] = 0, ["id"] = 45242, ["uptime"] = 13, ["auratype"] = "BUFF", }, ["Body and Soul"] = { ["name"] = "Body and Soul", ["active"] = 0, ["id"] = 65081, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Borrowed Time"] = { ["name"] = "Borrowed Time", ["active"] = 0, ["id"] = 59889, ["uptime"] = 12, ["auratype"] = "BUFF", }, ["Divine Aegis"] = { ["name"] = "Divine Aegis", ["active"] = 0, ["id"] = 47753, ["uptime"] = 11, ["auratype"] = "BUFF", }, ["Weakened Soul"] = { ["name"] = "Weakened Soul", ["active"] = 1, ["id"] = 6788, ["uptime"] = 19, ["auratype"] = "DEBUFF", }, ["Prayer of Mending"] = { ["name"] = "Prayer of Mending", ["active"] = 0, ["id"] = 41635, ["uptime"] = 3, ["auratype"] = "BUFF", }, ["Power Word: Shield"] = { ["name"] = "Power Word: Shield", ["active"] = 1, ["id"] = 17, ["uptime"] = 14, ["auratype"] = "BUFF", }, ["Evangelism"] = { ["name"] = "Evangelism", ["active"] = 1, ["id"] = 81661, ["uptime"] = 4, ["auratype"] = "BUFF", }, }, ["role"] = "HEALER", ["time"] = 25, ["interrupts"] = 0, ["damage"] = 4517, ["damagespells"] = { ["Holy Fire"] = { ["min"] = 80, ["multistrike"] = 1, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 14914, ["max"] = 3289, ["damage"] = 4517, }, }, ["shielding"] = 91020, ["damagetaken"] = 11760, ["power"] = { }, ["id"] = "Player-3725-06B02413", ["first"] = 1423948204, ["dispells"] = 0, ["damagetakenspells"] = { ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 11760, ["max"] = 2214, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 1376, ["absorbed"] = 1808, }, }, ["maxhp"] = 113220, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 67755, ["class"] = "WARRIOR", ["shielding"] = 20043, }, ["Player-3725-06B02413"] = { ["role"] = "HEALER", ["name"] = "Gachnar", ["amount"] = 18612, ["class"] = "PRIEST", ["shielding"] = 16398, }, ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 70499, ["class"] = "SHAMAN", ["shielding"] = 18039, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 70566, ["class"] = "DEATHKNIGHT", ["shielding"] = 36540, }, ["Player-105-07C35AF4"] = { ["role"] = "DAMAGER", ["name"] = "Janettie-Thunderhorn", ["amount"] = 6092, ["class"] = "MAGE", ["shielding"] = 0, }, }, ["name"] = "Gachnar", ["healing"] = 233524, ["healingspells"] = { ["Power Word: Shield"] = { ["shielding"] = 26742, ["id"] = 17, ["healing"] = 26742, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Power Word: Shield", ["hits"] = 6, ["overhealing"] = 0, ["max"] = 9264, ["critical"] = 0, ["absorbed"] = 0, }, ["Heal"] = { ["shielding"] = 0, ["id"] = 2060, ["healing"] = 23890, ["multistrikes"] = 0, ["min"] = 23890, ["multistrike"] = 0, ["name"] = "Heal", ["hits"] = 1, ["overhealing"] = 0, ["max"] = 23890, ["critical"] = 0, ["absorbed"] = 0, }, ["Penance"] = { ["shielding"] = 0, ["id"] = 47750, ["healing"] = 59440, ["multistrikes"] = 0, ["min"] = 3848, ["multistrike"] = 0, ["name"] = "Penance", ["hits"] = 6, ["overhealing"] = 8017, ["max"] = 13661, ["critical"] = 1, ["absorbed"] = 0, }, ["Prayer of Healing"] = { ["shielding"] = 0, ["id"] = 596, ["healing"] = 16015, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Prayer of Healing", ["hits"] = 4, ["overhealing"] = 28571, ["max"] = 10221, ["critical"] = 2, ["absorbed"] = 0, }, ["Divine Aegis"] = { ["shielding"] = 64278, ["id"] = 47753, ["healing"] = 64278, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Divine Aegis", ["hits"] = 19, ["overhealing"] = 0, ["max"] = 14590, ["critical"] = 0, ["absorbed"] = 0, }, ["Cascade"] = { ["shielding"] = 0, ["id"] = 121148, ["healing"] = 13825, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 2, ["name"] = "Cascade", ["hits"] = 7, ["overhealing"] = 3999, ["max"] = 4193, ["critical"] = 1, ["absorbed"] = 0, }, ["Atonement"] = { ["shielding"] = 0, ["id"] = 81751, ["healing"] = 3047, ["multistrikes"] = 0, ["min"] = 80, ["multistrike"] = 0, ["name"] = "Atonement", ["hits"] = 4, ["overhealing"] = 1390, ["max"] = 1899, ["critical"] = 1, ["absorbed"] = 0, }, ["Prayer of Mending"] = { ["shielding"] = 0, ["id"] = 33110, ["healing"] = 26287, ["multistrikes"] = 0, ["min"] = 5257, ["multistrike"] = 0, ["name"] = "Prayer of Mending", ["hits"] = 5, ["overhealing"] = 0, ["max"] = 5258, ["critical"] = 2, ["absorbed"] = 0, }, }, ["overhealing"] = 41977, ["ccbreaks"] = 0, ["multistrikes"] = 2, }, -- [4] { ["last"] = 1423948230, ["healingabsorbed"] = 0, ["class"] = "SHAMAN", ["damaged"] = { ["Ironwing Flamespitter"] = 55898, ["Rampaging Clefthoof"] = 6471, ["Thunderlord Wrangler"] = 116666, }, ["auras"] = { ["Lava Surge"] = { ["name"] = "Lava Surge", ["active"] = 0, ["id"] = 77762, ["uptime"] = 1, ["auratype"] = "BUFF", }, ["Fizzlebang's Folly"] = { ["name"] = "Fizzlebang's Folly", ["active"] = 0, ["id"] = 176903, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Improved Chain Lightning"] = { ["name"] = "Improved Chain Lightning", ["active"] = 0, ["id"] = 157766, ["uptime"] = 15, ["auratype"] = "BUFF", }, ["Thunderstorm"] = { ["name"] = "Thunderstorm", ["active"] = 0, ["id"] = 51490, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, ["Glyph of Lightning Shield"] = { ["name"] = "Glyph of Lightning Shield", ["active"] = 1, ["id"] = 142912, ["uptime"] = 17, ["auratype"] = "BUFF", }, ["Flame Shock"] = { ["name"] = "Flame Shock", ["active"] = 0, ["id"] = 8050, ["uptime"] = 16, ["auratype"] = "DEBUFF", }, }, ["role"] = "DAMAGER", ["time"] = 25, ["interrupts"] = 0, ["damage"] = 179035, ["damagespells"] = { ["Lava Burst"] = { ["min"] = 17143, ["multistrike"] = 5, ["critical"] = 3, ["totalhits"] = 3, ["id"] = 51505, ["max"] = 17144, ["damage"] = 86146, }, ["Molten Earth"] = { ["min"] = 4372, ["multistrike"] = 4, ["critical"] = 1, ["hit"] = 5, ["totalhits"] = 6, ["id"] = 170379, ["max"] = 10932, ["damage"] = 42536, }, ["Thunderstorm"] = { ["min"] = 4195, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 51490, ["max"] = 4195, ["damage"] = 4195, }, ["Lightning Shield"] = { ["min"] = 904, ["multistrike"] = 3, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 3, ["id"] = 26364, ["max"] = 2261, ["damage"] = 5169, }, ["Chain Lightning"] = { ["min"] = 4370, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 421, ["max"] = 4371, ["damage"] = 13112, }, ["Lightning Bolt"] = { ["min"] = 6579, ["multistrike"] = 2, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 403, ["max"] = 6579, ["damage"] = 18486, }, ["Flame Shock"] = { ["min"] = 700, ["multistrike"] = 1, ["hit"] = 8, ["totalhits"] = 8, ["id"] = 8050, ["max"] = 1960, ["damage"] = 9391, }, }, ["shielding"] = 0, ["damagetaken"] = 97407, ["power"] = { }, ["id"] = "Player-3725-06AFFEE7", ["first"] = 1423948205, ["dispells"] = 0, ["damagetakenspells"] = { ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 52393, ["max"] = 13099, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 13098, ["absorbed"] = 0, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 12987, ["max"] = 2620, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 2509, ["absorbed"] = 111, }, ["Jagged Caltrops"] = { ["crushing"] = 0, ["id"] = 173324, ["damage"] = 32027, ["max"] = 4996, ["name"] = "Jagged Caltrops", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 2054, ["absorbed"] = 2942, }, }, ["maxhp"] = 130980, ["healed"] = { ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 1669, ["class"] = "SHAMAN", ["shielding"] = 0, }, }, ["name"] = "Nabooli", ["healing"] = 1669, ["healingspells"] = { ["Flames of Life"] = { ["shielding"] = 0, ["id"] = 137808, ["healing"] = 1669, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Flames of Life", ["hits"] = 8, ["overhealing"] = 2537, ["max"] = 668, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 2537, ["ccbreaks"] = 0, ["multistrikes"] = 0, }, -- [5] }, ["deaths"] = 0, ["mobs"] = { ["Ironwing Flamespitter"] = { ["players"] = { ["Janettie-Thunderhorn"] = { ["taken"] = 95014, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 33330, ["done"] = 12325, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 55898, ["done"] = 52393, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 13433, ["done"] = 86702, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 197675, ["done"] = 151420, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Rampaging Clefthoof"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 120658, ["done"] = 13352, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 31137, ["done"] = 11554, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 6471, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 48504, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 206770, ["done"] = 24906, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Thunderlord Wrangler"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 21071, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 116666, ["done"] = 45014, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 45862, ["done"] = 41522, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 4517, ["done"] = 11760, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 20403, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 208519, ["done"] = 98296, ["htaken"] = 0, ["htakenspell"] = { }, }, }, ["mobtaken"] = 612964, ["starttime"] = 1423948201, ["healing"] = 311029, ["power"] = { 50, -- [1] [6] = 75, }, ["damagetaken"] = 274622, ["overhealing"] = 60263, ["shielding"] = 111553, ["name"] = "Thunderlord Wrangler (2)", ["mobname"] = "Thunderlord Wrangler", ["multistrikes"] = 2, ["mobhdone"] = 0, ["last_action"] = 1423948201, ["endtime"] = 1423948231, }, -- [5] }, ["total"] = { ["healingabsorbed"] = 0, ["dispells"] = 7, ["ccbreaks"] = 0, ["time"] = 613, ["interrupts"] = 0, ["damage"] = 17376176, ["players"] = { { ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { }, ["auras"] = { ["Enrage"] = { ["name"] = "Enrage", ["active"] = 10, ["id"] = 12880, ["uptime"] = 606, ["auratype"] = "BUFF", }, ["Charge"] = { ["name"] = "Charge", ["active"] = 0, ["id"] = 109128, ["uptime"] = 48, ["auratype"] = "BUFF", }, ["Strength of Steel"] = { ["name"] = "Strength of Steel", ["active"] = 1, ["id"] = 162917, ["uptime"] = 539, ["auratype"] = "BUFF", }, ["Dragon Roar"] = { ["name"] = "Dragon Roar", ["active"] = 0, ["id"] = 118895, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, ["Berserker Rage"] = { ["name"] = "Berserker Rage", ["active"] = 0, ["id"] = 18499, ["uptime"] = 54, ["auratype"] = "BUFF", }, ["Sudden Death"] = { ["name"] = "Sudden Death", ["active"] = 1, ["id"] = 52437, ["uptime"] = 222, ["auratype"] = "BUFF", }, ["Meat Cleaver"] = { ["name"] = "Meat Cleaver", ["active"] = 5, ["id"] = 85739, ["uptime"] = 611, ["auratype"] = "BUFF", }, ["Shattered Bleed"] = { ["name"] = "Shattered Bleed", ["active"] = 0, ["id"] = 159238, ["uptime"] = 228, ["auratype"] = "DEBUFF", }, ["Exhaustion"] = { ["name"] = "Exhaustion", ["active"] = 1, ["id"] = 57723, ["uptime"] = 329, ["auratype"] = "DEBUFF", }, ["Hamstring"] = { ["name"] = "Hamstring", ["active"] = 0, ["id"] = 1715, ["uptime"] = 7, ["auratype"] = "DEBUFF", }, ["Victorious"] = { ["name"] = "Victorious", ["active"] = 4, ["id"] = 32216, ["uptime"] = 507, ["auratype"] = "BUFF", }, ["Warbringer"] = { ["name"] = "Warbringer", ["active"] = 0, ["id"] = 7922, ["uptime"] = 3, ["auratype"] = "DEBUFF", }, ["Bloodsurge"] = { ["name"] = "Bloodsurge", ["active"] = 2, ["id"] = 46916, ["uptime"] = 590, ["auratype"] = "BUFF", }, ["Intervene"] = { ["name"] = "Intervene", ["active"] = 0, ["id"] = 147833, ["uptime"] = 0, ["auratype"] = "BUFF", }, ["Mortal Wounds"] = { ["name"] = "Mortal Wounds", ["active"] = 0, ["id"] = 115804, ["uptime"] = 148, ["auratype"] = "DEBUFF", }, ["Raging Blow!"] = { ["name"] = "Raging Blow!", ["active"] = 5, ["id"] = 131116, ["uptime"] = 502, ["auratype"] = "BUFF", }, ["Victory Rush"] = { ["name"] = "Victory Rush", ["active"] = 2, ["id"] = 118779, ["uptime"] = 539, ["auratype"] = "BUFF", }, ["Bladestorm"] = { ["name"] = "Bladestorm", ["active"] = 0, ["id"] = 46924, ["uptime"] = 130, ["auratype"] = "BUFF", }, ["Die by the Sword"] = { ["name"] = "Die by the Sword", ["active"] = 1, ["id"] = 118038, ["uptime"] = 341, ["auratype"] = "BUFF", }, ["Darkflight"] = { ["name"] = "Darkflight", ["active"] = 0, ["id"] = 68992, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Inspiring Presence"] = { ["name"] = "Inspiring Presence", ["active"] = 1, ["id"] = 167188, ["uptime"] = 30, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 517, ["interrupts"] = 0, ["damage"] = 5424740, ["damagespells"] = { ["Execute"] = { ["min"] = 8505, ["multistrike"] = 5, ["critical"] = 17, ["hit"] = 34, ["totalhits"] = 51, ["id"] = 5308, ["max"] = 26819, ["damage"] = 765143, }, ["Dragon Roar"] = { ["min"] = 8176, ["critical"] = 23, ["totalhits"] = 36, ["id"] = 118000, ["IMMUNE"] = 13, ["max"] = 11702, ["damage"] = 205687, }, ["Bloodthirst"] = { ["min"] = 703, ["multistrike"] = 5, ["critical"] = 37, ["hit"] = 15, ["totalhits"] = 52, ["id"] = 23881, ["max"] = 3281, ["damage"] = 112008, }, ["Raging Blow Off-Hand"] = { ["min"] = 2506, ["multistrike"] = 4, ["critical"] = 13, ["hit"] = 34, ["totalhits"] = 47, ["id"] = 85384, ["max"] = 8192, ["damage"] = 228201, }, ["Shattered Bleed"] = { ["min"] = 657, ["multistrike"] = 33, ["critical"] = 22, ["hit"] = 312, ["totalhits"] = 334, ["id"] = 159238, ["max"] = 3796, ["damage"] = 365137, }, ["Whirlwind Off-Hand"] = { ["min"] = 692, ["multistrike"] = 7, ["critical"] = 25, ["hit"] = 62, ["totalhits"] = 87, ["id"] = 44949, ["max"] = 2341, ["damage"] = 103181, }, ["Hamstring"] = { ["min"] = 108, ["BLOCK"] = 1, ["critical"] = 1, ["hit"] = 2, ["totalhits"] = 4, ["max"] = 224, ["id"] = 1715, ["damage"] = 443, }, ["Raging Blow"] = { ["min"] = 4343, ["multistrike"] = 6, ["critical"] = 18, ["hit"] = 30, ["totalhits"] = 48, ["id"] = 96103, ["max"] = 13527, ["damage"] = 417908, }, ["Execute Off-Hand"] = { ["min"] = 5278, ["multistrike"] = 5, ["critical"] = 19, ["hit"] = 36, ["totalhits"] = 55, ["id"] = 163558, ["max"] = 17426, ["damage"] = 531542, }, ["Bladestorm"] = { ["min"] = 2393, ["multistrike"] = 24, ["critical"] = 44, ["hit"] = 122, ["totalhits"] = 166, ["id"] = 50622, ["max"] = 10897, ["damage"] = 895811, }, ["Warbringer"] = { ["totalhits"] = 6, ["id"] = 7922, ["IMMUNE"] = 6, ["max"] = 0, ["damage"] = 0, }, ["Bladestorm Off-Hand"] = { ["min"] = 1526, ["multistrike"] = 20, ["critical"] = 48, ["hit"] = 117, ["totalhits"] = 165, ["id"] = 95738, ["max"] = 6454, ["damage"] = 556091, }, ["Wild Strike"] = { ["min"] = 4691, ["multistrike"] = 4, ["critical"] = 9, ["hit"] = 21, ["totalhits"] = 30, ["id"] = 100130, ["max"] = 15651, ["damage"] = 259199, }, ["Heroic Leap"] = { ["min"] = 937, ["multistrike"] = 1, ["critical"] = 9, ["hit"] = 4, ["totalhits"] = 13, ["id"] = 52174, ["max"] = 1936, ["damage"] = 20699, }, ["Victory Rush"] = { ["min"] = 3345, ["critical"] = 2, ["hit"] = 10, ["totalhits"] = 12, ["id"] = 34428, ["max"] = 9950, ["damage"] = 56210, }, ["Whirlwind"] = { ["min"] = 1168, ["multistrike"] = 8, ["critical"] = 30, ["hit"] = 57, ["totalhits"] = 87, ["id"] = 1680, ["max"] = 3755, ["damage"] = 174749, }, ["Attack"] = { ["id"] = 6603, ["min"] = 1344, ["multistrike"] = 28, ["critical"] = 77, ["hit"] = 151, ["totalhits"] = 279, ["max"] = 6987, ["MISS"] = 51, ["damage"] = 732731, }, }, ["deathlog"] = { { ["absorb"] = 0, ["amount"] = 624, ["spellid"] = 143924, ["srcname"] = "Lupinne-Alleria", ["hp"] = 42366, ["ts"] = 1423948475.086, }, -- [1] { ["absorb"] = 0, ["amount"] = 445, ["spellid"] = 143924, ["srcname"] = "Lupinne-Alleria", ["hp"] = 42811, ["ts"] = 1423948476.288, }, -- [2] { ["absorb"] = 0, ["amount"] = 10022, ["spellid"] = 47750, ["srcname"] = "Gachnar", ["hp"] = 52833, ["ts"] = 1423948477.281, }, -- [3] { ["absorb"] = 0, ["amount"] = 1328, ["spellid"] = 143924, ["srcname"] = "Lupinne-Alleria", ["hp"] = 54161, ["ts"] = 1423948477.508, }, -- [4] { ["absorb"] = 0, ["amount"] = 9557, ["spellid"] = 47750, ["srcname"] = "Gachnar", ["hp"] = 63718, ["ts"] = 1423948478.194, }, -- [5] { ["absorb"] = 0, ["amount"] = 3131, ["spellid"] = 117313, ["srcname"] = "Lupinne-Alleria", ["hp"] = 66849, ["ts"] = 1423948479.042, }, -- [6] { ["absorb"] = 0, ["amount"] = 9687, ["spellid"] = 47750, ["srcname"] = "Gachnar", ["hp"] = 76536, ["ts"] = 1423948479.096, }, -- [7] { ["absorb"] = 0, ["amount"] = 16118, ["spellid"] = 2060, ["srcname"] = "Gachnar", ["hp"] = 92654, ["ts"] = 1423948483.09, }, -- [8] { ["absorb"] = 0, ["amount"] = 4918, ["spellid"] = 2060, ["srcname"] = "Gachnar", ["hp"] = 97572, ["ts"] = 1423948483.09, }, -- [9] { ["absorb"] = 0, ["amount"] = 2580, ["spellid"] = 121148, ["srcname"] = "Gachnar", ["hp"] = 100152, ["ts"] = 1423948485.436, }, -- [10] { ["absorb"] = 0, ["amount"] = 8100, ["spellid"] = 596, ["srcname"] = "Gachnar", ["hp"] = 108252, ["ts"] = 1423948486.799, }, -- [11] { ["absorb"] = 0, ["amount"] = 2351, ["spellid"] = 596, ["srcname"] = "Gachnar", ["hp"] = 110603, ["ts"] = 1423948486.799, }, -- [12] { ["absorb"] = 0, ["amount"] = 3131, ["spellid"] = 117313, ["srcname"] = "Lupinne-Alleria", ["hp"] = 113734, ["ts"] = 1423948486.952, }, -- [13] { ["absorb"] = 0, ["amount"] = 3131, ["spellid"] = 117313, ["srcname"] = "Lupinne-Alleria", ["hp"] = 116865, ["ts"] = 1423948500.041, }, -- [14] { ["ts"] = 1423948474.418, ["amount"] = -17604, ["hp"] = 59346, ["spellid"] = 88163, ["srcname"] = "Skulloc", }, -- [15] ["pos"] = 15, }, ["damagetaken"] = 826035, ["power"] = { { ["spells"] = { [109128] = 160, [12880] = 460, [23881] = 520, }, ["amount"] = 1140, }, -- [1] }, ["id"] = "Player-52-04B8B228", ["maxhp"] = 142332, ["ccbreaks"] = 0, ["damagetakenspells"] = { ["Trampling Stampede"] = { ["crushing"] = 0, ["id"] = 173351, ["damage"] = 13352, ["max"] = 13352, ["name"] = "Trampling Stampede", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 13352, ["absorbed"] = 0, }, ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168148, ["damage"] = 51375, ["max"] = 4910, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 11, ["resisted"] = 0, ["min"] = 3040, ["absorbed"] = 1887, }, ["Burning Arrows"] = { ["crushing"] = 0, ["id"] = 164632, ["damage"] = 44383, ["max"] = 7227, ["name"] = "Burning Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 1026, ["absorbed"] = 6200, }, ["Shoot"] = { ["crushing"] = 0, ["id"] = 167120, ["damage"] = 32212, ["max"] = 8314, ["name"] = "Shoot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 7761, ["absorbed"] = 0, }, ["High Explosive Grenade"] = { ["crushing"] = 0, ["id"] = 178299, ["damage"] = 11010, ["max"] = 11010, ["name"] = "High Explosive Grenade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 11010, ["absorbed"] = 0, }, ["Flaming Slash"] = { ["crushing"] = 0, ["id"] = 163668, ["damage"] = 56653, ["max"] = 38527, ["name"] = "Flaming Slash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 18126, ["absorbed"] = 20400, }, ["Chain Drag"] = { ["crushing"] = 0, ["id"] = 172860, ["damage"] = 5777, ["max"] = 5777, ["name"] = "Chain Drag", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 5777, ["absorbed"] = 0, }, ["Shrapnel Blast"] = { ["crushing"] = 0, ["id"] = 167516, ["damage"] = 17006, ["max"] = 8560, ["name"] = "Shrapnel Blast", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 8446, ["absorbed"] = 0, }, ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 9482, ["max"] = 9482, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 9482, ["absorbed"] = 0, }, ["Jagged Caltrops"] = { ["crushing"] = 0, ["id"] = 173324, ["damage"] = 28065, ["max"] = 5613, ["name"] = "Jagged Caltrops", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 5613, ["absorbed"] = 0, }, ["Gronn Smash"] = { ["crushing"] = 0, ["id"] = 168227, ["damage"] = 3635, ["max"] = 3635, ["name"] = "Gronn Smash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3635, ["absorbed"] = 5092, }, ["Incendiary Slug"] = { ["crushing"] = 0, ["id"] = 172771, ["damage"] = 3854, ["max"] = 3854, ["name"] = "Incendiary Slug", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3854, ["absorbed"] = 0, }, ["Barbed Arrow Barrage"] = { ["crushing"] = 0, ["id"] = 164648, ["damage"] = 13306, ["max"] = 13306, ["name"] = "Barbed Arrow Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 13306, ["absorbed"] = 0, }, ["Iron Shot"] = { ["crushing"] = 0, ["id"] = 167239, ["damage"] = 10507, ["max"] = 5257, ["name"] = "Iron Shot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 5250, ["absorbed"] = 0, }, ["Shattering Blade"] = { ["crushing"] = 0, ["id"] = 168955, ["damage"] = 12232, ["max"] = 8758, ["name"] = "Shattering Blade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 3474, ["absorbed"] = 7236, }, ["Hatchet Toss"] = { ["crushing"] = 0, ["id"] = 173113, ["damage"] = 15396, ["max"] = 10578, ["name"] = "Hatchet Toss", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 963, ["absorbed"] = 0, }, ["Thundering Stomp"] = { ["crushing"] = 0, ["id"] = 173135, ["damage"] = 25866, ["max"] = 8796, ["name"] = "Thundering Stomp", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 8387, ["absorbed"] = 0, }, ["Bladestorm"] = { ["crushing"] = 0, ["id"] = 167233, ["damage"] = 35009, ["max"] = 6818, ["name"] = "Bladestorm", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 3913, ["absorbed"] = 5267, }, ["Rending Cleave"] = { ["crushing"] = 0, ["id"] = 167815, ["damage"] = 8164, ["max"] = 8164, ["name"] = "Rending Cleave", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8164, ["absorbed"] = 0, }, ["Shattering Strike"] = { ["crushing"] = 0, ["id"] = 172982, ["damage"] = 16360, ["max"] = 16360, ["name"] = "Shattering Strike", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 16360, ["absorbed"] = 0, }, ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 86702, ["max"] = 14448, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 7232, ["absorbed"] = 14430, }, ["Rapid Fire"] = { ["crushing"] = 0, ["id"] = 168348, ["damage"] = 5132, ["max"] = 2588, ["name"] = "Rapid Fire", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 2544, ["absorbed"] = 0, }, ["Primal Assault"] = { ["crushing"] = 0, ["id"] = 161256, ["damage"] = 20019, ["max"] = 20019, ["name"] = "Primal Assault", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 20019, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 73997, ["max"] = 9712, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 8, ["resisted"] = 0, ["min"] = 7471, ["absorbed"] = 1970, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 23434, ["max"] = 2890, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 9, ["resisted"] = 0, ["min"] = 322, ["absorbed"] = 2568, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 203107, ["max"] = 39711, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 2, ["blocked"] = 0, ["totalhits"] = 14, ["resisted"] = 0, ["min"] = 3656, ["absorbed"] = 0, }, }, ["dispells"] = 0, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 203920, ["class"] = "WARRIOR", ["shielding"] = 0, }, }, ["name"] = "Lupinne", ["healing"] = 203920, ["shielding"] = 0, ["healingspells"] = { ["Victory Rush"] = { ["shielding"] = 0, ["id"] = 118779, ["healing"] = 113797, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Victory Rush", ["hits"] = 12, ["overhealing"] = 142399, ["max"] = 21349, ["critical"] = 0, ["absorbed"] = 0, }, ["Bloodthirst Heal"] = { ["shielding"] = 0, ["id"] = 117313, ["healing"] = 85476, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Bloodthirst Heal", ["hits"] = 52, ["overhealing"] = 77350, ["max"] = 3132, ["critical"] = 0, ["absorbed"] = 0, }, ["Leech"] = { ["shielding"] = 0, ["id"] = 143924, ["healing"] = 4647, ["multistrikes"] = 0, ["min"] = 220, ["multistrike"] = 0, ["name"] = "Leech", ["hits"] = 5, ["overhealing"] = 0, ["max"] = 2030, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 219749, ["multistrikes"] = 0, }, -- [1] { ["healingabsorbed"] = 0, ["class"] = "SHAMAN", ["damaged"] = { }, ["auras"] = { ["Elemental Blast: Haste"] = { ["name"] = "Elemental Blast: Haste", ["active"] = 2, ["id"] = 173183, ["uptime"] = 529, ["auratype"] = "BUFF", }, ["Fizzlebang's Folly"] = { ["name"] = "Fizzlebang's Folly", ["active"] = 1, ["id"] = 176903, ["uptime"] = 293, ["auratype"] = "BUFF", }, ["Elemental Blast: Multistrike"] = { ["name"] = "Elemental Blast: Multistrike", ["active"] = 2, ["id"] = 173185, ["uptime"] = 250, ["auratype"] = "BUFF", }, ["Ghost Wolf"] = { ["name"] = "Ghost Wolf", ["active"] = 1, ["id"] = 2645, ["uptime"] = 461, ["auratype"] = "BUFF", }, ["Flame Shock"] = { ["name"] = "Flame Shock", ["active"] = 0, ["id"] = 8050, ["uptime"] = 265, ["auratype"] = "DEBUFF", }, ["Earthquake"] = { ["name"] = "Earthquake", ["active"] = 0, ["id"] = 61882, ["uptime"] = 84, ["auratype"] = "BUFF", }, ["Improved Chain Lightning"] = { ["name"] = "Improved Chain Lightning", ["active"] = 5, ["id"] = 157766, ["uptime"] = 582, ["auratype"] = "BUFF", }, ["Heroism"] = { ["name"] = "Heroism", ["active"] = 0, ["id"] = 32182, ["uptime"] = 40, ["auratype"] = "BUFF", }, ["Grace of Air"] = { ["name"] = "Grace of Air", ["active"] = 4, ["id"] = 116956, ["uptime"] = 404, ["auratype"] = "BUFF", }, ["Lava Surge"] = { ["name"] = "Lava Surge", ["active"] = 2, ["id"] = 77762, ["uptime"] = 376, ["auratype"] = "BUFF", }, ["Exhaustion"] = { ["name"] = "Exhaustion", ["active"] = 1, ["id"] = 57723, ["uptime"] = 329, ["auratype"] = "DEBUFF", }, ["Elemental Blast: Critical Strike"] = { ["name"] = "Elemental Blast: Critical Strike", ["active"] = 0, ["id"] = 118522, ["uptime"] = 57, ["auratype"] = "BUFF", }, ["Glyph of Lightning Shield"] = { ["name"] = "Glyph of Lightning Shield", ["active"] = 3, ["id"] = 142912, ["uptime"] = 481, ["auratype"] = "BUFF", }, ["Nightmare Fire"] = { ["name"] = "Nightmare Fire", ["active"] = 5, ["id"] = 162919, ["uptime"] = 617, ["auratype"] = "BUFF", }, ["Elemental Blast: Mastery"] = { ["name"] = "Elemental Blast: Mastery", ["active"] = 1, ["id"] = 173184, ["uptime"] = 607, ["auratype"] = "BUFF", }, ["Ascendance"] = { ["name"] = "Ascendance", ["active"] = 0, ["id"] = 114050, ["uptime"] = 45, ["auratype"] = "BUFF", }, ["Flaming Arrows"] = { ["name"] = "Flaming Arrows", ["active"] = 0, ["id"] = 173149, ["uptime"] = 1, ["auratype"] = "DEBUFF", }, ["Thunderstorm"] = { ["name"] = "Thunderstorm", ["active"] = 0, ["id"] = 51490, ["uptime"] = 5, ["auratype"] = "DEBUFF", }, }, ["role"] = "DAMAGER", ["time"] = 555, ["interrupts"] = 0, ["damage"] = 6092846, ["damagespells"] = { ["Lava Burst"] = { ["min"] = 11032, ["multistrike"] = 73, ["critical"] = 72, ["totalhits"] = 72, ["id"] = 51505, ["max"] = 17144, ["damage"] = 1688991, }, ["Lava Beam"] = { ["min"] = 6438, ["multistrike"] = 5, ["hit"] = 5, ["totalhits"] = 5, ["id"] = 114074, ["max"] = 7085, ["damage"] = 47051, }, ["Greater Fire Elemental: Fire Blast"] = { ["min"] = 421, ["multistrike"] = 12, ["critical"] = 3, ["hit"] = 17, ["totalhits"] = 20, ["id"] = 57984, ["max"] = 1092, ["damage"] = 13181, }, ["Fulmination"] = { ["min"] = 5238, ["multistrike"] = 9, ["critical"] = 5, ["hit"] = 14, ["totalhits"] = 19, ["id"] = 88767, ["max"] = 31657, ["damage"] = 340273, }, ["Searing Totem: Searing Bolt"] = { ["min"] = 800, ["multistrike"] = 28, ["critical"] = 6, ["hit"] = 31, ["totalhits"] = 37, ["id"] = 3606, ["max"] = 2002, ["damage"] = 49307, }, ["Molten Earth"] = { ["min"] = 4249, ["multistrike"] = 86, ["critical"] = 27, ["hit"] = 132, ["totalhits"] = 159, ["id"] = 170379, ["max"] = 14154, ["damage"] = 1078213, }, ["Thunderstorm"] = { ["min"] = 4195, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 51490, ["max"] = 4195, ["damage"] = 4195, }, ["Elemental Blast"] = { ["min"] = 7426, ["multistrike"] = 11, ["critical"] = 6, ["hit"] = 16, ["totalhits"] = 22, ["id"] = 117014, ["max"] = 19234, ["damage"] = 279657, }, ["Greater Fire Elemental: Fire Nova"] = { ["min"] = 951, ["multistrike"] = 2, ["hit"] = 3, ["totalhits"] = 3, ["id"] = 117588, ["max"] = 954, ["damage"] = 4786, }, ["Lightning Bolt"] = { ["min"] = 6350, ["multistrike"] = 33, ["critical"] = 11, ["hit"] = 60, ["totalhits"] = 71, ["id"] = 403, ["max"] = 16448, ["damage"] = 668376, }, ["Lightning Shield"] = { ["min"] = 873, ["multistrike"] = 16, ["critical"] = 5, ["hit"] = 19, ["totalhits"] = 24, ["id"] = 26364, ["max"] = 2261, ["damage"] = 35004, }, ["Earth Shock"] = { ["min"] = 3569, ["multistrike"] = 10, ["critical"] = 3, ["hit"] = 14, ["totalhits"] = 17, ["id"] = 8042, ["max"] = 9246, ["damage"] = 99151, }, ["Greater Fire Elemental: Attack"] = { ["min"] = 918, ["multistrike"] = 47, ["critical"] = 16, ["hit"] = 85, ["totalhits"] = 101, ["id"] = 6603, ["max"] = 2379, ["damage"] = 140666, }, ["Earthquake"] = { ["min"] = 649, ["multistrike"] = 165, ["critical"] = 39, ["hit"] = 211, ["totalhits"] = 250, ["id"] = 77478, ["max"] = 4503, ["damage"] = 297522, }, ["Flame Shock"] = { ["min"] = 417, ["multistrike"] = 102, ["critical"] = 18, ["hit"] = 149, ["totalhits"] = 167, ["id"] = 8050, ["max"] = 3500, ["damage"] = 196740, }, ["Chain Lightning"] = { ["min"] = 4218, ["multistrike"] = 93, ["critical"] = 40, ["hit"] = 115, ["totalhits"] = 155, ["id"] = 421, ["max"] = 10926, ["damage"] = 1148039, }, ["Attack"] = { ["min"] = 565, ["multistrike"] = 2, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 6603, ["max"] = 651, ["damage"] = 1694, }, }, ["deathlog"] = { { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948496.545, }, -- [1] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948499.094, }, -- [2] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948501.69, }, -- [3] { ["absorb"] = 0, ["amount"] = 668, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 129842, ["ts"] = 1423948473.236, }, -- [4] { ["absorb"] = 0, ["amount"] = 333, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130175, ["ts"] = 1423948475.806, }, -- [5] { ["absorb"] = 0, ["amount"] = 334, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130509, ["ts"] = 1423948478.411, }, -- [6] { ["absorb"] = 0, ["amount"] = 334, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130843, ["ts"] = 1423948480.975, }, -- [7] { ["absorb"] = 0, ["amount"] = 137, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948483.576, }, -- [8] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948486.152, }, -- [9] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 596, ["srcname"] = "Gachnar", ["hp"] = 130980, ["ts"] = 1423948486.799, }, -- [10] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 121148, ["srcname"] = "Gachnar", ["hp"] = 130980, ["ts"] = 1423948486.845, }, -- [11] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948488.759, }, -- [12] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948491.335, }, -- [13] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["ts"] = 1423948493.914, }, -- [14] { ["ts"] = 1423948496.495, ["amount"] = 0, ["spellid"] = 137808, ["srcname"] = "Nabooli", ["hp"] = 130980, ["absorb"] = 0, }, -- [15] ["pos"] = 4, }, ["damagetaken"] = 402267, ["power"] = { [0] = { ["spells"] = { [39104] = 1305, }, ["amount"] = 1305, }, }, ["id"] = "Player-3725-06AFFEE7", ["maxhp"] = 120408, ["ccbreaks"] = 0, ["damagetakenspells"] = { ["Gutshot"] = { ["crushing"] = 0, ["id"] = 163334, ["damage"] = 8106, ["max"] = 8106, ["name"] = "Gutshot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8106, ["absorbed"] = 0, }, ["Fling Hammer"] = { ["crushing"] = 0, ["id"] = 172703, ["damage"] = 10309, ["max"] = 10309, ["name"] = "Fling Hammer", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 10309, ["absorbed"] = 0, }, ["Trampling Stampede"] = { ["crushing"] = 0, ["id"] = 173351, ["damage"] = 12419, ["max"] = 12419, ["name"] = "Trampling Stampede", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 12419, ["absorbed"] = 0, }, ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168540, ["damage"] = 14435, ["max"] = 4881, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 4741, ["absorbed"] = 0, }, ["Burning Arrows"] = { ["crushing"] = 0, ["id"] = 164632, ["damage"] = 35464, ["max"] = 7260, ["name"] = "Burning Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 2218, ["absorbed"] = 4466, }, ["Flaming Arrows"] = { ["crushing"] = 0, ["id"] = 173149, ["damage"] = 3493, ["max"] = 3493, ["name"] = "Flaming Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3493, ["absorbed"] = 0, }, ["High Explosive Grenade"] = { ["crushing"] = 0, ["id"] = 178299, ["damage"] = 10609, ["max"] = 10609, ["name"] = "High Explosive Grenade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 10609, ["absorbed"] = 0, }, ["Charging Slash"] = { ["crushing"] = 0, ["id"] = 172889, ["damage"] = 23490, ["max"] = 3921, ["name"] = "Charging Slash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 3889, ["absorbed"] = 0, }, ["Chain Drag"] = { ["crushing"] = 0, ["id"] = 172860, ["damage"] = 5516, ["max"] = 5516, ["name"] = "Chain Drag", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 5516, ["absorbed"] = 0, }, ["Gatecrasher"] = { ["crushing"] = 0, ["id"] = 172963, ["damage"] = 17485, ["max"] = 8743, ["name"] = "Gatecrasher", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 8742, ["absorbed"] = 0, }, ["Jagged Caltrops"] = { ["crushing"] = 0, ["id"] = 173324, ["damage"] = 32027, ["max"] = 4996, ["name"] = "Jagged Caltrops", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 2054, ["absorbed"] = 2942, }, ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 4128, ["max"] = 4128, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 4128, ["absorbed"] = 5535, }, ["Thundering Stomp"] = { ["crushing"] = 0, ["id"] = 173135, ["damage"] = 12599, ["max"] = 8097, ["name"] = "Thundering Stomp", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 4502, ["absorbed"] = 4042, }, ["Berserker Leap"] = { ["crushing"] = 0, ["id"] = 168399, ["damage"] = 9069, ["max"] = 4747, ["name"] = "Berserker Leap", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 4322, ["absorbed"] = 0, }, ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 78792, ["max"] = 13301, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 13098, ["absorbed"] = 0, }, ["Gronn Smash"] = { ["crushing"] = 0, ["id"] = 168227, ["damage"] = 8783, ["max"] = 8783, ["name"] = "Gronn Smash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8783, ["absorbed"] = 0, }, ["Hatchet Toss"] = { ["crushing"] = 0, ["id"] = 173113, ["damage"] = 30061, ["max"] = 10668, ["name"] = "Hatchet Toss", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 970, ["absorbed"] = 0, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 60680, ["max"] = 2911, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 23, ["resisted"] = 0, ["min"] = 2509, ["absorbed"] = 111, }, ["Shredded Tendons"] = { ["crushing"] = 0, ["id"] = 163276, ["damage"] = 24802, ["max"] = 3846, ["name"] = "Shredded Tendons", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 3492, ["absorbed"] = 0, }, }, ["dispells"] = 0, ["healed"] = { ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 32203, ["class"] = "SHAMAN", ["shielding"] = 0, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 30403, ["class"] = "DEATHKNIGHT", ["shielding"] = 0, }, }, ["name"] = "Nabooli", ["healing"] = 62606, ["shielding"] = 0, ["healingspells"] = { ["Flames of Life"] = { ["shielding"] = 0, ["id"] = 137808, ["healing"] = 32203, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Flames of Life", ["hits"] = 167, ["overhealing"] = 40596, ["max"] = 1668, ["critical"] = 0, ["absorbed"] = 0, }, ["Healing Surge"] = { ["shielding"] = 0, ["id"] = 8004, ["healing"] = 30403, ["multistrikes"] = 0, ["min"] = 5033, ["multistrike"] = 2, ["name"] = "Healing Surge", ["hits"] = 3, ["overhealing"] = 2280, ["max"] = 18057, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 42876, ["multistrikes"] = 2, }, -- [2] { ["healingabsorbed"] = 0, ["class"] = "PRIEST", ["damaged"] = { }, ["auras"] = { ["Evangelism"] = { ["name"] = "Evangelism", ["active"] = 2, ["id"] = 81661, ["uptime"] = 307, ["auratype"] = "BUFF", }, ["Focused Will"] = { ["name"] = "Focused Will", ["active"] = 7, ["id"] = 45242, ["uptime"] = 606, ["auratype"] = "BUFF", }, ["Archangel"] = { ["name"] = "Archangel", ["active"] = 2, ["id"] = 81700, ["uptime"] = 226, ["auratype"] = "BUFF", }, ["Fade"] = { ["name"] = "Fade", ["active"] = 0, ["id"] = 586, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Divine Aegis"] = { ["name"] = "Divine Aegis", ["active"] = 21, ["id"] = 47753, ["uptime"] = 593, ["auratype"] = "BUFF", }, ["Exhaustion"] = { ["name"] = "Exhaustion", ["active"] = 1, ["id"] = 57723, ["uptime"] = 329, ["auratype"] = "DEBUFF", }, ["Prayer of Mending"] = { ["name"] = "Prayer of Mending", ["active"] = 9, ["id"] = 41635, ["uptime"] = 619, ["auratype"] = "BUFF", }, ["Holy Fire"] = { ["name"] = "Holy Fire", ["active"] = 0, ["id"] = 14914, ["uptime"] = 45, ["auratype"] = "DEBUFF", }, ["Body and Soul"] = { ["name"] = "Body and Soul", ["active"] = 1, ["id"] = 65081, ["uptime"] = 226, ["auratype"] = "BUFF", }, ["Borrowed Time"] = { ["name"] = "Borrowed Time", ["active"] = 1, ["id"] = 59889, ["uptime"] = 372, ["auratype"] = "BUFF", }, ["Leap of Faith"] = { ["name"] = "Leap of Faith", ["active"] = 0, ["id"] = 73325, ["uptime"] = 2, ["auratype"] = "BUFF", }, ["Power Word: Shield"] = { ["name"] = "Power Word: Shield", ["active"] = 1, ["id"] = 17, ["uptime"] = 423, ["auratype"] = "BUFF", }, ["Enhanced Leap of Faith"] = { ["name"] = "Enhanced Leap of Faith", ["active"] = 0, ["id"] = 157146, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Weakened Soul"] = { ["name"] = "Weakened Soul", ["active"] = 1, ["id"] = 6788, ["uptime"] = 477, ["auratype"] = "DEBUFF", }, ["Mindbender: Shadowcrawl"] = { ["name"] = "Mindbender: Shadowcrawl", ["active"] = 0, ["id"] = 63619, ["uptime"] = 10, ["auratype"] = "BUFF", }, ["Fear Ward"] = { ["name"] = "Fear Ward", ["active"] = 0, ["id"] = 6346, ["uptime"] = 96, ["auratype"] = "BUFF", }, ["Intellect"] = { ["name"] = "Intellect", ["active"] = 5, ["id"] = 60234, ["uptime"] = 448, ["auratype"] = "BUFF", }, }, ["role"] = "HEALER", ["time"] = 576, ["interrupts"] = 0, ["damage"] = 99573, ["damagespells"] = { ["Mindbender: Attack"] = { ["min"] = 1793, ["multistrike"] = 1, ["hit"] = 8, ["totalhits"] = 8, ["id"] = 6603, ["max"] = 2062, ["damage"] = 16571, }, ["Holy Fire"] = { ["min"] = 74, ["multistrike"] = 5, ["critical"] = 12, ["hit"] = 41, ["totalhits"] = 53, ["id"] = 14914, ["max"] = 9162, ["damage"] = 47073, }, ["Smite"] = { ["min"] = 2209, ["multistrike"] = 1, ["critical"] = 2, ["hit"] = 10, ["totalhits"] = 12, ["id"] = 585, ["max"] = 6154, ["damage"] = 35929, }, }, ["deathlog"] = { { ["ts"] = 1423948379.595, ["amount"] = -9608, ["hp"] = 90760, ["spellid"] = 178157, ["srcname"] = "Rylak Skyterror", }, -- [1] { ["ts"] = 1423948380.202, ["amount"] = 3248, ["spellid"] = 121148, ["srcname"] = "Gachnar", ["hp"] = 94008, ["absorb"] = 0, }, -- [2] { ["spellid"] = 178156, ["ts"] = 1423948382.819, ["hp"] = 85942, ["amount"] = -8066, }, -- [3] { ["ts"] = 1423948430.986, ["amount"] = -2634, ["hp"] = 110586, ["spellid"] = 168348, ["srcname"] = "Blackhand's Might Turret", }, -- [4] { ["absorb"] = 0, ["amount"] = 2634, ["spellid"] = 596, ["srcname"] = "Gachnar", ["hp"] = 113220, ["ts"] = 1423948447.98, }, -- [5] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 121148, ["srcname"] = "Gachnar", ["hp"] = 113220, ["ts"] = 1423948451.128, }, -- [6] { ["absorb"] = -1620, ["amount"] = -3125, ["hp"] = 110095, ["spellid"] = 168390, ["ts"] = 1423948464.223, }, -- [7] { ["absorb"] = 0, ["amount"] = 2580, ["spellid"] = 121148, ["srcname"] = "Gachnar", ["hp"] = 112675, ["ts"] = 1423948486.385, }, -- [8] { ["ts"] = 1423948486.799, ["amount"] = 545, ["srcname"] = "Gachnar", ["spellid"] = 596, ["hp"] = 113220, ["absorb"] = 0, }, -- [9] { ["ts"] = 1423948309.417, ["amount"] = 0, ["srcname"] = "Gachnar", ["spellid"] = 121148, ["hp"] = 113220, ["absorb"] = 0, }, -- [10] { ["ts"] = 1423948367.812, ["amount"] = 0, ["srcname"] = "Gachnar", ["spellid"] = 33110, ["hp"] = 113220, ["absorb"] = 0, }, -- [11] { ["ts"] = 1423948367.812, ["amount"] = 0, ["spellid"] = 33110, ["srcname"] = "Gachnar", ["hp"] = 113220, ["absorb"] = 0, }, -- [12] { ["ts"] = 1423948367.812, ["amount"] = -9854, ["hp"] = 103366, ["spellid"] = 178157, ["srcname"] = "Rylak Skyterror", }, -- [13] { ["ts"] = 1423948369.844, ["amount"] = -8252, ["hp"] = 95114, ["spellid"] = 178157, ["srcname"] = "Rylak Skyterror", }, -- [14] { ["absorb"] = 0, ["amount"] = 5254, ["spellid"] = 33110, ["srcname"] = "Gachnar", ["hp"] = 100368, ["ts"] = 1423948379.595, }, -- [15] ["pos"] = 10, }, ["damagetaken"] = 269156, ["power"] = { [0] = { ["spells"] = { [123051] = 6615, }, ["amount"] = 6615, }, }, ["id"] = "Player-3725-06B02413", ["maxhp"] = 113220, ["ccbreaks"] = 0, ["damagetakenspells"] = { ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 27714, ["max"] = 9854, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 8252, ["absorbed"] = 0, }, ["Incendiary Slug"] = { ["crushing"] = 0, ["id"] = 172771, ["damage"] = 3891, ["max"] = 3891, ["name"] = "Incendiary Slug", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3891, ["absorbed"] = 0, }, ["Rapid Fire"] = { ["crushing"] = 0, ["id"] = 168348, ["damage"] = 2634, ["max"] = 2634, ["name"] = "Rapid Fire", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 2634, ["absorbed"] = 0, }, ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168390, ["damage"] = 3125, ["max"] = 3125, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 3125, ["absorbed"] = 1620, }, ["Burning Arrows"] = { ["crushing"] = 0, ["id"] = 164632, ["damage"] = 18599, ["max"] = 7294, ["name"] = "Burning Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 5105, ["absorbed"] = 0, }, ["Thundering Stomp"] = { ["crushing"] = 0, ["id"] = 173135, ["damage"] = 25610, ["max"] = 12808, ["name"] = "Thundering Stomp", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 12802, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 8066, ["max"] = 8066, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8066, ["absorbed"] = 0, }, ["Gutshot"] = { ["crushing"] = 0, ["id"] = 163334, ["damage"] = 22564, ["max"] = 8134, ["name"] = "Gutshot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 6939, ["absorbed"] = 0, }, ["Charging Slash"] = { ["crushing"] = 0, ["id"] = 172889, ["damage"] = 17286, ["max"] = 4376, ["name"] = "Charging Slash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 3063, ["absorbed"] = 0, }, ["Flaming Slash"] = { ["crushing"] = 0, ["id"] = 163668, ["damage"] = 34600, ["max"] = 34600, ["name"] = "Flaming Slash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 34600, ["absorbed"] = 4300, }, ["Chain Drag"] = { ["crushing"] = 0, ["id"] = 172860, ["damage"] = 8796, ["max"] = 8796, ["name"] = "Chain Drag", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 8796, ["absorbed"] = 0, }, ["Shrapnel Blast"] = { ["crushing"] = 0, ["id"] = 167516, ["damage"] = 7355, ["max"] = 7355, ["name"] = "Shrapnel Blast", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 7355, ["absorbed"] = 0, }, ["Hatchet Toss"] = { ["crushing"] = 0, ["id"] = 173113, ["damage"] = 41484, ["max"] = 14126, ["name"] = "Hatchet Toss", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 10, ["resisted"] = 0, ["min"] = 1361, ["absorbed"] = 7059, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 47432, ["max"] = 2962, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 22, ["resisted"] = 0, ["min"] = 1376, ["absorbed"] = 1808, }, }, ["dispells"] = 7, ["healed"] = { ["Player-52-04B8B228"] = { ["role"] = "DAMAGER", ["name"] = "Lupinne-Alleria", ["amount"] = 608488, ["class"] = "WARRIOR", ["shielding"] = 177292, }, ["Player-105-07C35AF4"] = { ["role"] = "DAMAGER", ["name"] = "Janettie-Thunderhorn", ["amount"] = 402909, ["class"] = "MAGE", ["shielding"] = 69593, }, ["Creature-0-3748-1195-6623-15438-00005FB8D3"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Greater Fire Elemental", ["amount"] = 2288, }, ["Creature-0-3748-1195-6623-15438-00005FB7A7"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Greater Fire Elemental", ["amount"] = 0, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 2128454, ["class"] = "DEATHKNIGHT", ["shielding"] = 1338632, }, ["Player-3725-06AFFEE7"] = { ["role"] = "DAMAGER", ["name"] = "Nabooli", ["amount"] = 305297, ["class"] = "SHAMAN", ["shielding"] = 56917, }, ["Creature-0-3748-1195-6623-15438-00005FBA8C"] = { ["shielding"] = 386, ["role"] = "NONE", ["name"] = "Greater Fire Elemental", ["amount"] = 1052, }, ["Player-3725-06B02413"] = { ["role"] = "HEALER", ["name"] = "Gachnar", ["amount"] = 245341, ["class"] = "PRIEST", ["shielding"] = 79214, }, }, ["name"] = "Gachnar", ["healing"] = 3693829, ["shielding"] = 1722034, ["healingspells"] = { ["Power Word: Shield"] = { ["shielding"] = 1128208, ["id"] = 17, ["healing"] = 1128208, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Power Word: Shield", ["hits"] = 224, ["overhealing"] = 228035.30078125, ["max"] = 21129, ["critical"] = 0, ["absorbed"] = 0, }, ["Heal"] = { ["shielding"] = 0, ["id"] = 2060, ["healing"] = 238578, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 4, ["name"] = "Heal", ["hits"] = 19, ["overhealing"] = 68934, ["max"] = 23890, ["critical"] = 3, ["absorbed"] = 0, }, ["Penance"] = { ["shielding"] = 0, ["id"] = 47750, ["healing"] = 898049, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 10, ["name"] = "Penance", ["hits"] = 151, ["overhealing"] = 625921, ["max"] = 14886, ["critical"] = 26, ["absorbed"] = 0, }, ["Divine Aegis"] = { ["shielding"] = 593826, ["id"] = 47753, ["healing"] = 593826, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Divine Aegis", ["hits"] = 194, ["overhealing"] = 289200.844451904, ["max"] = 21255, ["critical"] = 0, ["absorbed"] = 0, }, ["Prayer of Healing"] = { ["shielding"] = 0, ["id"] = 596, ["healing"] = 429065, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 14, ["name"] = "Prayer of Healing", ["hits"] = 83, ["overhealing"] = 206504, ["max"] = 11445, ["critical"] = 24, ["absorbed"] = 0, }, ["Cascade"] = { ["shielding"] = 0, ["id"] = 121148, ["healing"] = 160744, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 21, ["name"] = "Cascade", ["hits"] = 112, ["overhealing"] = 120162, ["max"] = 4193, ["critical"] = 17, ["absorbed"] = 0, }, ["Atonement"] = { ["shielding"] = 0, ["id"] = 94472, ["healing"] = 56129, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Atonement", ["hits"] = 71, ["overhealing"] = 7865, ["max"] = 4451, ["critical"] = 14, ["absorbed"] = 0, }, ["Prayer of Mending"] = { ["shielding"] = 0, ["id"] = 33110, ["healing"] = 189230, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 5, ["name"] = "Prayer of Mending", ["hits"] = 57, ["overhealing"] = 52997, ["max"] = 6042, ["critical"] = 11, ["absorbed"] = 0, }, }, ["overhealing"] = 1599619.14523315, ["multistrikes"] = 54, }, -- [3] { ["healingabsorbed"] = 0, ["class"] = "DEATHKNIGHT", ["damaged"] = { }, ["auras"] = { ["Rune Tap"] = { ["name"] = "Rune Tap", ["active"] = 0, ["id"] = 171049, ["uptime"] = 28, ["auratype"] = "BUFF", }, ["Rune Weapon: Blood Plague"] = { ["name"] = "Rune Weapon: Blood Plague", ["active"] = 4, ["id"] = 55078, ["uptime"] = 514, ["auratype"] = "DEBUFF", }, ["Blood Shield"] = { ["name"] = "Blood Shield", ["active"] = 4, ["id"] = 77535, ["uptime"] = 612, ["auratype"] = "BUFF", }, ["Scent of Blood"] = { ["name"] = "Scent of Blood", ["active"] = 3, ["id"] = 50421, ["uptime"] = 596, ["auratype"] = "BUFF", }, ["Soul Reaper"] = { ["name"] = "Soul Reaper", ["active"] = 6, ["id"] = 114866, ["uptime"] = 607, ["auratype"] = "DEBUFF", }, ["Blood Plague"] = { ["name"] = "Blood Plague", ["active"] = 0, ["id"] = 55078, ["uptime"] = 328, ["auratype"] = "DEBUFF", }, ["Will of the Necropolis"] = { ["name"] = "Will of the Necropolis", ["active"] = 1, ["id"] = 157335, ["uptime"] = 158, ["auratype"] = "DEBUFF", }, ["Unholy Strength"] = { ["name"] = "Unholy Strength", ["active"] = 4, ["id"] = 53365, ["uptime"] = 554, ["auratype"] = "BUFF", }, ["Icebound Fortitude"] = { ["name"] = "Icebound Fortitude", ["active"] = 0, ["id"] = 48792, ["uptime"] = 8, ["auratype"] = "BUFF", }, ["Rune Weapon: Frost Fever"] = { ["name"] = "Rune Weapon: Frost Fever", ["active"] = 4, ["id"] = 55095, ["uptime"] = 514, ["auratype"] = "DEBUFF", }, ["Dark Command"] = { ["name"] = "Dark Command", ["active"] = 0, ["id"] = 56222, ["uptime"] = 30, ["auratype"] = "DEBUFF", }, ["Blood Charge"] = { ["name"] = "Blood Charge", ["active"] = 3, ["id"] = 114851, ["uptime"] = 612, ["auratype"] = "BUFF", }, ["Crimson Scourge"] = { ["name"] = "Crimson Scourge", ["active"] = 2, ["id"] = 81141, ["uptime"] = 448, ["auratype"] = "BUFF", }, ["Rune Weapon: Soul Reaper"] = { ["name"] = "Rune Weapon: Soul Reaper", ["active"] = 0, ["id"] = 114866, ["uptime"] = 20, ["auratype"] = "DEBUFF", }, ["Exhaustion"] = { ["name"] = "Exhaustion", ["active"] = 1, ["id"] = 57723, ["uptime"] = 329, ["auratype"] = "DEBUFF", }, ["Dancing Rune Weapon"] = { ["name"] = "Dancing Rune Weapon", ["active"] = 0, ["id"] = 81256, ["uptime"] = 16, ["auratype"] = "BUFF", }, ["Death and Decay"] = { ["name"] = "Death and Decay", ["active"] = 0, ["id"] = 43265, ["uptime"] = 325, ["auratype"] = "DEBUFF", }, ["Flaming Arrows"] = { ["name"] = "Flaming Arrows", ["active"] = 1, ["id"] = 173149, ["uptime"] = 346, ["auratype"] = "DEBUFF", }, ["Bone Shield"] = { ["name"] = "Bone Shield", ["active"] = 0, ["id"] = 49222, ["uptime"] = 146, ["auratype"] = "BUFF", }, ["Conversion"] = { ["name"] = "Conversion", ["active"] = 0, ["id"] = 119975, ["uptime"] = 7, ["auratype"] = "BUFF", }, ["Frost Fever"] = { ["name"] = "Frost Fever", ["active"] = 0, ["id"] = 55095, ["uptime"] = 296, ["auratype"] = "DEBUFF", }, ["Power of the Grave"] = { ["name"] = "Power of the Grave", ["active"] = 0, ["id"] = 155522, ["uptime"] = 0, ["auratype"] = "BUFF", }, ["Unwavering Might"] = { ["name"] = "Unwavering Might", ["active"] = 2, ["id"] = 126582, ["uptime"] = 420, ["auratype"] = "BUFF", }, ["Vampiric Blood"] = { ["name"] = "Vampiric Blood", ["active"] = 0, ["id"] = 55233, ["uptime"] = 68, ["auratype"] = "BUFF", }, ["Chilblains"] = { ["name"] = "Chilblains", ["active"] = 0, ["id"] = 50435, ["uptime"] = 232, ["auratype"] = "DEBUFF", }, ["Death Grip"] = { ["name"] = "Death Grip", ["active"] = 0, ["id"] = 49560, ["uptime"] = 1, ["auratype"] = "DEBUFF", }, }, ["role"] = "TANK", ["time"] = 579, ["interrupts"] = 0, ["damage"] = 2702853, ["damagespells"] = { ["Rune Weapon: Blood Plague"] = { ["min"] = 239, ["multistrike"] = 3, ["hit"] = 8, ["totalhits"] = 8, ["id"] = 55078, ["max"] = 248, ["damage"] = 2162, }, ["Death Coil"] = { ["min"] = 1837, ["multistrike"] = 31, ["critical"] = 18, ["hit"] = 62, ["totalhits"] = 80, ["id"] = 47632, ["max"] = 5109, ["damage"] = 240279, }, ["Rune Weapon: Death Strike"] = { ["min"] = 1116, ["multistrike"] = 1, ["hit"] = 6, ["totalhits"] = 6, ["id"] = 49998, ["max"] = 1368, ["damage"] = 8246, }, ["Gorefiend's Grasp"] = { ["totalhits"] = 1, ["id"] = 108199, ["IMMUNE"] = 1, ["max"] = 0, ["damage"] = 0, }, ["Death Strike"] = { ["min"] = 3463, ["multistrike"] = 23, ["critical"] = 13, ["hit"] = 59, ["totalhits"] = 72, ["id"] = 49998, ["max"] = 13252, ["damage"] = 485753, }, ["Rune Weapon: Attack"] = { ["min"] = 408, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 10, ["totalhits"] = 11, ["id"] = 6603, ["max"] = 1000, ["damage"] = 6103, }, ["Rune Weapon: Soul Reaper"] = { ["min"] = 274, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 3, ["totalhits"] = 4, ["id"] = 114866, ["max"] = 531, ["damage"] = 1635, }, ["Icy Touch"] = { ["min"] = 1663, ["critical"] = 1, ["totalhits"] = 1, ["id"] = 45477, ["max"] = 1663, ["damage"] = 1663, }, ["Blood Boil"] = { ["min"] = 1640, ["multistrike"] = 59, ["critical"] = 21, ["hit"] = 160, ["totalhits"] = 181, ["id"] = 50842, ["max"] = 4560, ["damage"] = 438267, }, ["Rune Weapon: Death Coil"] = { ["min"] = 629, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 47632, ["max"] = 653, ["damage"] = 1282, }, ["Blood Plague"] = { ["min"] = 699, ["multistrike"] = 96, ["critical"] = 50, ["hit"] = 251, ["totalhits"] = 301, ["id"] = 55078, ["max"] = 1945, ["damage"] = 322613, }, ["Frost Fever"] = { ["min"] = 699, ["multistrike"] = 104, ["critical"] = 51, ["hit"] = 268, ["totalhits"] = 319, ["id"] = 55095, ["max"] = 1945, ["damage"] = 342046, }, ["Soul Reaper"] = { ["min"] = 941, ["multistrike"] = 20, ["critical"] = 10, ["hit"] = 49, ["totalhits"] = 59, ["id"] = 114866, ["max"] = 17986, ["damage"] = 235401, }, ["Death and Decay"] = { ["min"] = 273, ["multistrike"] = 88, ["critical"] = 35, ["hit"] = 225, ["totalhits"] = 260, ["id"] = 52212, ["max"] = 760, ["damage"] = 109080, }, ["Rune Weapon: Frost Fever"] = { ["min"] = 239, ["critical"] = 1, ["hit"] = 7, ["totalhits"] = 8, ["id"] = 55095, ["max"] = 479, ["damage"] = 2180, }, ["Rune Weapon: Blood Boil"] = { ["min"] = 476, ["multistrike"] = 2, ["critical"] = 1, ["hit"] = 4, ["totalhits"] = 5, ["id"] = 50842, ["max"] = 953, ["damage"] = 3388, }, ["Attack"] = { ["min"] = 1229, ["multistrike"] = 75, ["critical"] = 30, ["hit"] = 163, ["totalhits"] = 193, ["id"] = 6603, ["max"] = 5079, ["damage"] = 502755, }, }, ["deathlog"] = { { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 2060, ["srcname"] = "Gachnar", ["hp"] = 112574, ["ts"] = 1423948501.356, }, -- [1] { ["absorb"] = -11252, ["amount"] = -10594, ["spellid"] = 88163, ["srcname"] = "Skulloc", ["hp"] = 90651, ["ts"] = 1423948488.346, }, -- [2] { ["absorb"] = 0, ["amount"] = 9028, ["srcname"] = "Gachnar", ["spellid"] = 47750, ["hp"] = 89085, ["ts"] = 1423948488.53, }, -- [3] { ["absorb"] = -12632, ["spellid"] = 88163, ["srcname"] = "Skulloc", ["hp"] = 89085, ["ts"] = 1423948490.355, }, -- [4] { ["absorb"] = 0, ["amount"] = 8806, ["spellid"] = 45470, ["srcname"] = "Stewgottz-Hakkar", ["hp"] = 97891, ["ts"] = 1423948490.56, }, -- [5] { ["absorb"] = -20046, ["amount"] = -3541, ["spellid"] = 88163, ["srcname"] = "Skulloc", ["hp"] = 112574, ["ts"] = 1423948492.354, }, -- [6] { ["ts"] = 1423948494.349, ["amount"] = -24915, ["hp"] = 109033, ["spellid"] = 88163, ["srcname"] = "Skulloc", }, -- [7] { ["ts"] = 1423948496.361, ["amount"] = -22539, ["hp"] = 84118, ["spellid"] = 88163, ["srcname"] = "Skulloc", }, -- [8] { ["absorb"] = 0, ["amount"] = 10853, ["spellid"] = 47750, ["srcname"] = "Gachnar", ["hp"] = 72432, ["ts"] = 1423948496.882, }, -- [9] { ["ts"] = 1423948497.663, ["amount"] = 25256, ["spellid"] = 45470, ["srcname"] = "Stewgottz-Hakkar", ["hp"] = 97688, ["absorb"] = 0, }, -- [10] { ["absorb"] = 0, ["amount"] = 14886, ["spellid"] = 47750, ["srcname"] = "Gachnar", ["hp"] = 112574, ["ts"] = 1423948497.782, }, -- [11] { ["absorb"] = -19154, ["spellid"] = 88163, ["srcname"] = "Skulloc", ["hp"] = 112574, ["ts"] = 1423948498.365, }, -- [12] { ["absorb"] = 0, ["amount"] = 0, ["srcname"] = "Gachnar", ["spellid"] = 47750, ["hp"] = 112574, ["ts"] = 1423948498.701, }, -- [13] { ["absorb"] = 0, ["amount"] = 0, ["spellid"] = 53365, ["srcname"] = "Stewgottz-Hakkar", ["hp"] = 112574, ["ts"] = 1423948498.897, }, -- [14] { ["absorb"] = -21255, ["spellid"] = 88163, ["srcname"] = "Skulloc", ["hp"] = 112574, ["ts"] = 1423948500.366, }, -- [15] ["pos"] = 2, }, ["damagetaken"] = 1548810, ["power"] = { [6] = { ["spells"] = { [50842] = 850, [163948] = 1125, }, ["amount"] = 1975, }, }, ["id"] = "Player-1136-073491F8", ["maxhp"] = 95983, ["ccbreaks"] = 0, ["damagetakenspells"] = { ["Fling Hammer"] = { ["crushing"] = 0, ["id"] = 172703, ["damage"] = 23214, ["max"] = 11801, ["name"] = "Fling Hammer", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 11413, ["absorbed"] = 0, }, ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168390, ["damage"] = 14179, ["max"] = 4496, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 808, ["absorbed"] = 3669, }, ["Burning Arrows"] = { ["crushing"] = 0, ["id"] = 164632, ["damage"] = 13208, ["max"] = 6604, ["name"] = "Burning Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 6604, ["absorbed"] = 0, }, ["Flaming Arrows"] = { ["crushing"] = 0, ["id"] = 173149, ["damage"] = 5634, ["max"] = 2817, ["name"] = "Flaming Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 2817, ["absorbed"] = 0, }, ["Shoot"] = { ["crushing"] = 0, ["id"] = 167120, ["damage"] = 212, ["max"] = 212, ["name"] = "Shoot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 212, ["absorbed"] = 6067, }, ["Blood Bolt"] = { ["crushing"] = 0, ["id"] = 165122, ["damage"] = 77714, ["max"] = 18478, ["name"] = "Blood Bolt", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 11024, ["absorbed"] = 0, }, ["Flaming Slash"] = { ["crushing"] = 0, ["id"] = 163668, ["damage"] = 9826, ["max"] = 9826, ["name"] = "Flaming Slash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 9826, ["absorbed"] = 25397, }, ["Flurry"] = { ["crushing"] = 0, ["id"] = 178411, ["damage"] = 34593, ["max"] = 14230, ["name"] = "Flurry", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 6854, ["absorbed"] = 5801, }, ["Shrapnel Blast"] = { ["crushing"] = 0, ["id"] = 167516, ["damage"] = 12372, ["max"] = 6203, ["name"] = "Shrapnel Blast", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 6169, ["absorbed"] = 0, }, ["Jagged Caltrops"] = { ["crushing"] = 0, ["id"] = 173324, ["damage"] = 6342, ["max"] = 5620, ["name"] = "Jagged Caltrops", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 722, ["absorbed"] = 3706, }, ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 15619, ["max"] = 8800, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 6819, ["absorbed"] = 0, }, ["Iron Shot"] = { ["crushing"] = 0, ["id"] = 167239, ["damage"] = 5553, ["max"] = 4286, ["name"] = "Iron Shot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 556, ["absorbed"] = 7099, }, ["Rending Cleave"] = { ["crushing"] = 0, ["id"] = 167815, ["damage"] = 12036, ["max"] = 8285, ["name"] = "Rending Cleave", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 1398, ["absorbed"] = 13053, }, ["Thundering Stomp"] = { ["crushing"] = 0, ["id"] = 173135, ["damage"] = 10379, ["max"] = 8819, ["name"] = "Thundering Stomp", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 1560, ["absorbed"] = 6497, }, ["Hatchet Toss"] = { ["crushing"] = 0, ["id"] = 173113, ["damage"] = 14172, ["max"] = 11006, ["name"] = "Hatchet Toss", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 529, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 44301, ["max"] = 8833, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 580, ["absorbed"] = 8267, }, ["Lava Blast"] = { ["crushing"] = 0, ["id"] = 173517, ["damage"] = 39368, ["max"] = 8940, ["name"] = "Lava Blast", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 4806, ["absorbed"] = 4928, }, ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 66048, ["max"] = 13209, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 5288, ["absorbed"] = 7920, }, ["Throw"] = { ["crushing"] = 0, ["id"] = 167095, ["damage"] = 86583, ["max"] = 9179, ["name"] = "Throw", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 14, ["resisted"] = 0, ["min"] = 450, ["absorbed"] = 24222, }, ["Bladestorm"] = { ["crushing"] = 0, ["id"] = 167233, ["damage"] = 36550, ["max"] = 6595, ["name"] = "Bladestorm", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 2991, ["absorbed"] = 3514, }, ["Primal Assault"] = { ["crushing"] = 0, ["id"] = 161256, ["damage"] = 31452, ["max"] = 19930, ["name"] = "Primal Assault", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 11522, ["absorbed"] = 8027, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 53294, ["max"] = 2642, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 21, ["resisted"] = 0, ["min"] = 2095, ["absorbed"] = 0, }, ["Attack"] = { ["crushing"] = 0, ["id"] = 6603, ["damage"] = 936161, ["max"] = 24915, ["name"] = "Attack", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 132, ["resisted"] = 0, ["min"] = 183, ["absorbed"] = 295508, }, }, ["dispells"] = 0, ["healed"] = { ["Creature-0-3748-1195-6623-27893-00005FB7A6"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Rune Weapon", ["amount"] = 0, }, ["Creature-0-3748-1195-6623-27893-00005FBA33"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Rune Weapon", ["amount"] = 3214, }, ["Player-1136-073491F8"] = { ["role"] = "TANK", ["name"] = "Stewgottz-Hakkar", ["amount"] = 1248672, ["class"] = "DEATHKNIGHT", ["shielding"] = 577230, }, ["Creature-0-3748-1195-6623-27893-00005FBA90"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Rune Weapon", ["amount"] = 0, }, ["Creature-0-3748-1195-6623-27893-00005FB8D2"] = { ["shielding"] = 0, ["role"] = "NONE", ["name"] = "Rune Weapon", ["amount"] = 0, }, }, ["name"] = "Stewgottz", ["healing"] = 1251886, ["shielding"] = 577230, ["healingspells"] = { ["Rune Weapon: Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 3214, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Rune Weapon: Death Strike", ["hits"] = 6, ["overhealing"] = 15341, ["max"] = 3214, ["critical"] = 0, ["absorbed"] = 0, }, ["Unholy Strength"] = { ["shielding"] = 0, ["id"] = 53365, ["healing"] = 58674, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Unholy Strength", ["hits"] = 46, ["overhealing"] = 76726, ["max"] = 3312, ["critical"] = 0, ["absorbed"] = 0, }, ["Blood Shield"] = { ["shielding"] = 577230, ["id"] = 77535, ["healing"] = 577230, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Blood Shield", ["hits"] = 166, ["overhealing"] = 70210.1791992188, ["max"] = 13202, ["critical"] = 0, ["absorbed"] = 0, }, ["Death Strike"] = { ["shielding"] = 0, ["id"] = 45470, ["healing"] = 601249, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Death Strike", ["hits"] = 72, ["overhealing"] = 681799, ["max"] = 39715, ["critical"] = 0, ["absorbed"] = 0, }, ["Conversion"] = { ["shielding"] = 0, ["id"] = 119980, ["healing"] = 11519, ["multistrikes"] = 0, ["min"] = 0, ["multistrike"] = 0, ["name"] = "Conversion", ["hits"] = 7, ["overhealing"] = 1919, ["max"] = 1920, ["critical"] = 0, ["absorbed"] = 0, }, }, ["overhealing"] = 845995.179199219, ["multistrikes"] = 0, }, -- [4] { ["healingabsorbed"] = 0, ["class"] = "MAGE", ["damaged"] = { }, ["auras"] = { ["Exhaustion"] = { ["name"] = "Exhaustion", ["active"] = 1, ["id"] = 57723, ["uptime"] = 329, ["auratype"] = "DEBUFF", }, ["Arcane Power"] = { ["name"] = "Arcane Power", ["active"] = 0, ["id"] = 12042, ["uptime"] = 30, ["auratype"] = "BUFF", }, ["Ice Floes"] = { ["name"] = "Ice Floes", ["active"] = 2, ["id"] = 108839, ["uptime"] = 471, ["auratype"] = "BUFF", }, ["Rune of Power"] = { ["name"] = "Rune of Power", ["active"] = 2, ["id"] = 116014, ["uptime"] = 154, ["auratype"] = "BUFF", }, ["Flaming Arrows"] = { ["name"] = "Flaming Arrows", ["active"] = 0, ["id"] = 173149, ["uptime"] = 6, ["auratype"] = "DEBUFF", }, ["Exquisite Proficiency"] = { ["name"] = "Exquisite Proficiency", ["active"] = 3, ["id"] = 133630, ["uptime"] = 492, ["auratype"] = "BUFF", }, ["Blink"] = { ["name"] = "Blink", ["active"] = 0, ["id"] = 119415, ["uptime"] = 2, ["auratype"] = "BUFF", }, ["Expanded Mind"] = { ["name"] = "Expanded Mind", ["active"] = 1, ["id"] = 146046, ["uptime"] = 182, ["auratype"] = "BUFF", }, ["Improved Blink"] = { ["name"] = "Improved Blink", ["active"] = 0, ["id"] = 157610, ["uptime"] = 4, ["auratype"] = "BUFF", }, ["Arcane Charge"] = { ["name"] = "Arcane Charge", ["active"] = 5, ["id"] = 36032, ["uptime"] = 564, ["auratype"] = "DEBUFF", }, ["Arcane Missiles!"] = { ["name"] = "Arcane Missiles!", ["active"] = 6, ["id"] = 79683, ["uptime"] = 587, ["auratype"] = "BUFF", }, }, ["role"] = "DAMAGER", ["time"] = 534, ["interrupts"] = 0, ["damage"] = 3056164, ["damagespells"] = { ["Arcane Blast"] = { ["min"] = 4247, ["multistrike"] = 20, ["critical"] = 14, ["hit"] = 89, ["totalhits"] = 103, ["id"] = 30451, ["max"] = 32074, ["damage"] = 1218049, }, ["Shoot"] = { ["min"] = 197, ["hit"] = 2, ["totalhits"] = 2, ["id"] = 5019, ["max"] = 199, ["damage"] = 396, }, ["Arcane Missiles"] = { ["min"] = 889, ["multistrike"] = 12, ["critical"] = 26, ["hit"] = 132, ["totalhits"] = 158, ["id"] = 7268, ["max"] = 6806, ["damage"] = 443356, }, ["Arcane Barrage"] = { ["min"] = 2013, ["multistrike"] = 2, ["critical"] = 9, ["hit"] = 42, ["totalhits"] = 51, ["id"] = 44425, ["max"] = 19746, ["damage"] = 342553, }, ["Arcane Explosion"] = { ["min"] = 1853, ["multistrike"] = 20, ["critical"] = 18, ["hit"] = 97, ["totalhits"] = 115, ["id"] = 1449, ["max"] = 5293, ["damage"] = 287432, }, ["Supernova"] = { ["min"] = 6392, ["multistrike"] = 7, ["critical"] = 4, ["hit"] = 52, ["totalhits"] = 56, ["id"] = 157980, ["max"] = 30032, ["damage"] = 764378, }, }, ["deathlog"] = { { ["ts"] = 1423948430.266, ["amount"] = -11247, ["hp"] = 99693, ["srcname"] = "Koramar", ["spellid"] = 168955, }, -- [1] { ["ts"] = 1423948439.023, ["amount"] = -4822, ["hp"] = 94871, ["spellid"] = 168399, ["srcname"] = "Koramar", }, -- [2] { ["ts"] = 1423948440.644, ["amount"] = -4842, ["hp"] = 90029, ["spellid"] = 168399, ["srcname"] = "Koramar", }, -- [3] { ["ts"] = 1423948443.343, ["amount"] = -11150, ["hp"] = 78879, ["spellid"] = 168955, ["srcname"] = "Koramar", }, -- [4] { ["ts"] = 1423948443.448, ["amount"] = -2625, ["hp"] = 76254, ["spellid"] = 168348, ["srcname"] = "Blackhand's Might Turret", }, -- [5] { ["ts"] = 1423948444.448, ["amount"] = -2647, ["hp"] = 73607, ["spellid"] = 168348, ["srcname"] = "Blackhand's Might Turret", }, -- [6] { ["ts"] = 1423948445.446, ["amount"] = -2583, ["hp"] = 71024, ["srcname"] = "Blackhand's Might Turret", ["spellid"] = 168348, }, -- [7] { ["ts"] = 1423948451.471, ["amount"] = 4183, ["srcname"] = "Gachnar", ["spellid"] = 121148, ["hp"] = 75207, ["absorb"] = 0, }, -- [8] { ["ts"] = 1423948486.529, ["amount"] = 2792, ["srcname"] = "Gachnar", ["spellid"] = 121148, ["hp"] = 83229, ["absorb"] = 0, }, -- [9] { ["absorb"] = 0, ["amount"] = 8002, ["spellid"] = 596, ["srcname"] = "Gachnar", ["hp"] = 91231, ["ts"] = 1423948486.799, }, -- [10] { ["absorb"] = 0, ["amount"] = 17300, ["spellid"] = 2060, ["srcname"] = "Gachnar", ["hp"] = 108531, ["ts"] = 1423948496.882, }, -- [11] { ["ts"] = 1423948375.103, ["amount"] = -9839, ["hp"] = 101101, ["spellid"] = 178157, ["srcname"] = "Rylak Skyterror", }, -- [12] { ["spellid"] = 178156, ["ts"] = 1423948376.126, ["hp"] = 91186, ["amount"] = -9915, }, -- [13] { ["absorb"] = 0, ["amount"] = 4191, ["spellid"] = 121148, ["srcname"] = "Gachnar", ["hp"] = 95377, ["ts"] = 1423948381.532, }, -- [14] { ["ts"] = 1423948385.085, ["amount"] = -9987, ["hp"] = 85390, ["spellid"] = 178157, ["srcname"] = "Rylak Skyterror", }, -- [15] ["pos"] = 12, }, ["damagetaken"] = 539995, ["power"] = { }, ["id"] = "Player-105-07C35AF4", ["maxhp"] = 110940, ["ccbreaks"] = 0, ["damagetakenspells"] = { ["Gutshot"] = { ["crushing"] = 0, ["id"] = 163334, ["damage"] = 39265, ["max"] = 8183, ["name"] = "Gutshot", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 7470, ["absorbed"] = 0, }, ["Trampling Stampede"] = { ["crushing"] = 0, ["id"] = 173351, ["damage"] = 22625, ["max"] = 22625, ["name"] = "Trampling Stampede", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 22625, ["absorbed"] = 0, }, ["Cannon Barrage"] = { ["crushing"] = 0, ["id"] = 168514, ["damage"] = 4967, ["max"] = 4967, ["name"] = "Cannon Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 4967, ["absorbed"] = 0, }, ["Burning Arrows"] = { ["crushing"] = 0, ["id"] = 164632, ["damage"] = 36705, ["max"] = 7341, ["name"] = "Burning Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 7341, ["absorbed"] = 0, }, ["Flaming Arrows"] = { ["crushing"] = 0, ["id"] = 173149, ["damage"] = 19575, ["max"] = 3915, ["name"] = "Flaming Arrows", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 5, ["resisted"] = 0, ["min"] = 3915, ["absorbed"] = 0, }, ["Charging Slash"] = { ["crushing"] = 0, ["id"] = 172889, ["damage"] = 2586, ["max"] = 2586, ["name"] = "Charging Slash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 2586, ["absorbed"] = 1814, }, ["Chain Drag"] = { ["crushing"] = 0, ["id"] = 172860, ["damage"] = 17090, ["max"] = 8750, ["name"] = "Chain Drag", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 8340, ["absorbed"] = 0, }, ["Acid Spit"] = { ["crushing"] = 0, ["id"] = 178157, ["damage"] = 19826, ["max"] = 9987, ["name"] = "Acid Spit", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 9839, ["absorbed"] = 0, }, ["Incendiary Slug"] = { ["crushing"] = 0, ["id"] = 172771, ["damage"] = 17590, ["max"] = 3916, ["name"] = "Incendiary Slug", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 6, ["resisted"] = 0, ["min"] = 961, ["absorbed"] = 0, }, ["Shattering Blade"] = { ["crushing"] = 0, ["id"] = 168955, ["damage"] = 22397, ["max"] = 11247, ["name"] = "Shattering Blade", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 11150, ["absorbed"] = 0, }, ["Thundering Stomp"] = { ["crushing"] = 0, ["id"] = 173135, ["damage"] = 38651, ["max"] = 13377, ["name"] = "Thundering Stomp", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 12470, ["absorbed"] = 0, }, ["Acid Splash"] = { ["crushing"] = 0, ["id"] = 178156, ["damage"] = 9915, ["max"] = 9915, ["name"] = "Acid Splash", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 1, ["resisted"] = 0, ["min"] = 9915, ["absorbed"] = 0, }, ["Lava Barrage"] = { ["crushing"] = 0, ["id"] = 173489, ["damage"] = 58949, ["max"] = 14905, ["name"] = "Lava Barrage", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 4, ["resisted"] = 0, ["min"] = 14681, ["absorbed"] = 0, }, ["Berserker Leap"] = { ["crushing"] = 0, ["id"] = 168399, ["damage"] = 9664, ["max"] = 4842, ["name"] = "Berserker Leap", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 2, ["resisted"] = 0, ["min"] = 4822, ["absorbed"] = 0, }, ["Bladestorm"] = { ["crushing"] = 0, ["id"] = 167233, ["damage"] = 73067, ["max"] = 10936, ["name"] = "Bladestorm", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 7, ["resisted"] = 0, ["min"] = 9971, ["absorbed"] = 0, }, ["Serrated Spear"] = { ["crushing"] = 0, ["id"] = 173307, ["damage"] = 36425, ["max"] = 2937, ["name"] = "Serrated Spear", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 13, ["resisted"] = 0, ["min"] = 1211, ["absorbed"] = 1770, }, ["Hatchet Toss"] = { ["crushing"] = 0, ["id"] = 173113, ["damage"] = 102843, ["max"] = 17549, ["name"] = "Hatchet Toss", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 21, ["resisted"] = 0, ["min"] = 975, ["absorbed"] = 8911, }, ["Rapid Fire"] = { ["crushing"] = 0, ["id"] = 168348, ["damage"] = 7855, ["max"] = 2647, ["name"] = "Rapid Fire", ["glancing"] = 0, ["multistrike"] = 0, ["critical"] = 0, ["blocked"] = 0, ["totalhits"] = 3, ["resisted"] = 0, ["min"] = 2583, ["absorbed"] = 0, }, }, ["dispells"] = 0, ["healed"] = { }, ["name"] = "Janettie", ["healing"] = 0, ["shielding"] = 0, ["healingspells"] = { }, ["overhealing"] = 0, ["multistrikes"] = 0, }, -- [5] }, ["deaths"] = 0, ["mobs"] = { ["Siegemaster Olugar"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 124988, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 20310, ["done"] = 830, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 64584, ["done"] = 16360, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 48288, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 258170, ["done"] = 17190, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Cockroach"] = { ["players"] = { ["Janettie-Thunderhorn"] = { ["taken"] = 1975, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1975, ["done"] = 0, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Neesa Nox"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 193868, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 22564, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 104124, ["done"] = 0, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 264561, ["done"] = 8106, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 156590, ["done"] = 39265, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 719143, ["done"] = 69935, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Deckhand"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 268115, ["done"] = 15396, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 163647, ["done"] = 98376, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 41484, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Nabooli"] = { ["taken"] = 397946, ["done"] = 30061, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 145027, ["done"] = 102843, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 974735, ["done"] = 288160, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Deadeye"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 123537, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 47201, ["done"] = 5553, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 152311, ["done"] = 10507, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 79450, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 402499, ["done"] = 16060, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Dreadfang"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 244562, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 71592, ["done"] = 37732, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 165469, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 110475, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 592098, ["done"] = 37732, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Ogron Laborer"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 675974, ["done"] = 25866, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 298588, ["done"] = 141647, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 25610, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Nabooli"] = { ["taken"] = 526183, ["done"] = 12599, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 381564, ["done"] = 38651, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1882309, ["done"] = 244373, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Footsoldier"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 357960, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 123542, ["done"] = 19563, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 17286, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Nabooli"] = { ["taken"] = 355741, ["done"] = 23490, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 75239, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 912482, ["done"] = 60339, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Fleshrender Nok'gar"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 269900, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 104249, ["done"] = 51752, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 19717, ["done"] = 0, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Lupinne-Alleria"] = { ["taken"] = 179189, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 172097, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 745152, ["done"] = 51752, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Rylak Skyterror"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 0, ["done"] = 9482, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 0, ["done"] = 4128, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 0, ["done"] = 15619, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 27714, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 0, ["done"] = 19826, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 0, ["done"] = 76769, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Oshir"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 576185, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 141183, ["done"] = 113903, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Janettie-Thunderhorn"] = { ["taken"] = 211329, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 357666, ["done"] = 20019, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1286363, ["done"] = 133922, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Bombsquad"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 9700, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 9700, ["done"] = 0, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Zoggosh"] = { ["players"] = { ["Stewgottz-Hakkar"] = { ["taken"] = 10493, ["done"] = 0, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 99520, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 44243, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 154256, ["done"] = 0, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Technician"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 294136, ["done"] = 28821, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 102021, ["done"] = 48133, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 204315, ["done"] = 20918, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 102870, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 703342, ["done"] = 97872, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Ironwing Flamespitter"] = { ["players"] = { ["Janettie-Thunderhorn"] = { ["taken"] = 234775, ["done"] = 58949, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 167087, ["done"] = 146300, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 185691, ["done"] = 78792, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 142479, ["done"] = 86702, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 730032, ["done"] = 370743, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Makogg Emberblade"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 348579, ["done"] = 56653, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 137290, ["done"] = 38353, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 6164, ["done"] = 34600, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Nabooli"] = { ["taken"] = 251358, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 119730, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 863121, ["done"] = 129606, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Thunderlord Wrangler"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 295906, ["done"] = 59663, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 546831, ["done"] = 92707, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 290766, ["done"] = 192959, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 20338, ["done"] = 47432, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 222260, ["done"] = 36425, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1376101, ["done"] = 429186, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Incinerator"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 177085, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 111887, ["done"] = 12372, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 11246, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Lupinne-Alleria"] = { ["taken"] = 131617, ["done"] = 20860, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 33598, ["done"] = 17590, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 454187, ["done"] = 62068, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Chainmaster"] = { ["players"] = { ["Janettie-Thunderhorn"] = { ["taken"] = 63010, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 46493, ["done"] = 85746, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 112859, ["done"] = 4052, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 94868, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 317230, ["done"] = 89798, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Rampaging Clefthoof"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 138621, ["done"] = 13352, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 257270, ["done"] = 12419, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 73993, ["done"] = 20533, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 16691, ["done"] = 0, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 112785, ["done"] = 22625, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 599360, ["done"] = 68929, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Battlemaster"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 286125, ["done"] = 5516, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 181454, ["done"] = 99922, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 8796, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Lupinne-Alleria"] = { ["taken"] = 357358, ["done"] = 46792, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 173953, ["done"] = 92743, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 998890, ["done"] = 253769, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Ogre Trap"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 0, ["done"] = 24802, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 0, ["done"] = 24802, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Ahri'ok Dugru"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 321895, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 89879, ["done"] = 77714, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 202784, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 101911, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 716469, ["done"] = 77714, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Pitwarden Gwarnok"] = { ["players"] = { ["Janettie-Thunderhorn"] = { ["taken"] = 70492, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 35776, ["done"] = 31178, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 53342, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Nabooli"] = { ["taken"] = 85402, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 245012, ["done"] = 31178, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Champion Druna"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 34253, ["done"] = 0, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 45271, ["done"] = 20265, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Lupinne-Alleria"] = { ["taken"] = 105232, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 53297, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 238053, ["done"] = 20265, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Blackhand's Might Turret"] = { ["players"] = { ["Gachnar"] = { ["taken"] = 0, ["done"] = 2634, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 0, ["done"] = 7855, ["class"] = "MAGE", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 0, ["done"] = 5132, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 0, ["done"] = 15621, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Grom'kar Flameslinger"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 69234, ["done"] = 35464, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 47413, ["done"] = 13420, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 0, ["done"] = 18599, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Lupinne-Alleria"] = { ["taken"] = 101594, ["done"] = 89901, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 48620, ["done"] = 36705, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 266861, ["done"] = 194089, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Siegemaster Rokra"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 72788, ["done"] = 0, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Gachnar"] = { ["taken"] = 20092, ["done"] = 0, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 85686, ["done"] = 26666, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Nabooli"] = { ["taken"] = 50592, ["done"] = 17485, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 20792, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 249950, ["done"] = 44151, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Skulloc"] = { ["players"] = { ["Lupinne-Alleria"] = { ["taken"] = 424722, ["done"] = 153746, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Stewgottz-Hakkar"] = { ["taken"] = 202908, ["done"] = 186160, ["class"] = "DEATHKNIGHT", ["role"] = "TANK", }, ["Gachnar"] = { ["taken"] = 16571, ["done"] = 0, ["class"] = "PRIEST", ["role"] = "HEALER", }, ["Nabooli"] = { ["taken"] = 438110, ["done"] = 8783, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 220252, ["done"] = 0, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 1302563, ["done"] = 348689, ["htaken"] = 0, ["htakenspell"] = { }, }, ["Koramar"] = { ["players"] = { ["Nabooli"] = { ["taken"] = 106694, ["done"] = 9069, ["class"] = "SHAMAN", ["role"] = "DAMAGER", }, ["Lupinne-Alleria"] = { ["taken"] = 173644, ["done"] = 37359, ["class"] = "WARRIOR", ["role"] = "DAMAGER", }, ["Janettie-Thunderhorn"] = { ["taken"] = 95785, ["done"] = 32061, ["class"] = "MAGE", ["role"] = "DAMAGER", }, }, ["hdone"] = 0, ["hdonespell"] = { }, ["taken"] = 376123, ["done"] = 78489, ["htaken"] = 0, ["htakenspell"] = { }, }, }, ["mobtaken"] = 17376176, ["healing"] = 5212241, ["mobdone"] = 3333201, ["power"] = { 1140, -- [1] [6] = 1975, [0] = 7920, }, ["overhealing"] = 2708239.32443237, ["damagetaken"] = 3586263, ["name"] = "Total", ["starttime"] = 1423947480, ["shielding"] = 2299264, ["mobhdone"] = 0, ["last_action"] = 1423947480, ["multistrikes"] = 56, }, }