更新部分角色遗器评分

This commit is contained in:
a376148946 2023-10-23 15:29:34 +08:00
parent 5bb6d0aff3
commit 6aabc82254
21 changed files with 57730 additions and 55614 deletions

View File

@ -1,7 +1,7 @@
import re
from pathlib import Path
from typing import Tuple, cast
import asyncio
from PIL import Image
from gsuid_core.sv import SV
from gsuid_core.bot import Bot
@ -20,7 +20,6 @@ from ..utils.resource.RESOURCE_PATH import TEMP_PATH
sv_char_info_config = SV('sr面板设置', pm=2)
sv_get_char_info = SV('sr面板查询', priority=10)
sv_get_sr_original_pic = SV('sr查看面板原图', priority=5)
sv_char_damage_cal = SV('sr伤害计算')
@sv_get_char_info.on_prefix(f'{PREFIX}查询')
async def send_char_info(bot: Bot, ev: Event):

View File

@ -302,7 +302,7 @@ async def draw_char_img(char_data: Dict, sr_uid: str, msg: str):
if rank < char.char_rank:
rank_img = Image.open(
SKILL_PATH / f'{char.char_id}{RANK_MAP[rank + 1]}'
).resize((50, 50))
).convert('RGBA').resize((50, 50))
rank_bg.paste(rank_img, (19, 19), rank_img)
char_info.paste(rank_bg, (20 + rank * 80, 630), rank_bg)
else:
@ -328,7 +328,7 @@ async def draw_char_img(char_data: Dict, sr_uid: str, msg: str):
skill_img = Image.open(
SKILL_PATH / f'{char.char_id}_'
f'{skill_type_map[skill["skillAttackType"]][1]}.png'
).resize((55, 55))
).convert('RGBA').resize((55, 55))
skill_panel_img.paste(skill_img, (18, 15), skill_img)
skill_panel_img.paste(skill_attr_img, (80, 10), skill_attr_img)
skill_panel_img_draw = ImageDraw.Draw(skill_panel_img)
@ -781,13 +781,13 @@ async def get_relic_score(
if weight_dict == {}:
return 0
if is_main:
elementlist = ['Quantum', 'Thunder', 'Wind', 'Physical', 'Imaginary', 'Ice', 'Fire']
if relicType in [3, 4, 5, 6]:
if subProperty.__contains__('AddedRatio') and relicType == 5:
if subProperty.split('AddedRatio')[0] in elementlist:
subProperty = 'AttributeAddedRatio'
if weight_dict.get(subProperty, 0) > 0:
relic_score += 5.83
if relicType in [3, 5]:
relic_score += 10
else:
if subProperty == 'CriticalDamageBase':
add_value = subValue * 1 * weight_dict['CriticalDamageBase'] * 100

View File

@ -12576,5 +12576,336 @@
"Value": 125
}
}
},
"1302": {
"0": {
"AvatarID": 1302,
"Promotion": 0,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 4000
},
{
"ItemID": 111001,
"ItemNum": 5
}
],
"MaxLevel": 20,
"PlayerLevelRequire": 15,
"AttackBase": {
"Value": 100.32
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 49.5
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 142.56
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
},
"1": {
"AvatarID": 1302,
"Promotion": 1,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 8000
},
{
"ItemID": 111001,
"ItemNum": 10
}
],
"MaxLevel": 30,
"WorldLevelRequire": 1,
"AttackBase": {
"Value": 140.448
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 69.3
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 199.584
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
},
"2": {
"AvatarID": 1302,
"Promotion": 2,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 16000
},
{
"ItemID": 110411,
"ItemNum": 3
},
{
"ItemID": 111002,
"ItemNum": 6
}
],
"MaxLevel": 40,
"WorldLevelRequire": 2,
"AttackBase": {
"Value": 180.576
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 89.1
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 256.608
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
},
"3": {
"AvatarID": 1302,
"Promotion": 3,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 40000
},
{
"ItemID": 110411,
"ItemNum": 7
},
{
"ItemID": 111002,
"ItemNum": 9
}
],
"MaxLevel": 50,
"WorldLevelRequire": 3,
"AttackBase": {
"Value": 220.704
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 108.9
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 313.632
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
},
"4": {
"AvatarID": 1302,
"Promotion": 4,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 80000
},
{
"ItemID": 110411,
"ItemNum": 20
},
{
"ItemID": 111003,
"ItemNum": 6
}
],
"MaxLevel": 60,
"WorldLevelRequire": 4,
"AttackBase": {
"Value": 260.832
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 128.7
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 370.656
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
},
"5": {
"AvatarID": 1302,
"Promotion": 5,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 160000
},
{
"ItemID": 110411,
"ItemNum": 35
},
{
"ItemID": 111003,
"ItemNum": 9
}
],
"MaxLevel": 70,
"WorldLevelRequire": 5,
"AttackBase": {
"Value": 300.96
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 148.5
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 427.68
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
},
"6": {
"AvatarID": 1302,
"Promotion": 6,
"PromotionCostList": [],
"MaxLevel": 80,
"WorldLevelRequire": 5,
"AttackBase": {
"Value": 341.088
},
"AttackAdd": {
"Value": 5.016
},
"DefenceBase": {
"Value": 168.3
},
"DefenceAdd": {
"Value": 2.475
},
"HPBase": {
"Value": 484.704
},
"HPAdd": {
"Value": 7.128
},
"SpeedBase": {
"Value": 103
},
"CriticalChance": {
"Value": 0.05
},
"CriticalDamage": {
"Value": 0.5
},
"BaseAggro": {
"Value": 75
}
}
}
}

