mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-11 06:39:59 +08:00
Update map.py
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from configs.path_config import IMAGE_PATH, TEXT_PATH
|
from configs.path_config import IMAGE_PATH, TEXT_PATH, TEMP_PATH
|
||||||
from utils.image_utils import BuildImage
|
from utils.image_utils import BuildImage
|
||||||
from typing import Tuple, List
|
from typing import Tuple, List
|
||||||
from math import sqrt, pow
|
from math import sqrt, pow
|
||||||
@@ -118,7 +118,7 @@ class Map:
|
|||||||
self._generate_best_route()
|
self._generate_best_route()
|
||||||
self.map.crop((min_width, min_height, max_width, max_height))
|
self.map.crop((min_width, min_height, max_width, max_height))
|
||||||
rand = random.randint(1, 10000)
|
rand = random.randint(1, 10000)
|
||||||
self.map.save(f"{TEXT_PATH}/genshin_map_{rand}.png")
|
self.map.save(f"{TEMP_PATH}/genshin_map_{rand}.png")
|
||||||
return rand
|
return rand
|
||||||
|
|
||||||
# 资源数量
|
# 资源数量
|
||||||
|
|||||||
Reference in New Issue
Block a user