Skip to content

Commit b65084c

Browse files
author
LocalIdentity
committed
Export monster category images
1 parent 8d909de commit b65084c

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

src/Export/Scripts/passivetree.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ local sheets = {
397397
newSheet("lines", defaultMaxWidth, 100),
398398
newSheet("jewel-sockets", defaultMaxWidth, 100),
399399
newSheet("legion", defaultMaxWidth, 100),
400+
newSheet("monster-categories", defaultMaxWidth, 100),
400401
}
401402
local sheetLocations = {
402403
["skills"] = 1,
@@ -409,6 +410,7 @@ local sheetLocations = {
409410
["lines"] = 8,
410411
["jewel-sockets"] = 9,
411412
["legion"] = 10,
413+
["monster-categories"] = 11,
412414
}
413415
local function getSheet(sheetLocation)
414416
return sheets[sheetLocations[sheetLocation]]
@@ -536,6 +538,20 @@ for jewel in jewelArt:Rows() do
536538
:: nexttogo ::
537539
end
538540

541+
-- adding monster types
542+
local monsterCategories = dat("MonsterCategories")
543+
for category in monsterCategories:Rows() do
544+
if category.Type:find(ignoreFilter) ~= nil then
545+
printf("Ignoring category" .. category.Type)
546+
goto nexttogo
547+
end
548+
local asset = uiImages[string.lower(category.HudImage)]
549+
printf("Adding category " .. category.Type .. " " .. asset.path .. " to sprite")
550+
local name = category.Type
551+
addToSheet(getSheet("monster-categories"), asset.path, "monster-categories", commonMetadata(name))
552+
:: nexttogo ::
553+
end
554+
539555
-- adding legion assets
540556
for legion in dat("AlternatePassiveSkills"):Rows() do
541557
addToSheet(getSheet("legion"), legion.DDSIcon, "legion", commonMetadata(legion.DDSIcon))

src/Export/Scripts/spectreList.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local spectreList = {}
1010
local uniqueName = {}
1111

1212
for monster in dat("MonsterVarieties"):Rows() do
13-
if monster.NotSpectre == false and monster.BossHealthBar == false and not monster.Id:match("NPC") and not monster.Name:match("DNT") and not monster.AIScript:match("NoAI") then
13+
if monster.NotSpectre == false and monster.BossHealthBar == false and not monster.Type.IsPlayerMinion == true and not monster.Id:match("NPC") and not monster.Name:match("DNT") and not monster.AIScript:match("NoAI") then
1414
for _, name in ipairs(uniqueName) do
1515
if name == monster.Name then
1616
goto continue
@@ -21,9 +21,6 @@ for monster in dat("MonsterVarieties"):Rows() do
2121
goto continue
2222
end
2323
end
24-
if monster.Type.IsPlayerMinion == true then
25-
goto continue
26-
end
2724
for _, mod in ipairs(monster.ModsKeys2) do
2825
if mod.Id == "CannotBeUsedAsMinion" then
2926
goto continue
Binary file not shown.

src/TreeData/0_2/tree.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/TreeData/0_2/tree.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,14 @@ return {
12961296
["Art/2DArt/UIImages/InGame/PassiveMastery/MasteryBackgroundGraphic/MasteryTwoHandsPattern"]=25,
12971297
["Art/2DArt/UIImages/InGame/PassiveMastery/MasteryBackgroundGraphic/MasteryWarcryPattern"]=36
12981298
},
1299+
["monster-categories_36_36_BC7.dds.zst"]={
1300+
Beast=4,
1301+
Construct=1,
1302+
Demon=5,
1303+
Eldritch=3,
1304+
Humanoid=2,
1305+
Undead=6
1306+
},
12991307
["oils_108_108_RGBA.dds.zst"]={
13001308
Despair=6,
13011309
Disgust=10,

0 commit comments

Comments
 (0)