模式文件中改用玩家的随机而非系统随机,便于正确回放
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local max,rnd=math.max,math.random
|
||||
local max=math.max
|
||||
return{
|
||||
color=color.cyan,
|
||||
env={
|
||||
@@ -8,7 +8,7 @@ return{
|
||||
if not(P.control and SCN.cur=="play")then return end
|
||||
P.modeData.counter=P.modeData.counter+1
|
||||
if P.modeData.counter>=max(60,150-2*P.modeData.event)and P.atkBuffer.sum<4 then
|
||||
P.atkBuffer[#P.atkBuffer+1]={pos=rnd(10),amount=1,countdown=30,cd0=30,time=0,sent=false,lv=1}
|
||||
P.atkBuffer[#P.atkBuffer+1]={pos=P:RND(10),amount=1,countdown=30,cd0=30,time=0,sent=false,lv=1}
|
||||
P.atkBuffer.sum=P.atkBuffer.sum+1
|
||||
P.stat.recv=P.stat.recv+1
|
||||
if P.modeData.event==45 then P:showTextF(text.maxspeed,0,-140,100,"appear",.6)end
|
||||
|
||||
Reference in New Issue
Block a user