Skip to content

Commit

Permalink
v5.16
Browse files Browse the repository at this point in the history
  • Loading branch information
CHNZYX committed Aug 12, 2023
1 parent 0c46720 commit d415ede
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 27 deletions.
Binary file added imgs/maps/26105/init.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/maps/26105/map_4082_3965_.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/maps/26105/target.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified imgs/maps/67673/target.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 117 additions & 4 deletions info_example.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,124 @@
config:
order_text: [3, 5, 2, 7]
angle: 0.716653229418615
order_text:
- 3
- 5
- 2
- 7
angle: 0.4439925343477558
difficulty: 4
fate: 巡猎
map_sha: '139c15986c451404ed1903dccccb006f03a463d1'
map_sha: 139c15986c451404ed1903dccccb006f03a463d1
show_map_mode: 0
debug_mode: 0
speed_mode: 0
force_update: 0
timezone: Default
timezone: Default
prior:
奇物:
- 福灵胶
- 博士之袍
- 降维骰子
- 信仰债券
- 时空棱镜
- 朋克洛德
- 香涎干酪
存护:
- 零维强化
- 均晶转变
- 共晶反应
- 宏观偏析
- 超静定场
- 谐振传递
- 四棱锥体
- 聚塑
- 哨戒
- 亚共晶体
- 切变结构
- 弥合
- 迸裂晶格
记忆:
- 体验的富翁
- 全面记忆
- 第二次初恋
- 浮黎
- 缄默
- 纯真
- 难言的羞耻
- 怅然若失
- 麻木不仁
- 不寒而栗
- 特立独行
- 头晕目眩
- 多愁善感
- 沦浃肌髓
虚无:
- 局外人
- 苦难与阳光
- 怀疑的四重根
- 为何一切尚未消失
- 感官追奉者的葬礼
- 被装在套子里的人
- 旷野的呼告
- 存在的黄昏
- 火堆外的夜
- 知觉迷墙
- 虚妄贡品
- 日出之前
- 无根据颂歌
- 自欺咖啡馆
- 他人即地狱
- 开端与终结
丰饶:
- 诸行无常
- 诸法无我
- 一法界心
- 施诸愿印
- 延彼遐龄
- 厌离邪秽苦
- 天人不动众
- 宝光烛日月
- 明澈琉璃身
- 法雨
- 胜军
- 灭罪累生善
巡猎:
- 柘弓危矢
- 射不主皮
- 帝星君临
- 白矢决射御
- 云镝逐步离
- 彤弓素矰
- 背孤击虚
毁灭:
- 激变变星
- 极端氦闪
- 事件视界
- 寰宇热寂特征数
- 反物质非逆方程
- 戒律性闪变
- 危害性余光
- 毁灭性吸积
- 原生黑洞
- 轨道红移
- 预兆性景深
- 递增性末日
- 灾难性共振
- 破坏性耀发
- 偏振受体
- 永坍缩体
- 不稳定带
- 哨戒卫星
- 回光效应
欢愉:
- 末日狂欢
- 开盖有奖
- 茫茫白夜
- 众生安眠
- 阴风阵阵
- 被涂污的信天翁
- 十二猴子与怒汉
- 操行满分
- 基本有害
- 灰暗的火
- 第二十一条军规
- 流吧你的眼泪
25 changes: 6 additions & 19 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
import flet as ft

def main(page: ft.Page):
def theme_changed(e):
page.theme_mode = (
ft.ThemeMode.DARK
if page.theme_mode == ft.ThemeMode.LIGHT
else ft.ThemeMode.LIGHT
)
c.label = (
"Light theme" if page.theme_mode == ft.ThemeMode.LIGHT else "Dark theme"
)
page.update()

page.theme_mode = ft.ThemeMode.LIGHT
c = ft.Switch(label="Light theme", on_change=theme_changed)
page.add(c)

