修复无尽挖掘报错,小改垃圾行出现代码

This commit is contained in:
MrZ_26
2020-08-10 01:37:49 +08:00
parent f2cf2ce29b
commit de0de3a771
2 changed files with 6 additions and 3 deletions

View File

@@ -18,8 +18,9 @@ return{
},
load=function()
PLY.newPlayer(1,340,15)
local P=players[1]
for _=1,8 do
players[1]:garbageRise(13,1,P:RND(10))
P:garbageRise(13,1,P:RND(10))
end
end,
mesDisp=function(P,dx,dy)

View File

@@ -1197,9 +1197,11 @@ function player.garbageRise(P,color,amount,pos)
P.field[1][pos]=0
end
P.fieldBeneath=P.fieldBeneath+amount*30
P.curY=P.curY+amount
if P.cur then
P.curY=P.curY+amount
P.imgY=P.imgY+amount
end
P.garbageBeneath=P.garbageBeneath+amount
P.imgY=P.imgY+amount
for i=1,#P.clearingRow do
P.clearingRow[i]=P.clearingRow[i]+amount
end