View File

@ -19576,5 +19576,256 @@
"Value": 2.700000000651926
}
}
},
"23018": {
"0": {
"EquipmentID": 23018,
"Promotion": 0,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 5000
},
{
"ItemID": 111001,
"ItemNum": 8
}
],
"MaxLevel": 20,
"PlayerLevelRequire": 15,
"BaseAttack": {
"Value": 26.4
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 21
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 48
},
"BaseHPAdd": {
"Value": 7.2
}
},
"1": {
"EquipmentID": 23018,
"Promotion": 1,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 10000
},
{
"ItemID": 110131,
"ItemNum": 4
},
{
"ItemID": 111001,
"ItemNum": 12
}
],
"MaxLevel": 30,
"WorldLevelRequire": 1,
"BaseAttack": {
"Value": 58.08
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 46.2
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 105.6
},
"BaseHPAdd": {
"Value": 7.2
}
},
"2": {
"EquipmentID": 23018,
"Promotion": 2,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 20000
},
{
"ItemID": 110132,
"ItemNum": 4
},
{
"ItemID": 111002,
"ItemNum": 8
}
],
"MaxLevel": 40,
"WorldLevelRequire": 2,
"BaseAttack": {
"Value": 100.32
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 79.8
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 182.4
},
"BaseHPAdd": {
"Value": 7.2
}
},
"3": {
"EquipmentID": 23018,
"Promotion": 3,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 50000
},
{
"ItemID": 110132,
"ItemNum": 8
},
{
"ItemID": 111002,
"ItemNum": 12
}
],
"MaxLevel": 50,
"WorldLevelRequire": 3,
"BaseAttack": {
"Value": 142.56
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 113.4
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 259.2
},
"BaseHPAdd": {
"Value": 7.2
}
},
"4": {
"EquipmentID": 23018,
"Promotion": 4,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 100000
},
{
"ItemID": 110133,
"ItemNum": 5
},
{
"ItemID": 111003,
"ItemNum": 6
}
],
"MaxLevel": 60,
"WorldLevelRequire": 4,
"BaseAttack": {
"Value": 184.8
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 147
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 336
},
"BaseHPAdd": {
"Value": 7.2
}
},
"5": {
"EquipmentID": 23018,
"Promotion": 5,
"PromotionCostList": [
{
"ItemID": 2,
"ItemNum": 200000
},
{
"ItemID": 110133,
"ItemNum": 10
},
{
"ItemID": 111003,
"ItemNum": 8
}
],
"MaxLevel": 70,
"WorldLevelRequire": 5,
"BaseAttack": {
"Value": 227.04
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 180.6
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 412.8
},
"BaseHPAdd": {
"Value": 7.2
}
},
"6": {
"EquipmentID": 23018,
"Promotion": 6,
"PromotionCostList": [],
"MaxLevel": 80,
"WorldLevelRequire": 5,
"BaseAttack": {
"Value": 269.28
},
"BaseAttackAdd": {
"Value": 3.96
},
"BaseDefence": {
"Value": 214.2
},
"BaseDefenceAdd": {
"Value": 3.15
},
"BaseHP": {
"Value": 489.6
},
"BaseHPAdd": {
"Value": 7.2
}
}
}
}

View File

@ -3860,5 +3860,69 @@
}
]
]
},
"23018": {
"id": "23018",
"skill": "骑士巡礼",
"desc": "使装备者的暴击伤害提高<color=#f29e38ff><unbreak>#1[i]%</unbreak></color>。当装备者施放终结技时,根据装备者的能量上限,提高装备者终结技造成的伤害:每点能量提高<color=#f29e38ff><unbreak>#2[f2]%</unbreak></color>,最多计入<unbreak>#3[i]</unbreak>点。",
"params": [
[
0.36,
0.0036,
180
],
[
0.42,
0.0042,
180
],
[
0.48,
0.0048,
180
],
[
0.54,
0.0054,
180
],
[
0.6,
0.006,
180
]
],
"properties": [
[
{
"type": "CriticalDamageBase",
"value": 0.36
}
],
[
{
"type": "CriticalDamageBase",
"value": 0.42
}
],
[
{
"type": "CriticalDamageBase",
"value": 0.48
}
],
[
{
"type": "CriticalDamageBase",
"value": 0.54
}
],
[
{
"type": "CriticalDamageBase",
"value": 0.6
}
]
]
}
}

