Skip to content

Commit

Permalink
修一处语法注释没更新
Browse files Browse the repository at this point in the history
整理音乐索引
  • Loading branch information
MrZ626 committed Nov 5, 2024
1 parent 06394c4 commit 2e69f95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/game/pubClass.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
---@field id number piece id
---@field did number drop id (exist when hand piece locks)
---@field cid string cell id (unique) (already exist when piece display in next queue)
---@field color number 0~63
---@field color number 000~999
---@field alpha? number 0~1
---@field conn table<string, any>
---@field bias {expBack?:number, lineBack?:number, teleBack?:number, x:number, y:number}
Expand Down
10 changes: 8 additions & 2 deletions assets/songbook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
---@field multitrack? boolean
---@field looppoint? boolean

-- Crediting rule for music with multiple authors:
-- Original author > Direct author > MrZ

---@enum (key) Techmino.MusicName
local songbook={
['8-bit happiness'] ={},
Expand Down Expand Up @@ -95,7 +98,9 @@ local songbook={
['reason remix'] ={author="TetraCepra"},
['seeking star'] ={},
['space warp'] ={author="LR & MrZ"},
['invisible'] ={author="DJ Asriel"},
['invisible mode'] ={author="DJ Asriel"},
['invisible mode 2'] ={author="DJ Asriel"},
['total mayhem'] ={author="DJ Asriel"},

['caprice'] ={inside=true,redirect='rectification'},
['fruit dance_ex'] ={inside=true,redirect='fruit dance'},
Expand All @@ -112,10 +117,11 @@ local songbook={
['reason remix_mix'] ={inside=true,author="TetraCepra",redirect='reason remix'},
['sakura_noloop'] ={inside=true,author="C₂₉H₂₅N₃O₅",redirect='sakura'},
['shibamata_noloop'] ={inside=true,author="C₂₉H₂₅N₃O₅",redirect='shibamata'},
['invisible'] ={inside=true,author="DJ Asriel"},
}

for name,data in next,songbook do
if not data.author then data.author="MrZ" end
if not data.author then data.author="MrZ" end -- MrZ is fun!
local words=name:split(' ')
for i=1,#words do
words[i]=words[i]:sub(1,1):upper()..words[i]:sub(2)
Expand Down

0 comments on commit 2e69f95

Please sign in to comment.