ft.app(target=main,view=ft.WEB_BROWSER)
import yaml
with open('info.yml', "r", encoding="utf-8",errors='ignore') as f:
config = yaml.safe_load(f)['prior']
print(config)
for i,j in enumerate(config):
print(i,j)
5 changes: 4 additions & 1 deletion utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def read(self):
self.save()

def save(self):
with open(self.text, "r", encoding="utf-8",errors='ignore') as f:
prior = yaml.safe_load(f)['prior']
with open(self.text, "w", encoding="utf-8") as f:
yaml.safe_dump({
"config":{
Expand All @@ -68,7 +70,8 @@ def save(self):
"speed_mode": self.speed_mode,
"force_update": self.force_update,
"timezone": self.timezone
}
},
"prior": prior
}, f, allow_unicode=True, sort_keys=False)


Expand Down
14 changes: 13 additions & 1 deletion utils/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,26 @@ def __init__(self,fate=4):
self.interacts = ['黑塔','区域','事件','退出','沉浸','紧锁','复活','下载','模拟']
self.fates = ["存护", "记忆", "虚无", "丰饶", "巡猎", "毁灭", "欢愉"]
self.prior_bless = ['火堆外的夜']
self.strange = ['福灵胶','博士之袍','降维骰子','信仰债券','时空棱镜','朋克洛德','香涎干酪']
self.strange = []
self.blesses = [[] for _ in range(7)]
self.strange = ['福灵胶','博士之袍','降维骰子','信仰债券','时空棱镜','朋克洛德','香涎干酪']
self.blesses[0] = ['零维强化','均晶转变','共晶反应','宏观偏析','超静定场','谐振传递','四棱锥体','聚塑','哨戒','亚共晶体','切变结构','弥合','迸裂晶格']
self.blesses[1] = ['体验的富翁','全面记忆','第二次初恋','浮黎','缄默','纯真','难言的羞耻','怅然若失','麻木不仁','不寒而栗','特立独行','头晕目眩','多愁善感','沦浃肌髓']
self.blesses[2] = ['苦难与阳光','怀疑的四重根','局外人','为何一切尚未消失','感官追奉者的葬礼','被装在套子里的人','旷野的呼告','存在的黄昏','火堆外的夜','知觉迷墙','虚妄贡品','日出之前','无根据颂歌','自欺咖啡馆','他人即地狱','开端与终结']
self.blesses[3] = ['诸行无常','诸法无我','一法界心','施诸愿印','延彼遐龄','厌离邪秽苦','天人不动众','宝光烛日月','明澈琉璃身','法雨','胜军','灭罪累生善']
self.blesses[4] = ['柘弓危矢','射不主皮','帝星君临','白矢决射御','云镝逐步离','彤弓素矰','背孤击虚']
self.blesses[5] = ['激变变星','极端氦闪','事件视界','寰宇热寂特征数','反物质非逆方程','戒律性闪变','危害性余光','毁灭性吸积','原生黑洞','轨道红移','预兆性景深','递增性末日','灾难性共振','破坏性耀发','偏振受体','永坍缩体','不稳定带','哨戒卫星','回光效应']
self.blesses[6] = ['末日狂欢','开盖有奖','茫茫白夜','众生安眠','阴风阵阵','被涂污的信天翁','十二猴子与怒汉','操行满分','基本有害','灰暗的火','第二十一条军规','流吧你的眼泪']
try:
import yaml
with open('info.yml', "r", encoding="utf-8",errors='ignore') as f:
config = yaml.safe_load(f)['prior']
for i,j in enumerate(config):
if i:
self.blesses[i-1] = config[j]
else:
self.strange = config[j]
except:
pass
self.prior_bless += self.blesses[fate]
self.strange = [self.fates[self.fate]+'火漆'] + self.strange
4 changes: 2 additions & 2 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,8 @@ def get_direc_only_minimap(self):
self.stop_move=1
pyautogui.keyUp("w")
pyautogui.click()
self.press('a',1.2)
self.press('d',0.4)
self.press('a',1.4)
self.press('d',0.3)
self.mini_state+=2
break
self.stop_move=1
Expand Down

0 comments on commit d415ede

Please sign in to comment.