mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-14 18:54:30 +08:00
chore: 怪物伤害计算与特殊属性调整为样板
This commit is contained in:
1 parent
fe46a7b397
commit
7c9847aa40
24 files changed
+578
-751
No files matched your search
@@ -969,10 +969,13 @@ export class TextContentParser {
|
||||
continue;
|
||||
} else if (char === '$') {
|
||||
// 表达式
|
||||
pointer++;
|
||||
inExpression = true;
|
||||
expStart = pointer + 1;
|
||||
continue;
|
||||
const next = text[pointer + 1];
|
||||
if (next === '{') {
|
||||
pointer++;
|
||||
inExpression = true;
|
||||
expStart = pointer + 1;
|
||||
continue;
|
||||
}
|
||||
} else if (char === '\n') {
|
||||
// 在这里预先将换行处理为多个 node,会比在分行时再处理更方便
|
||||
this.addTextNode(pointer + 1, true);
|
||||
|
||||
Reference in new issue
Block a user