View File

@ -37,21 +37,21 @@
},
{
"role": "布洛妮娅",
"HPDelta": 0.0,
"HPAddedRatio": 0.0,
"AttackDelta": 0.75,
"AttackAddedRatio": 0.75,
"DefenceDelta": 0.0,
"DefenceAddedRatio": 0.0,
"HPDelta": 0.75,
"HPAddedRatio": 0.75,
"AttackDelta": 0.5,
"AttackAddedRatio": 0.5,
"DefenceDelta": 0.5,
"DefenceAddedRatio": 0.5,
"SpeedDelta": 1.0,
"CriticalChanceBase": 0,
"CriticalDamageBase": 0,
"CriticalDamageBase": 1.0,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 0,
"SPRatio": 1.0,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 0.0,
"AttributeAddedRatio": 1
"StatusResistanceBase": 0.5,
"AttributeAddedRatio": 0.0
},
{
"role": "杰帕德",
@ -106,6 +106,24 @@
"StatusProbabilityBase": 1.0,
"StatusResistanceBase": 0.0,
"AttributeAddedRatio": 1
},
{
"role": "卡芙卡",
"HPDelta": 0.0,
"HPAddedRatio": 0.0,
"AttackDelta": 1.0,
"AttackAddedRatio": 1.0,
"DefenceDelta": 0.0,
"DefenceAddedRatio": 0.0,
"SpeedDelta": 1.0,
"CriticalChanceBase": 0.5,
"CriticalDamageBase": 0.0,
"BreakDamageAddedRatioBase": 0.5,
"HealRatio": 0,
"SPRatio": 0.5,
"StatusProbabilityBase": 0.75,
"StatusResistanceBase": 0.0,
"AttributeAddedRatio": 1
},
{
"role": "彦卿",
@ -151,15 +169,105 @@
"AttackAddedRatio": 0.0,
"DefenceDelta": 0.5,
"DefenceAddedRatio": 0.5,
"SpeedDelta": 0.75,
"SpeedDelta": 1.0,
"CriticalChanceBase": 0,
"CriticalDamageBase": 0,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 1,
"SPRatio": 1.0,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 0.5,
"StatusResistanceBase": 0.75,
"AttributeAddedRatio": 0
},
{
"role": "玲可",
"HPDelta": 1.0,
"HPAddedRatio": 1.0,
"AttackDelta": 0.0,
"AttackAddedRatio": 0.0,
"DefenceDelta": 0.5,
"DefenceAddedRatio": 0.5,
"SpeedDelta": 1.0,
"CriticalChanceBase": 0,
"CriticalDamageBase": 0,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 1,
"SPRatio": 1.0,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 0.75,
"AttributeAddedRatio": 0
},
{
"role": "符玄",
"HPDelta": 1.0,
"HPAddedRatio": 1.0,
"AttackDelta": 0.0,
"AttackAddedRatio": 0.0,
"DefenceDelta": 0.5,
"DefenceAddedRatio": 0.5,
"SpeedDelta": 1.0,
"CriticalChanceBase": 0,
"CriticalDamageBase": 0,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 0.0,
"SPRatio": 0.1,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 1.0,
"AttributeAddedRatio": 0
},
{
"role": "罗刹",
"HPDelta": 0.75,
"HPAddedRatio": 0.75,
"AttackDelta": 1.0,
"AttackAddedRatio": 1.0,
"DefenceDelta": 0.0,
"DefenceAddedRatio": 0.0,
"SpeedDelta": 1.0,
"CriticalChanceBase": 0,
"CriticalDamageBase": 0,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 1,
"SPRatio": 1,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 0.75,
"AttributeAddedRatio": 0
},
{
"role": "桂乃芬",
"HPDelta": 0.0,
"HPAddedRatio": 0.0,
"AttackDelta": 0.75,
"AttackAddedRatio": 0.75,
"DefenceDelta": 0.0,
"DefenceAddedRatio": 0.0,
"SpeedDelta": 0.75,
"CriticalChanceBase": 1,
"CriticalDamageBase": 1,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 0,
"SPRatio": 1,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 0.0,
"AttributeAddedRatio": 1
},
{
"role": "驭空",
"HPDelta": 0.0,
"HPAddedRatio": 0.0,
"AttackDelta": 0.5,
"AttackAddedRatio": 0.5,
"DefenceDelta": 0.0,
"DefenceAddedRatio": 0.0,
"SpeedDelta": 1.0,
"CriticalChanceBase": 1,
"CriticalDamageBase": 1,
"BreakDamageAddedRatioBase": 0.0,
"HealRatio": 0,
"SPRatio": 1,
"StatusProbabilityBase": 0.0,
"StatusResistanceBase": 0.0,
"AttributeAddedRatio": 1
},
{
"role": "克拉拉",

View File

@ -1994,5 +1994,47 @@
}
}
]
},
"23018": {
"1": [
{
"PropertyType": "CriticalDamageBase",
"Value": {
"Value": 0.36
}
}
],
"2": [
{
"PropertyType": "CriticalDamageBase",
"Value": {
"Value": 0.42
}
}
],
"3": [
{
"PropertyType": "CriticalDamageBase",
"Value": {
"Value": 0.48
}
}
],
"4": [
{
"PropertyType": "CriticalDamageBase",
"Value": {
"Value": 0.54
}
}
],
"5": [
{
"PropertyType": "CriticalDamageBase",
"Value": {
"Value": 0.6
}
}
]
}
}

