Merge branch 'master' of github.com:CMHopeSunshine/LittlePaimon

This commit is contained in:
CMHopeSunshine 2022-03-29 21:58:26 +08:00
commit 026f46a3ae

View File

@ -27,7 +27,8 @@ def get_chan_time(timeStamp1, timeStamp2):
date = dateArray1.strftime("%Y.%m.%d")
otherStyleTime1 = dateArray1.strftime("%H:%M:%S")
otherStyleTime2 = dateArray2.strftime("%H:%M:%S")
return date + otherStyleTime1 + '-' + otherStyleTime2
time_consumed = timeStamp2 - timeStamp1
return f'{date} {otherStyleTime1}-{otherStyleTime2} {str(time_consumed//60).rjust(2,"0")}{str(time_consumed%60).rjust(2,"0")}'
async def draw_abyss_floor_card(floor, floor_n):
floor_img = Image.open(os.path.join(res_path, 'abyss', f'floor{floor_n}_long.png')).convert('RGBA')