整理代码,较复杂的单行if-then-end拆成多行

This commit is contained in:
MrZ626
2021-09-03 00:28:08 +08:00
parent 827d0cdf5a
commit 57497dbd74
66 changed files with 703 additions and 261 deletions

View File

@@ -54,7 +54,9 @@ function DATA.pasteSequence(str)
end
end
end
if reg then ins(BAG,reg)end
if reg then
ins(BAG,reg)
end
return true
end
@@ -101,8 +103,12 @@ function DATA.copyBoards()
return table.concat(out,"!")
end
function DATA.pasteBoard(str,page)--Paste [str] data to [page] board
if not page then page=1 end
if not FIELD[page]then FIELD[page]=DATA.newBoard()end
if not page then
page=1
end
if not FIELD[page]then
FIELD[page]=DATA.newBoard()
end
local F=FIELD[page]
--Decode
@@ -212,7 +218,9 @@ function DATA.pasteMission(str)
end
end
end
if reg then ins(MISSION,reg)end
if reg then
ins(MISSION,reg)
end
return true
end