This commit is contained in:
Alexander Drozdov
2021-05-15 09:07:31 +03:00
parent 5892dfd671
commit 9c8f53ea50
4 changed files with 22 additions and 11 deletions
+1
View File
@@ -44,6 +44,7 @@ const dict = {
"Combine this with four other different samples in Tane's Laboratory.": "Combine this with four other different samples in Tane's Laboratory.",
'Right-click to add this to your bestiary.': 'Right-click to add this to your bestiary.',
'Right-click to add this prophecy to your character.': 'Right-click to add this prophecy to your character.',
'Added Small Passive Skills grant: ': 'Added Small Passive Skills grant: ',
'/^.* Brain$/': /^.* Brain$/,
'/^.* Eye$/': /^.* Eye$/,
'/^.* Lung$/': /^.* Lung$/,
+1
View File
@@ -46,6 +46,7 @@ const dict: TranslationDict = {
"Combine this with four other different samples in Tane's Laboratory.": 'Объедините эту часть с четырьмя другими в Лаборатории Танэ.',
'Right-click to add this to your bestiary.': 'Нажмите ПКМ, чтобы добавить это в ваш Бестиарий.',
'Right-click to add this prophecy to your character.': 'Нажмите ПКМ, чтобы добавить это пророчество вашему персонажу.',
'Added Small Passive Skills grant: ': 'Добавленные малые пассивные умения даруют: ',
'/^.* Brain$/': /^Мозг: .*$/,
'/^.* Eye$/': /^Глаз: .*$/,
'/^.* Lung$/': /^Лёгкое: .*$/,
+2
View File
@@ -60,6 +60,8 @@ export const MAP_BLIGHTED = '/^Blighted (.*)$/'
export const ITEM_SUPERIOR = '/^Superior (.*)$/'
export const VAAL_GEM = '/^Vaal .*$/'
export const CLUSTER_JEWEL_GRANT = 'Added Small Passive Skills grant: '
export const PROPHECY_HELP = 'Right-click to add this prophecy to your character.'
export const BEAST_HELP = 'Right-click to add this to your bestiary.'
export const METAMORPH_HELP = "Combine this with four other different samples in Tane's Laboratory."
+18 -11
View File
@@ -1,4 +1,4 @@
import { STAT_BY_MATCH_STR, Stat, StatMatcher } from '@/assets/data'
import { STAT_BY_MATCH_STR, Stat, StatMatcher, CLIENT_STRINGS as _$ } from '@/assets/data'
import * as C from './constants'
export enum ModifierType {
@@ -25,18 +25,25 @@ export function * sectionToStatStrings (section: string[]): Generator<string, st
let multi = (idx + 1) < section.length
while (idx < section.length) {
if (multi && (
section[idx].endsWith(C.IMPLICIT_SUFFIX) ||
section[idx].endsWith(C.CRAFTED_SUFFIX) ||
section[idx].endsWith(C.ENCHANT_SUFFIX) ||
section[idx].endsWith(C.FRACTURED_SUFFIX))
) {
multi = false
}
let str: string
if (multi) {
str = `${section[idx]}\n${section[idx + 1]}`
if (
section[idx].startsWith(_$[C.CLUSTER_JEWEL_GRANT]) &&
section[idx + 1].startsWith(_$[C.CLUSTER_JEWEL_GRANT])
) {
str = `${section[idx].slice(0, -C.ENCHANT_SUFFIX.length)}\n${section[idx + 1]}`
} else if (
section[idx].endsWith(C.IMPLICIT_SUFFIX) ||
section[idx].endsWith(C.CRAFTED_SUFFIX) ||
section[idx].endsWith(C.ENCHANT_SUFFIX) ||
section[idx].endsWith(C.FRACTURED_SUFFIX)
) {
multi = false
str = section[idx]
} else {
str = `${section[idx]}\n${section[idx + 1]}`
}
} else {
str = section[idx]
}