娱乐性地加计量单位

This commit is contained in:
zhbaor 2023-09-03 00:25:04 +08:00
parent 6371f3ca6f
commit e6d33ea173

View file

@ -7,6 +7,7 @@ import asyncio
import functools import functools
import re import re
from typing import Dict, Optional, Any from typing import Dict, Optional, Any
import math
rapid_ocr = None rapid_ocr = None
@ -118,10 +119,10 @@ class RIICReportAnalysis:
gold_avg += int(gold_list[i][1]) gold_avg += int(gold_list[i][1])
exp_avg += int(exp_list[i][1]) exp_avg += int(exp_list[i][1])
# output += f"【{date_list[i][1]}】\n" output += f"{date_list[i][1]}\n"
# output += f"💵 {lmb_list[2 * i][1]}订单({lmb_list[2 * i + 1][1]})\n" output += f"💵 {lmb_list[2 * i][1]}订单({lmb_list[2 * i + 1][1]})\n"
# output += f"🧈 {gold_list[i][1]}赤金\n" output += f"🧈 {gold_list[i][1]}赤金\n"
# output += f"📼 {exp_list[i][1]}经验\n\n" output += f"📼 {exp_list[i][1]}经验\n\n"
lmb_avg /= len(date_list) lmb_avg /= len(date_list)
order_avg /= len(date_list) order_avg /= len(date_list)
@ -179,27 +180,33 @@ class RIICReportAnalysis:
overflow_gold = gold_avg - balanced_gold overflow_gold = gold_avg - balanced_gold
more_exp = overflow_gold * 0.8 more_exp = overflow_gold * 0.8
balanced_exp = exp_avg + more_exp balanced_exp = exp_avg + more_exp
if power_plants == 2: lmb_exp_ratio = (lmb_avg + external_lmb) / (balanced_exp + external_exp)
lmb_exp_ratio = (lmb_avg + external_lmb) / ( total = (lmb_avg * 0.2 + gold_avg * 0.8 + exp_avg + 4000) / 10000
balanced_exp + external_exp gongsun = (lmb_avg * 1.6 + exp_avg) / 10000
) kaltsit = math.ceil((lmb_avg + gold_avg + exp_avg) / 10000)
else: stupid = (lmb_avg + exp_avg) / 10000
lmb_exp_ratio = (lmb_avg + external_lmb) / (exp_avg + external_exp)
total = lmb_avg + balanced_exp
output += "====计算结果====\n" output += "====计算结果====\n"
output += f"订单平均:{lmb_avg:.0f}\n" output += f"订单平均:{lmb_avg:.0f}\n"
output += f"赤金平均:{gold_avg:.0f}\n"
output += f"经验平均:{exp_avg:.0f}\n"
output += f"经验调平:{balanced_exp:.0f}\n" output += f"经验调平:{balanced_exp:.0f}\n"
output += f"钱书比例:{lmb_exp_ratio:.2f}\n" output += f"钱书比例:{lmb_exp_ratio:.2f}\n\n"
output += f"调平总和:{total:.0f}"
output += "======产能======\n"
output += f"{total:.1f}E\n"
output += f"{gongsun:.1f}\n"
output += f"{kaltsit:.0f}\n"
output += f"{stupid:.1f}\n"
await chain.onebot_reply(Text(output.strip())) await chain.onebot_reply(Text(output.strip()))
except: except Exception as e:
err_msg = "出错啦!\n" err_msg = "出错啦!\n"
err_msg += f"date_list = {date_list}\n" err_msg += f"date_list = {date_list}\n"
err_msg += f"lmb_list = {lmb_list}\n" err_msg += f"lmb_list = {lmb_list}\n"
err_msg += f"gold_list = {gold_list}\n" err_msg += f"gold_list = {gold_list}\n"
err_msg += f"exp_list = {exp_list}" err_msg += f"exp_list = {exp_list}\n"
err_msg += str(e)
await chain.onebot_reply(Text(err_msg), At("1040110848")) await chain.onebot_reply(Text(err_msg), At("1040110848"))