From 9c8f53ea5035dddb7af80a03b26bca22f03b5837 Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Sat, 15 May 2021 09:07:31 +0300 Subject: [PATCH] fixes #392 --- src/assets/data/en/client_strings.ts | 1 + src/assets/data/ru/client_strings.ts | 1 + src/parser/constants.ts | 2 ++ src/parser/modifiers.ts | 29 +++++++++++++++++----------- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/assets/data/en/client_strings.ts b/src/assets/data/en/client_strings.ts index 36122918..afddbf3b 100644 --- a/src/assets/data/en/client_strings.ts +++ b/src/assets/data/en/client_strings.ts @@ -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$/, diff --git a/src/assets/data/ru/client_strings.ts b/src/assets/data/ru/client_strings.ts index 83a09951..19950c9f 100644 --- a/src/assets/data/ru/client_strings.ts +++ b/src/assets/data/ru/client_strings.ts @@ -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$/': /^Лёгкое: .*$/, diff --git a/src/parser/constants.ts b/src/parser/constants.ts index 0d5b63d9..4211f7e9 100644 --- a/src/parser/constants.ts +++ b/src/parser/constants.ts @@ -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." diff --git a/src/parser/modifiers.ts b/src/parser/modifiers.ts index 55b3d86b..808db80b 100644 --- a/src/parser/modifiers.ts +++ b/src/parser/modifiers.ts @@ -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