添加一个节日
This commit is contained in:
@@ -14,6 +14,10 @@ function THEME.calculate(Y,M,D)
|
|||||||
M=="12"and math.abs(D-25)<4 and
|
M=="12"and math.abs(D-25)<4 and
|
||||||
'xmas'or
|
'xmas'or
|
||||||
|
|
||||||
|
--Birthday
|
||||||
|
M=="06"and D=="06"and
|
||||||
|
'birth'or
|
||||||
|
|
||||||
--Spring festival
|
--Spring festival
|
||||||
M<"03"and math.abs((({
|
M<"03"and math.abs((({
|
||||||
--Festival days. Jan 26=26, Feb 1=32, etc.
|
--Festival days. Jan 26=26, Feb 1=32, etc.
|
||||||
@@ -51,6 +55,9 @@ function THEME.set(theme)
|
|||||||
LOG.print("==============")
|
LOG.print("==============")
|
||||||
LOG.print("Merry Christmas!")
|
LOG.print("Merry Christmas!")
|
||||||
LOG.print("==============")
|
LOG.print("==============")
|
||||||
|
elseif theme=='birth'then
|
||||||
|
BG.setDefault('firework')
|
||||||
|
BGM.setDefault('magicblock')
|
||||||
elseif theme=='sprfes'then
|
elseif theme=='sprfes'then
|
||||||
BG.setDefault('firework')
|
BG.setDefault('firework')
|
||||||
BGM.setDefault("spring festival")
|
BGM.setDefault("spring festival")
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ do--commands.help(arg)
|
|||||||
details={
|
details={
|
||||||
"Load a theme.",
|
"Load a theme.",
|
||||||
"",
|
"",
|
||||||
"Usage: theme <classic|xmas|sprfes|zday1/2/3>",
|
"Usage: theme <classic|xmas|sprfes|zday1/2/3|birth>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
test={
|
test={
|
||||||
|
|||||||
Reference in New Issue
Block a user