diff --git a/Zenitha b/Zenitha index 832453c3..d241e1f3 160000 --- a/Zenitha +++ b/Zenitha @@ -1 +1 @@ -Subproject commit 832453c3144623a65857a9a0836843e5f2490070 +Subproject commit d241e1f32460e29b40e196471beee4758754f8aa diff --git a/assets/game/basePlayer.lua b/assets/game/basePlayer.lua index 809109f5..3d158ba7 100644 --- a/assets/game/basePlayer.lua +++ b/assets/game/basePlayer.lua @@ -173,8 +173,12 @@ function P:rand(a,b) return a+self.RND:random()*(b-a) end ---Random value -function P:coin(a,b) - return self.RND:random()>.5 and a or b +function P:coin(head,tail) + return self.RND:random()>.5 and head or tail +end +---Random boolean +function P:roll(chance) + return self.RND:random()<(chance or .5) end function P:_getActionObj(a) if type(a)=='string' then diff --git a/assets/game/mode/brik/interior/tutorial/5.finessePractice.lua b/assets/game/mode/brik/interior/tutorial/5.finessePractice.lua index 19ab6716..9b5a5416 100644 --- a/assets/game/mode/brik/interior/tutorial/5.finessePractice.lua +++ b/assets/game/mode/brik/interior/tutorial/5.finessePractice.lua @@ -194,9 +194,8 @@ return { GC.setColor(1,1,1,P.modeData.protect and .5 or 1) FONT.set(80) GC.mStr(P.modeData.finesseCombo,0,-90) FONT.set(30) GC.mStr(Text.target_combo,0,-5) - FONT.set(20) GC.setColor(1,1,1,.872) - GC.mStr(P.modeData.display,0,40) + FONT.set(20) GC.mStr(P.modeData.display,0,40) if P.modeData.finesseCombo<=62 or P.modeData.protect then GC.setColor(COLOR.lD) diff --git a/assets/game/mode/brik/interior/tutorial/7.techrashPractice.lua b/assets/game/mode/brik/interior/tutorial/7.techrashPractice.lua index 8309eacb..ab4c4ffd 100644 --- a/assets/game/mode/brik/interior/tutorial/7.techrashPractice.lua +++ b/assets/game/mode/brik/interior/tutorial/7.techrashPractice.lua @@ -84,9 +84,8 @@ return { FONT.set(30) GC.mStr(P.modeData.techrashTimer>0 and Text.target_score or Text.target_techrash,-300,20) GC.setColor(1,1,1,.62) GC.mStr(Text.target_score,-300,20) - FONT.set(20) GC.setColor(1,1,1,.872) - GC.mStr(P.modeData.display,-300,60) + FONT.set(20) GC.mStr(P.modeData.display,-300,60) end, }, script={