Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Sep 29, 2024
1 parent 6463c57 commit 9531162
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 1 files
+5 −5 mathExtend.lua
8 changes: 6 additions & 2 deletions assets/game/basePlayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit 9531162

Please sign in to comment.