add hold i_s (#971)

* hold with i_s!

* fix hold i_s in swap mode

* Only draw `holdCount` holds

* bump room version

hold i_s is not back-compatible
This commit is contained in:
Imple Lee
2023-09-16 01:35:20 +08:00
committed by GitHub
parent 5e0be0d463
commit 337293dbe1
4 changed files with 41 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ function bot_cc:checkDest(b2b,atk,exblock,yomi)
return
end
end
local should_spawn = self.P:getNextSpawn() - 1
local should_spawn = self.P:getSpawnY(self.P.nextQueue[1]) - 1
if dest.spawn ~= should_spawn then
assert(dest.spawn > should_spawn)
-- print('wrong spawn: should be '..dest.spawn..' but '..should_spawn)
@@ -104,7 +104,7 @@ function bot_cc:updateField()
F[i],i=F0[y][x]>0,i+1
end end
while i<=400 do F[i],i=false,i+1 end
local y = P:getNextSpawn()-1
local y = P:getSpawnY(P.nextQueue[1])-1
if not pcall(self.ccBot.reset,self.ccBot,F,P.b2b,P.combo,P.stat.pc,P.stat.row,y) then
print("CC is dead ("..P.id..")","error")
for y=#F0,1,-1 do