新增zDay节日与新的主菜单音乐overzero

This commit is contained in:
MrZ626
2021-03-03 17:43:48 +08:00
parent e9d6778cde
commit d3b22b0447
4 changed files with 13 additions and 1 deletions

View File

@@ -982,6 +982,8 @@ function WIDGET.set(list)
c1,c2,c3=COLOR.red,COLOR.white,COLOR.green
elseif FESTIVAL=="sprFes"then
c1,c2,c3=COLOR.red,COLOR.orange,COLOR.yellow
else
return
end
local rnd=math.random
for _,W in next,list do

View File

@@ -43,7 +43,13 @@ FESTIVAL=(
42,32,50,39,28,46,35,24,43,33,
21,40,
})[os.date"%Y"-2000]or -26)-((os.date"%m"-1)*31+os.date"%d"))<6 and
"sprFes"
"sprFes"or
--Z day (Feb./Mar./Apr./May./June 26)
math.abs(os.date"%m"-4)<=2 and os.date"%d"+0==26 and
"zDay"or
false
)
math.randomseed(os.time()*626)
@@ -408,6 +414,9 @@ if FESTIVAL=="Xmas"then
elseif FESTIVAL=="sprFes"then
BG.setDefault("firework")
BGM.setDefault("spring festival")
elseif FESTIVAL=="zDay"then
BG.setDefault("lanterns")
BGM.setDefault("overzero")
else
BG.setDefault("space")
BGM.setDefault("blank")

BIN
media/BGM/overzero.ogg Normal file

Binary file not shown.

View File

@@ -63,6 +63,7 @@ local eggInput={
BGM.setDefault("blank")
BGM.play()
end,
normal="classic",
xmas=function()
FESTIVAL="xMas"
BG.setDefault("snow")