Skip to content

Commit

Permalink
spin模式记录成绩和解锁Gela的条件
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Dec 2, 2024
1 parent 1367dd4 commit ce79c26
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
3 changes: 2 additions & 1 deletion assets/game/mode/brik/exterior/drill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ return {
then PROGRESS.setExteriorUnlock('survivor') return true end
end,
function()
if PROGRESS.getStyleUnlock('acry') then return true end
-- Unlock Acry-action
if PROGRESS.getStyleUnlock('acry') and PROGRESS.getStyleUnlock('acry') then return true end
if
0.3/PROGRESS.getExteriorModeScore('drill','ppl10')+
0.3/PROGRESS.getExteriorModeScore('drill','ppl20')+
Expand Down
41 changes: 32 additions & 9 deletions assets/game/mode/brik/exterior/spin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ return {
beforePress=mechLib.brik.misc.skipReadyWithHardDrop_beforePress,
afterClear={
function(P)
-- if P.modeData.subMode=='piece' or P.modeData.subMode=='hero' then
-- PROGRESS.setExteriorScore('spin','piece',P.modeData.spinClear,'>')
-- end
-- if P.modeData.subMode=='column' or P.modeData.subMode=='hero' then
-- PROGRESS.setExteriorScore('spin','column',P.modeData.spinClear,'>')
-- if P.modeData.spin_column_pure then
-- PROGRESS.setExteriorScore('spin','column_pure',P.modeData.spinClear,'>')
-- end
-- end
if P.modeData.subMode=='piece' or P.modeData.subMode=='hero' then
PROGRESS.setExteriorScore('spin','piece',P.modeData.spinClear,'>')
end
if P.modeData.subMode=='column' or P.modeData.subMode=='hero' then
PROGRESS.setExteriorScore('spin','column',P.modeData.spinClear,'>')
if P.modeData.spin_column_pure then
PROGRESS.setExteriorScore('spin','column_pure_'..P.modeData.spin_column_pure,P.modeData.spinClear,'>')
end
end
end,
function(P,clear)
local T=mechLib.common.task
Expand Down Expand Up @@ -74,6 +74,29 @@ return {
return true
end
end,
function()
-- Unlock Gela-chain
if PROGRESS.getStyleUnlock('gela') and PROGRESS.getExteriorUnlock('chain') then return true end
local data=PROGRESS.get('exteriorMap').spin
local Z,S,J,L,T,O,I=
0 or data.column_pure_Z,
0 or data.column_pure_S,
0 or data.column_pure_J,
0 or data.column_pure_L,
0 or data.column_pure_T,
0 or data.column_pure_O,
0 or data.column_pure_I
if
(0 or data.piece)+
(0 or data.column)+
math.max(Z,S,J,L,T,O,I)/2.6+
(Z+S+J+L+T+O+I)/6.26
>=70.23
then
PROGRESS.setStyleUnlock('gela')
PROGRESS.setExteriorUnlock('chain')
end
end
},
drawOnPlayer=mechLib.brik.chargeLimit.spin_event_drawOnPlayer,
},
Expand Down

0 comments on commit ce79c26

Please sign in to comment.