Skip to content

Commit fde927d

Browse files
Merge pull request #23 from Jonnyondafloor/timer/gods-chalice-chest-spawn
Added Gods Chalice Chest Spawn Timer
2 parents 4c26331 + 38456f4 commit fde927d

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Blox-Fruits-Timer-Overlay.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def check_hour():
187187

188188
notifications = Notifications(root)
189189

190-
from Timers import FruitRoll, CastleRaid, ElitePirate, FullMoon, SilverChest, GoldenChest, DiamondChest, FruitSpawn
190+
from Timers import FruitRoll, CastleRaid, ElitePirate, FullMoon, SilverChest, GoldenChest, DiamondChest, FruitSpawn, GodsChaliceChest
191191

192192
# Fruit
193193
Timer(root, FruitRoll.get_timer())
@@ -200,6 +200,7 @@ def check_hour():
200200
# Misc
201201
Timer(root, ElitePirate.get_timer())
202202
Timer(root, FullMoon.get_timer())
203+
Timer(root, GodsChaliceChest.get_timer())
203204

204205
_restock_notification(root)
205206

Images/GodsChaliceChest.png

509 KB
Loading

Timers/GodsChaliceChest.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from Timers import template
2+
import time
3+
4+
def delay_method(_):
5+
now = time.time()
6+
end = now + 4*60*60 # 4 hours
7+
return end
8+
9+
def reset_method(_):
10+
now = time.time()
11+
end = now + 4*60*60 # 4 hours
12+
return end
13+
14+
def get_timer():
15+
timer = template.Timer()
16+
timer.image_path = 'Images\\GodsChaliceChest.png'
17+
timer.title = 'The Chalice has Spawned'
18+
timer.description = 'The Gods Chalice has Spawned in a chest.\nits time for a Treasure hunt :>'
19+
timer.auto_reset_delay = 0
20+
timer.delay_method = delay_method
21+
timer.reset_method = reset_method
22+
return timer

0 commit comments

Comments
 (0)