Skip to content

Commit

Permalink
Updated some files
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Sep 7, 2024
1 parent 6507dc8 commit 0ef5281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BAGen/MTRawEditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct MTRawEditorView: View {
.background(.blue)
.cornerRadius(14)
.foregroundColor(.white)
.sheet(isPresented: $isCodeHelpPresented, content: {RawCodeHelpView()})
.sheet(isPresented: $isCodeHelpPresented, content: { RawCodeHelpView() })
}
CodeTextEditor(text: $fullFileContent) {
highlightCode()
Expand Down Expand Up @@ -208,7 +208,7 @@ struct MTRawEditorView: View {
if (i == spdByLine.count - 1) && spdByLine[i] == "" { break }
let spdEachPart = spdByLine[i].split(separator: "|").map { return String($0) }
if spdEachPart.count == 4 {
if !allCharacterIds.contains(spdEachPart[0]) && spdEachPart[0] != "Sensei" && spdEachPart[0] != "System" && spdEachPart[0] != "SpecialEvent" {
if !allCharacterIds.contains(spdEachPart[0]) && spdEachPart[0] != "Sensei" && spdEachPart[0] != "System" && spdEachPart[0] != "SpecialEvent" && !spdEachPart[0].contains("%^Split^@") {
codeIssues.append(.init(id: "MT003", desc: "角色 ID 不存在", line: i + 1))
}
if spdEachPart[3] != "false" && spdEachPart[3] != "true" {
Expand Down

0 comments on commit 0ef5281

Please sign in to comment.