From 00a8ad4a24cf1ceecddd440d108f69a7c321fb4d Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Wed, 27 Dec 2023 20:23:29 +0200 Subject: [PATCH] allow exact match, fixes #1202 --- renderer/src/parser/stat-translations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderer/src/parser/stat-translations.ts b/renderer/src/parser/stat-translations.ts index a99c82ab..75a95e74 100644 --- a/renderer/src/parser/stat-translations.ts +++ b/renderer/src/parser/stat-translations.ts @@ -125,6 +125,10 @@ function * _statPlaceholderGenerator (stat: string) { } } } + + // fallback to exact stat text, without any placeholders + // N # -> max 0 # + yield { stat, values: [] } } export function tryParseTranslation (stat: StatString, modType: ModifierType): ParsedStat | undefined {