Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Oct 7, 2024
1 parent f622a5f commit eb7a123
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ local versionText = gc.newText(FONT.get(20))
versionText:set(require 'version'.appVer)

local egg = {
AD_BC = false,
back_to_future = false,
bingo_clicker = 0,
bingo_target = 1,
}
Expand Down Expand Up @@ -476,9 +474,8 @@ local function selectDate(option)
if m == 0 then m, y = 12, y - 1 end
if y == -1 then
y = 99
if not egg.AD_BC then
if TASK.lock('AD_BC') then
MSG.new('check', "We can travel to AD, to BC", 4.2)
egg.AD_BC = true
end
end
SCN.swapTo('main', 'swipeR', ('%02d%02d%02d'):format(y, m, d))
Expand All @@ -489,17 +486,15 @@ local function selectDate(option)
if m == 13 then m, y = 1, y + 1 end
if y == 100 then
y = 0
if not egg.AD_BC then
if TASK.lock('AD_BC') then
MSG.new('check', "We can travel to AD, to BC", 4.2)
egg.AD_BC = true
end
end
if ('%02d%02d%02d'):format(y, m, d) <= os.date('!%y%m%d') then
SCN.swapTo('main', 'swipeL', ('%02d%02d%02d'):format(y, m, d))
else
if not egg.back_to_future then
if TASK.lock('back_to_future') then
MSG.new('check', "Back To The Future", 4.2)
egg.back_to_future = true
end
end
elseif option == 'now' then
Expand Down

0 comments on commit eb7a123

Please sign in to comment.