代码整理,修复一个读取问题

This commit is contained in:
MrZ626
2020-08-23 00:16:59 +08:00
parent 4786ab59b0
commit e5f489fbab
2 changed files with 35 additions and 34 deletions

View File

@@ -116,34 +116,34 @@ if fs.getInfo("tech_ultimate.dat")then fs.remove("tech_ultimate.dat")end
if fs.getInfo("tech_ultimate+.dat")then fs.remove("tech_ultimate+.dat")end if fs.getInfo("tech_ultimate+.dat")then fs.remove("tech_ultimate+.dat")end
--Update modeRanks --Update modeRanks
R=modeRanks do
for k,v in next,R do local R=modeRanks
if type(k)=="number"then for k,v in next,R do
local save=v if type(k)=="number"then
if not R[Modes[k].name]then if Modes[k]and not R[Modes[k].name]then
R[Modes[k].name]=v R[Modes[k].name]=v
end
R[k]=nil
end end
R[k]=nil
end end
end if R.master_adavnce then
if R.master_adavnce then R.master_advance,R.master_adavnce=R.master_adavnce
R.master_advance,R.master_adavnce=R.master_adavnce end
end if not text.modes[stat.lastPlay]then
if not text.modes[stat.lastPlay]then stat.lastPlay="sprint_10"
stat.lastPlay="sprint_10" end
end
--Update data file --Update data file
S=stat local S=stat
if type(setting.spawn)~="number"then if type(setting.spawn)~="number"then
setting.spawn=0 setting.spawn=0
end end
if S.version~=gameVersion then if S.version~=gameVersion then
S.version=gameVersion S.version=gameVersion
newVersionLaunch=true newVersionLaunch=true
fs.remove("sprintPenta.dat") fs.remove("sprintPenta.dat")
fs.remove("master_adavnce.dat") fs.remove("master_adavnce.dat")
fs.remove("master_beginner.dat") fs.remove("master_beginner.dat")
end end
R,S=nil end

View File

@@ -26,7 +26,7 @@ Future outlook:
New modes: New modes:
PUYO PUYO
game tutorial game tutorial
finesse tutorial/exam(3next, 1pt/mino, drop to score) finesse tutorial/exam (3next, 1pt/mino, drop to score)
easy finesse (only revert current) easy finesse (only revert current)
game Abbr. test game Abbr. test
backfire backfire
@@ -60,7 +60,7 @@ Future outlook:
better drop FX better drop FX
60+ fps supporting 60+ fps supporting
in-game document in-game document
game recording save recordings
full-key control full-key control
drag control for mobile device drag control for mobile device
new widgets (joystick etc.) new widgets (joystick etc.)
@@ -80,18 +80,19 @@ Future outlook:
增加无尽挖掘连挖提示,挖完后下一波立即升起 增加无尽挖掘连挖提示,挖完后下一波立即升起
new English translation by @MattMayuga#8789 new English translation by @MattMayuga#8789
修改100/400/1000L的评级要求 修改100/400/1000L的评级要求
支持加载部分老版本存档
软件锁界面出现时机调整,按钮位置调整 软件锁界面出现时机调整,按钮位置调整
调整混战模式倍率影响边框颜色的范围 调整混战模式倍率影响边框颜色的范围
软件锁也可显示tip
代码: 代码:
重命名大多数背景 重命名大多数背景
重构createXxxFX函数 重构create___FX函数
修复: 修复:
几个设置大标题样式统一 加载部分老版本存档报错
几个设置大标题样式不统一
有消行延迟+出块等待时连续硬降出现神秘现象 有消行延迟+出块等待时连续硬降出现神秘现象
垃圾行上涨不刷新ghost 垃圾行上涨不刷新ghost
粘贴序列bug 粘贴序列后光标位置错误
可以用键盘复制粘贴序列 不能用键盘复制粘贴序列
每次启动游戏ai是一样的块序 每次启动游戏ai是一样的块序
0.10.4: 漏洞修复 Bug Fix 0.10.4: 漏洞修复 Bug Fix