修复节日日期写错

修正简洁模式场景栈搜索有未触发漏洞
整理代码
框架跟进
This commit is contained in:
MrZ_26
2022-11-03 15:11:12 +08:00
parent 9e882e6188
commit b2b5c99425
8 changed files with 29 additions and 33 deletions

View File

@@ -4,7 +4,7 @@ local THEME={
local themeColor={
xmas={COLOR.lR,COLOR.Z,COLOR.lG},
sprfes={COLOR.lR,COLOR.O,COLOR.lY},
halloween={COLOR.lH,COLOR.O,{COLOR.hsv(0.76, 0.50, 0.42)},{COLOR.hsv(0.33, 0.80, 0.42)}},
halloween={COLOR.lH,COLOR.O,{COLOR.hsv(.76,.50,.42)},{COLOR.hsv(.33,.80,.42)}},
}
function THEME.calculate(Y,M,D)
@@ -18,7 +18,7 @@ function THEME.calculate(Y,M,D)
'xmas' or
-- Halloween
(M=='11' and D>='28' or M=='12' and D<='04') and
(M=='10' and D>='28' or M=='11' and D<='04') and
'halloween' or
-- Birthday