Skip to content

Commit ccd2937

Browse files
committed
eureka: Fix Tristitia spawn conditions
1 parent 8f5863e commit ccd2937

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

ui/eureka/eureka.js

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,23 +2058,25 @@ let Options = {
20582058
},
20592059
tristicia: {
20602060
label: {
2061-
en: 'Tristicia',
2062-
de: 'Tristicia',
2063-
fr: 'Tristicia',
2064-
ja: 'Tristicia',
2061+
en: 'Tristitia',
2062+
de: 'Tristitia',
2063+
fr: 'Tristitia',
2064+
ja: 'Tristitia',
20652065
},
20662066
mobName: {
2067-
// <_<
2068-
en: '(Tristicia|Tristitia|Trisitia)',
2069-
de: '(Tristicia|Tristitia|Trisitia)',
2070-
fr: '(Tristicia|Tristitia|Trisitia)',
2071-
ja: '(Tristicia|Tristitia|Trisitia)',
2067+
en: 'Tristitia',
2068+
de: 'Tristitia',
2069+
fr: 'Tristitia',
2070+
ja: 'Tristitia',
2071+
},
2072+
spawnTrigger: {
2073+
en: '00:0839:An avatar of Absolute Virtue has manifested somewhere in Hydatos'
20722074
},
20732075
trackerName: {
2074-
en: 'Tristicia',
2075-
de: 'Tristicia',
2076-
fr: 'Tristicia',
2077-
ja: 'Tristicia',
2076+
en: 'Tristitia',
2077+
de: 'Tristitia',
2078+
fr: 'Tristitia',
2079+
ja: 'Tristitia',
20782080
},
20792081
x: 18.7,
20802082
y: 29.7,
@@ -2166,7 +2168,10 @@ class EurekaTracker {
21662168
nm.element = label;
21672169
nm.timeElement = time;
21682170
let mobName = nm.mobName[this.options.Language];
2169-
nm.addRegex = Regexes.Parse('03:Added new combatant ' + mobName + '\\.');
2171+
if (nm.spawnTrigger)
2172+
nm.addRegex = Regexes.Parse(nm.spawnTrigger[this.options.Language]);
2173+
if (!nm.addRegex)
2174+
nm.addRegex = Regexes.Parse('03:Added new combatant ' + mobName + '\\.');
21702175
nm.removeRegex = Regexes.Parse('04:Removing combatant ' + mobName + '\\.');
21712176
nm.respawnTimeMsLocal = undefined;
21722177
nm.respawnTimeMsTracker = undefined;
@@ -2446,7 +2451,7 @@ class EurekaTracker {
24462451
this.ImportFromTracker(match[2]);
24472452
continue;
24482453
}
2449-
if (log.indexOf('03:Added new combatant ') >= 0) {
2454+
if (log.indexOf('03:Added new combatant ') >= 0 || log.indexOf('00:0839:') >= 0) {
24502455
for (let i = 0; i < this.nmKeys.length; ++i) {
24512456
let nm = this.nms[this.nmKeys[i]];
24522457
if (log.match(nm.addRegex)) {

0 commit comments

Comments
 (0)