Skip to content

Commit 1367dd4

Browse files
committed
添加新序列模式sprint_stable
spin模式平衡调整
1 parent 07ccace commit 1367dd4

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

assets/game/mechanicLib/brik/chargeLimit.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ do -- spin
312312

313313
-- Non-spin punishing
314314
if not P.lastMovement.immobile and mainDev then
315-
mainDev.pow=math.max(mainDev.pow-pieceDev_punish,-1)
315+
mainDev.pow=math.min(mainDev.pow-pieceDev_punish,-1)
316316
end
317317
end
318318
function chargeLimit.spin_piece_event_drawOnPlayer(P)

assets/game/mechanicLib/brik/sequence.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,28 @@ bag7_p1fromBag7=function(P,d,init) -- bag7+1(from another bag7)
119119
return rem(d.bag,P:random(#d.bag))
120120
end,
121121

122+
bag7_stable=function(P,d,init) -- bag7, but difference between adjacent bags is small
123+
if init then
124+
d.bag1={}
125+
d.bag2=copy(Tetros)
126+
shuffle(d.bag2,P)
127+
return
128+
end
129+
130+
if supply(d.bag1,d.bag2) then
131+
local l=d.bag2
132+
local i=#l-1
133+
while i>=1 do
134+
if P:roll(.42) then
135+
l[i],l[i+1]=l[i+1],l[i]
136+
i=i-1
137+
end
138+
i=i-1
139+
end
140+
end
141+
return rem(d.bag1)
142+
end,
143+
122144
bag7_sprint=function(P,d,init) -- bag7, but no early S/Z/O and shuffling range start from 3, +1 each bag
123145
if init then
124146
d.bag={}

assets/game/mode/brik/exterior/spin.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ return {
1414
end,
1515
settings={brik={
1616
spin_immobile=true,
17-
seqType='bag7_luckyT',
17+
seqType='bag7_stable',
18+
deathDelay=1260,
1819
event={
1920
playerInit=function(P)
2021
mechLib.brik.chargeLimit.spin_event_playerInit(P)

0 commit comments

Comments
 (0)