-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eureka: 5.57 notes, array support for notes #3166
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2013,6 +2013,7 @@ const defaultOptions = { | |
cn: '施恩布德的术师队', | ||
ko: '은덕의 술사들', | ||
}, | ||
fieldNotes: 12, | ||
shortLabel: { | ||
en: 'Heal', | ||
fr: 'Miséricorde', | ||
|
@@ -2137,7 +2138,7 @@ const defaultOptions = { | |
cn: '进攻野营地', | ||
ko: '야영지 선제 공격', | ||
}, | ||
fieldNotes: 6, | ||
fieldNotes: [6, 12], | ||
shortLabel: { | ||
en: 'Camping', | ||
fr: 'Idéaux', | ||
|
@@ -3621,7 +3622,9 @@ class EurekaTracker { | |
// Adds field note drops, name, id & rarity of those | ||
if (this.zoneInfo.treatNMsAsSkirmishes && this.options.EnrichedSTQ && nm.fieldNotes) { | ||
for (const note of fieldNotesList) { | ||
if (note.id === nm.fieldNotes) | ||
if (typeof nm.fieldNotes === 'string') | ||
nmNote = [note]; | ||
if (note.id in nmNote) | ||
enriched.innerHTML = `#${note.id}: ${note.shortName} ${gRarityIcon.repeat(note.rarity)}`; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this just overwrite the previous text if there are two notes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was pondering whether to add it on the same line or to make it smaller, not sure yet. It can get kinda long but the user can choose to disable enriched content anyway, so maybe we should go with 2 on the same line ? only happens for a single skirmish anyway There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Multiple lines is probably ok! |
||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is
nmNote
declared?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wow
I need to some doing PRs while half-asleep