添加一个节日
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -225,7 +225,7 @@ do--commands.help(arg)
|
||||
details={
|
||||
"Load a theme.",
|
||||
"",
|
||||
"Usage: theme <classic|xmas|sprfes|zday1/2/3>",
|
||||
"Usage: theme <classic|xmas|sprfes|zday1/2/3|birth>",
|
||||
},
|
||||
},
|
||||
test={
|
||||
|
||||
Reference in New Issue
Block a user