move to env

This commit is contained in:
steve02081504
2024-05-12 09:01:30 +08:00
parent 78cf6e9086
commit 45a080016e
2 changed files with 3 additions and 2 deletions

View File

@ -2311,6 +2311,7 @@ export function substituteParams(content, _name1, _name2, _original, _group, _re
environment.char = _name2 ?? name2;
environment.group = environment.charIfNotGroup = getGroupValue();
environment.model = getGeneratingModel();
environment.char_version = characters.filter(x => x.name === environment.char).map(x => x.data.character_version)[0];
return evaluateMacros(content, environment);
}