Skip to content

Commit

Permalink
added Gun Jumping on hypersonic, dig, drill and TSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab052 committed Oct 30, 2024
1 parent 0cdda63 commit b11a1ff
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
14 changes: 14 additions & 0 deletions assets/game/mode/brik/exterior/dig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@ return {
P.modeData.lineStay=6
mechLib.brik.dig.event_playerInit(P)
P.fieldDived=0
P.modeData.keyCount={}
P.modeData.curKeyCount=0
end,
beforePress={
mechLib.brik.misc.skipReadyWithHardDrop_beforePress,
function(P)
if P.timing then return true end
if P.settings.readyDelay%1000~=0 then
PROGRESS.setSecret('exterior_sprint_gunJumping')
end
end,
function(P)
P.modeData.curKeyCount=P.modeData.curKeyCount+1
end,
},
beforeClear={
function(P,lines)
local CLEARS=P.modeData.infDig_clears
Expand Down
14 changes: 14 additions & 0 deletions assets/game/mode/brik/exterior/drill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@ return {
P.modeData.lineStay=8
mechLib.brik.dig.event_playerInit(P)
P.fieldDived=0
P.modeData.keyCount={}
P.modeData.curKeyCount=0
end,
beforePress={
mechLib.brik.misc.skipReadyWithHardDrop_beforePress,
function(P)
if P.timing then return true end
if P.settings.readyDelay%1000~=0 then
PROGRESS.setSecret('exterior_sprint_gunJumping')
end
end,
function(P)
P.modeData.curKeyCount=P.modeData.curKeyCount+1
end,
},
beforeClear={
function(P,lines)
local CLEARS=P.modeData.infDig_clears
Expand Down
14 changes: 14 additions & 0 deletions assets/game/mode/brik/exterior/hypersonic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ return {
P.settings.dropDelay=0
P.settings.lockDelay=1e99
P.settings.spawnDelay=260
P.modeData.keyCount={}
P.modeData.curKeyCount=0
local T=mechLib.common.task
T.install(P)
T.add(P,'hypersonic_low','modeTask_hypersonic_low_title','modeTask_hypersonic_low_desc','(0/4)')
Expand All @@ -29,6 +31,18 @@ return {
T.add(P,'hypersonic_titanium','modeTask_hypersonic_titanium_title','modeTask_hypersonic_titanium_desc')
end
end,
beforePress={
mechLib.brik.misc.skipReadyWithHardDrop_beforePress,
function(P)
if P.timing then return true end
if P.settings.readyDelay%1000~=0 then
PROGRESS.setSecret('exterior_sprint_gunJumping')
end
end,
function(P)
P.modeData.curKeyCount=P.modeData.curKeyCount+1
end,
},
afterClear=function(P,clear)
local initFunc
local T=mechLib.common.task
Expand Down
14 changes: 14 additions & 0 deletions assets/game/mode/brik/exterior/tspin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,22 @@ return {
P.modeData.hardModeFlag=true
mechLib.brik.chargeLimit.tspin_event_playerInit(P)
mechLib.common.music.set(P,{path='.tsd',s=3,e=12},'afterClear')
P.modeData.keyCount={}
P.modeData.curKeyCount=0
end,
always=mechLib.brik.chargeLimit.tspin_event_always,
beforePress={
mechLib.brik.misc.skipReadyWithHardDrop_beforePress,
function(P)
if P.timing then return true end
if P.settings.readyDelay%1000~=0 then
PROGRESS.setSecret('exterior_sprint_gunJumping')
end
end,
function(P)
P.modeData.curKeyCount=P.modeData.curKeyCount+1
end,
},
afterClear={
mechLib.brik.chargeLimit.tspin_event_afterClear,
function(P) -- Switch to easy mode when TS not D
Expand Down

0 comments on commit b11a1ff

Please sign in to comment.