View File

@ -76,5 +76,6 @@
"24001": "CruisingintheStellarSea",
"24002": "TextureofMemories",
"21025": "PastandFuture",
"24003": "SolitaryHealing"
"24003": "SolitaryHealing",
"23018": "AnInstanceForeverCherished"
}

View File

@ -76,5 +76,6 @@
"24001": "星海巡航",
"24002": "记忆的质料",
"21025": "过往未来",
"24003": "孤独的疗愈"
"24003": "孤独的疗愈",
"23018": "片刻,留在眼底"
}

View File

@ -76,5 +76,6 @@
"24000": 5,
"24001": 5,
"24002": 5,
"24003": 5
"24003": 5,
"23018": 5
}

View File

@ -36,5 +36,6 @@
"8001": "Physical",
"8002": "Physical",
"8003": "Fire",
"8004": "Fire"
"8004": "Fire",
"1302": "Physical"
}

View File

@ -36,5 +36,6 @@
"8001": "{NICKNAME}",
"8002": "{NICKNAME}",
"8003": "{NICKNAME}",
"8004": "{NICKNAME}"
"8004": "{NICKNAME}",
"1302": "Argenti"
}

View File

@ -36,5 +36,6 @@
"8001": "开拓者",
"8002": "开拓者",
"8003": "开拓者",
"8004": "开拓者"
"8004": "开拓者",
"1302": "银枝"
}

View File

@ -36,5 +36,6 @@
"8001": "5",
"8002": "5",
"8003": "5",
"8004": "5"
"8004": "5",
"1302": "5"
}

View File

@ -36,5 +36,6 @@
"8001": "5",
"8002": "5",
"8003": "5",
"8004": "5"
"8004": "5",
"1302": "5"
}

View File

@ -966,5 +966,33 @@
"num": 1
}
],
"800406": []
"800406": [],
"130201": [],
"130202": [],
"130203": [
{
"id": "130202",
"num": 2
},
{
"id": "130204",
"num": 2
}
],
"130204": [],
"130205": [
{
"id": "130201",
"num": 1
},
{
"id": "130203",
"num": 2
},
{
"id": "130214",
"num": 2
}
],
"130206": []
}

View File

@ -226,5 +226,11 @@
"800403": "砌造未来的蓝图",
"800404": "驻留文明的誓言",
"800405": "点燃光焰的勇气",
"800406": "永屹城垣的壁垒"
"800406": "永屹城垣的壁垒",
"130201": "审美王国的缺口",
"130202": "玛瑙石的谦卑",
"130203": "荆棘路的荣光",
"130204": "号角的奉献",
"130205": "宇宙某处的雪",
"130206": "「你」的光芒"
}

View File

@ -242,5 +242,11 @@
"121201": "Normal",
"121209": "BPSkill",
"121206": "MazeNormal",
"121207": "Maze"
"121207": "Maze",
"130201": "Normal",
"130202": "BPSkill",
"130203": "Ultra",
"130214": "Ultra",
"130204": "",
"130207": "Maze"
}

View File

@ -242,5 +242,11 @@
"121201": "流影方晖",
"121209": "寒川映月",
"121206": "攻击",
"121207": "古镜照神"
"121207": "古镜照神",
"130201": "芬芳一现",
"130202": "公正,此处盛放",
"130203": "驻于花庭,赐与尽美",
"130214": "驻「我」华庭,授予至勋",
"130204": "崇高的客体",
"130207": "纯粹高洁宣言"
}

View File

@ -242,5 +242,11 @@
"121201": "单攻",
"121209": "扩散",
"121206": "",
"121207": "妨害"
"121207": "妨害",
"130201": "单攻",
"130202": "群攻",
"130203": "群攻",
"130214": "群攻",
"130204": "强化",
"130207": "妨害"
}