You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Returns the unified order table used by the active mode.
29
+
-- Priority: order<gameMode>, order<baseMode>, order
30
+
functionstart.f_getOrderChars(baseMode)
31
+
localmode=gameMode() or''
32
+
localchecked= {}
33
+
for_, keyinipairs({mode, baseMode, 'default'}) do
34
+
ifkey~=nilandkey~='' andnotchecked[key] then
35
+
checked[key] =true
36
+
iftype(main.t_orderChars[key]) =='table' then
37
+
returnmain.t_orderChars[key]
38
+
end
39
+
end
40
+
end
41
+
return {}
42
+
end
43
+
28
44
--; ROSTER
29
45
--converts '.maxmatches' style table (key = order, value = max matches) to key = match number, value = subtable with char num and order data
30
46
functionstart.f_unifySettings(t, t_chars)
@@ -38,17 +54,6 @@ function start.f_unifySettings(t, t_chars)
38
54
infinite=true
39
55
end
40
56
forj=1, numdo--iterate up to max amount of matches versus characters with this order
41
-
--[[if j * start.p[2].numChars > #t_chars[i] and #ret > 0 then --if there are not enough characters to fill all slots and at least 1 fight is already assigned
42
-
local stop = true
43
-
for k = (j - 1) * start.p[2].numChars + 1, #t_chars[i] do --loop through characters left for this match
44
-
if start.f_getCharData(t_chars[i][k]).single == 1 then --and allow appending if any of the remaining characters has 'single' flag set
@@ -3192,9 +3220,10 @@ function start.f_palMenu(side, cmd, player, member, selectState)
3192
3220
3193
3221
-- done anim after pal confirmation - primary face
3194
3222
localdone_anim=pCfg.face.done.anim
3223
+
localdone_spr=pCfg.face.done.spr
3195
3224
localpreview_anim=pCfg.palmenu.preview.anim
3196
-
ifdone_anim~=preview_animthen
3197
-
ifst.face_anim~=done_animand (main.coopormotif.select_info['p' ..side].face.num>1ormain.f_tableLength(start.p[side].t_selected) +1==start.p[side].numChars) then
3225
+
ifdone_anim~=preview_animordone_spr[1] ~=-1then
3226
+
if(st.face_anim~=done_animordone_spr[1] ~=-1)and (main.coopormotif.select_info['p' ..side].face.num>1ormain.f_tableLength(start.p[side].t_selected) +1==start.p[side].numChars) then
0 commit comments