Merge remote-tracking branch 'tech/cc-field-height'

This commit is contained in:
MrZ_26
2023-10-23 01:50:51 +08:00
12 changed files with 21 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ return {
cc_fixed="CC is incompatible with fixed sequences.",
cc_swap="CC is incompatible when the hold mode is set to Swap.",
cc_solid="CC is incompatible with filled line in the field.",
cc_field_too_high="CC is incompatible with fields higher than 40.",
ai_prebag="AI is incompatible with custom sequences that contain non-tetrominoes.",
ai_mission="AI is incompatible with custom missions.",
switchSpawnSFX="Please turn on the block spawn SFX!",
needRestart="Restart to apply all changes.",

View File

@@ -72,6 +72,7 @@ return {
cc_fixed="CC no es compatible con piezas prefijadas",
cc_swap="CC no es compatible con Swap Hold",
-- cc_solid="CC is incompatible with filled line in the field.",
-- cc_field_too_high="CC is incompatible with fields higher than 40.",
switchSpawnSFX="Habilita los sonidos de aparición de las piezas ;)",
needRestart="Reinicia para aplicar los cambios.",

View File

@@ -73,6 +73,7 @@ return {
cc_fixed="CC est incompatible avec les séquences fixes",
cc_swap="CC est incompatible avec le mode de maintien du swap",
-- cc_solid="CC is incompatible with filled line in the field.",
-- cc_field_too_high="CC is incompatible with fields higher than 40.",
switchSpawnSFX="Activez les effets sonores d'apparition des pièces pour jouer.",
needRestart="Redémarrez pour appliquer toutes les modifications.",

View File

@@ -74,6 +74,7 @@ return {
cc_fixed="CC tidak cocok dengan urutan tetap.",
cc_swap="CC tidak cocok dengan mode simpan tukar.",
-- cc_solid="CC is incompatible with filled line in the field.",
-- cc_field_too_high="CC is incompatible with fields higher than 40.",
switchSpawnSFX="Nyalakan efek suara munculan blok!",
needRestart="Ulangi untuk menerapkan perubahan.",

View File

@@ -74,6 +74,7 @@ return {
cc_fixed="CCはミ順の指定に非対応です!",
cc_swap="CCはホールドモード、Swapに非対応です!",
-- cc_solid="CC is incompatible with filled line in the field.",
-- cc_field_too_high="CC is incompatible with fields higher than 40.",
switchSpawnSFX="ブロック出現時の効果音をONにしてください!",
needRestart="すべての変更を適用する為にリスタートしてください!",

View File

@@ -63,6 +63,7 @@ return {
-- cc_fixed="CC is incompatible with fixed sequences",
-- cc_swap="CC is incompatible with swap holdmode",
-- cc_solid="CC is incompatible with filled line in the field.",
-- cc_field_too_high="CC is incompatible with fields higher than 40.",
switchSpawnSFX="Switch on spawn SFX to play",
needRestart="Funciona após reiniciar",

View File

@@ -63,6 +63,7 @@ return {
cc_fixed="CC X!!!",
cc_swap="CC X!!!",
cc_solid="CC X!!!",
cc_field_too_high="CC X!!!",
needRestart="!!*#R#*!!",
loadError_errorMode="'$1' ↑x!: no load mode '$2'",

View File

@@ -78,6 +78,8 @@ return {
cc_fixed="CC không tương thích với trình xáo gạch cố định",
cc_swap="CC không tương thích với chế độ Hold là Chuyển",
cc_solid="CC không tương thích với bảng có hàng đã lấp đầy.",
-- cc_solid="CC is incompatible with filled line in the field.",
-- cc_field_too_high="CC is incompatible with fields higher than 40.",
switchSpawnSFX="Vui lòng bật Spawn SFX để chơi!",
needRestart="Khởi động lại để áp dụng mọi thay đổi.",

View File

@@ -73,6 +73,7 @@ return {
cc_fixed="不能同时开启CC和固定序列",
cc_swap="不能同时开启CC和swap的暂存模式",
cc_solid="开启CC时不能存在预先填满的行",
cc_field_too_high="开启CC时最高出块高度不能超过40",
switchSpawnSFX="请开启方块生成音效",
needRestart="重新开始以生效",

View File

@@ -72,6 +72,7 @@ return {
cc_fixed="assert(AI==CC and Sequence==Fixed)",
cc_swap="assert(AI==CC and Hold.Mode==Swap)",
cc_solid="assert(AI==CC and filledLine in Field)",
cc_field_too_high="assert(AI==CC and Field.Height>=40)",
switchSpawnSFX="SpawnSFX=false",
needRestart="NeedRestart=true",

View File

@@ -73,6 +73,7 @@ return {
cc_fixed="不能同時開啟CC和固定序列",
cc_swap="不能同時開啟CC和swap的暫存模式",
cc_solid="開啟CC時不能存在預先填滿的行",
cc_field_too_high="開啓CC時最高出塊高度不能超過40",
switchSpawnSFX="請開啟方塊生成音效",
needRestart="重新啟動以應用所有更改",

View File

@@ -118,6 +118,13 @@ local function _play(mode)
MES.new('error',text.cc_swap)
return
end
if CUSTOMGAME_LOCAL.customenv.fieldH>=35 then
-- the error message says 40, but we detect 35
-- because with a few garbage lines, the field height can be pushed to 40
MES.new('warn',text.cc_field_too_high)
-- warning instead of error because we think it's not a big deal
-- the bot just dies very quickly
end
for _,F in next,CUSTOMGAME_LOCAL.field do
for y=1,#F do
if not TABLE.find(F[y],0) then