添加一个节日

This commit is contained in:
MrZ626
2021-06-06 11:30:40 +08:00
parent ec9f8ba46f
commit d784c33fe8
2 changed files with 8 additions and 1 deletions

View File

@@ -14,6 +14,10 @@ function THEME.calculate(Y,M,D)
M=="12"and math.abs(D-25)<4 and
'xmas'or
--Birthday
M=="06"and D=="06"and
'birth'or
--Spring festival
M<"03"and math.abs((({
--Festival days. Jan 26=26, Feb 1=32, etc.
@@ -51,6 +55,9 @@ function THEME.set(theme)
LOG.print("==============")
LOG.print("Merry Christmas!")
LOG.print("==============")
elseif theme=='birth'then
BG.setDefault('firework')
BGM.setDefault('magicblock')
elseif theme=='sprfes'then
BG.setDefault('firework')
BGM.setDefault("spring festival")