Skip to content

Commit 203e87c

Browse files
committed
Add loot spec in comment
1 parent 4706b54 commit 203e87c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Simulationcraft.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## IconTexture: Interface\Addons\SimulationCraft\logo
44
## Notes: Constructs SimC export strings
55
## Author: Theck, navv_, seriallos
6-
## Version: 11.1.0-03
6+
## Version: 11.1.0-04
77
## OptionalDependencies: Ace3, LibRealmInfo, LibDBIcon, LibDataBroker-1.1
88
## SavedVariables: SimulationCraftDB
99

core.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,13 @@ function Simulationcraft:GetSimcProfile(debugOutput, noBags, showMerchant, links
859859
end
860860
local playerSpec = specNames[ globalSpecID ] or 'unknown'
861861

862+
-- Loot spec
863+
local lootSpecId = GetLootSpecialization()
864+
if lootSpecId == 0 then
865+
lootSpecId = globalSpecID
866+
end
867+
local playerLootSpec = specNames[ lootSpecId ]
868+
862869
-- Professions
863870
local pid1, pid2 = GetProfessions()
864871
local firstProf, firstProfRank, secondProf, secondProfRank, profOneId, profTwoId
@@ -901,6 +908,7 @@ function Simulationcraft:GetSimcProfile(debugOutput, noBags, showMerchant, links
901908
local playerSpecStr = 'spec=' .. Tokenize(playerSpec)
902909
playerRealm = 'server=' .. Tokenize(playerRealm)
903910
playerRegion = 'region=' .. Tokenize(playerRegion)
911+
local playerLootSpecStr = 'loot_spec=' .. Tokenize(playerLootSpec)
904912

905913
-- Build the output string for the player (not including gear)
906914
local simcPrintError = nil
@@ -926,6 +934,7 @@ function Simulationcraft:GetSimcProfile(debugOutput, noBags, showMerchant, links
926934
simulationcraftProfile = simulationcraftProfile .. playerRole .. '\n'
927935
simulationcraftProfile = simulationcraftProfile .. playerProfessions .. '\n'
928936
simulationcraftProfile = simulationcraftProfile .. playerSpecStr .. '\n'
937+
simulationcraftProfile = simulationcraftProfile .. '# ' .. playerLootSpecStr .. '\n'
929938
simulationcraftProfile = simulationcraftProfile .. '\n'
930939

931940
if playerSpec == 'unknown' then -- luacheck: ignore

0 commit comments

Comments
 (0)