Skip to content

Commit 71fab1a

Browse files
committed
add: node detail in ClassScore
1 parent dcc03e0 commit 71fab1a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/cache/prepare-cache/processClassScore.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ export function createClassScoreProcessor(itemProcessor: ItemProcessor) {
4646
next: []
4747
};
4848

49+
// add detail if available
50+
const squareEN = boardEN?.squares.find(
51+
squareEN => squareEN.id == square.id
52+
);
53+
const detail =
54+
squareEN?.targetSkill?.detail || squareEN?.targetCommandSpell?.detail;
55+
if (detail) node.detail = detail;
56+
4957
// process items
5058
for (const itemAmount of square.items) {
5159
// why is QP an item here?
@@ -78,7 +86,7 @@ export function createClassScoreProcessor(itemProcessor: ItemProcessor) {
7886
}
7987
}
8088

81-
// mark EN if available
89+
// mark EN and if available
8290
if (boardEN) score.en = true;
8391

8492
// register node in map

0 commit comments

Comments
 (0)