From 027874d4cf8a2b5891314827920cdc594fddc214 Mon Sep 17 00:00:00 2001
From: DismissedLight <1686188646@qq.com>
Date: Mon, 20 Feb 2023 19:38:48 +0800
Subject: [PATCH] adjust avatar reliquary score weight
---
.../Snap.Hutao/Core/Setting/Localization.cs | 2 +
.../Snap.Hutao/Model/Metadata/AvatarIds.cs | 4 +-
.../Service/AvatarInfo/Factory/AffixWeight.cs | 48 +++++++-------
.../Factory/ReliquaryWeightConfiguration.cs | 62 ++++++++++---------
4 files changed, 62 insertions(+), 54 deletions(-)
diff --git a/src/Snap.Hutao/Snap.Hutao/Core/Setting/Localization.cs b/src/Snap.Hutao/Snap.Hutao/Core/Setting/Localization.cs
index 86d4bab4..d402b38a 100644
--- a/src/Snap.Hutao/Snap.Hutao/Core/Setting/Localization.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Core/Setting/Localization.cs
@@ -2,6 +2,7 @@
// Licensed under the MIT license.
using System.Globalization;
+using Windows.Globalization;
namespace Snap.Hutao.Core.Setting;
@@ -19,5 +20,6 @@ internal static class Localization
CultureInfo cultureInfo = CultureInfo.CreateSpecificCulture(culture);
CultureInfo.CurrentCulture = cultureInfo;
CultureInfo.CurrentUICulture = cultureInfo;
+ ApplicationLanguages.PrimaryLanguageOverride = culture;
}
}
\ No newline at end of file
diff --git a/src/Snap.Hutao/Snap.Hutao/Model/Metadata/AvatarIds.cs b/src/Snap.Hutao/Snap.Hutao/Model/Metadata/AvatarIds.cs
index 9ba8f191..c76b8197 100644
--- a/src/Snap.Hutao/Snap.Hutao/Model/Metadata/AvatarIds.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Model/Metadata/AvatarIds.cs
@@ -63,7 +63,7 @@ internal static class AvatarIds
public static readonly AvatarId Sara = 10000056;
public static readonly AvatarId Itto = 10000057;
public static readonly AvatarId Yae = 10000058;
- public static readonly AvatarId Heizou = 10000059;
+ public static readonly AvatarId Heizo = 10000059;
public static readonly AvatarId Yelan = 10000060;
public static readonly AvatarId Aloy = 10000062;
@@ -83,6 +83,8 @@ internal static class AvatarIds
public static readonly AvatarId Faruzan = 10000076;
public static readonly AvatarId Yaoyao = 10000077;
public static readonly AvatarId Alhaitham = 10000078;
+ public static readonly AvatarId Dehya = 10000079;
+ public static readonly AvatarId Mika = 10000080;
///
/// 检查该角色是否为主角
diff --git a/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/AffixWeight.cs b/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/AffixWeight.cs
index 59dd426b..7ca3cdaa 100644
--- a/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/AffixWeight.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/AffixWeight.cs
@@ -16,38 +16,38 @@ internal sealed class AffixWeight : Dictionary
/// 构造一个新的词条权重
///
/// 角色Id
- /// 大生命
- /// 大攻击
- /// 大防御
- /// 暴击率
- /// 暴击伤害
- /// 元素精通
- /// 充能效率
- /// 治疗加成
+ /// 大生命
+ /// 大攻击
+ /// 大防御
+ /// 暴击率
+ /// 暴击伤害
+ /// 元素精通
+ /// 充能效率
+ /// 治疗加成
/// 名称
public AffixWeight(
int avatarId,
- double hpPercent,
- double attackPercenr,
- double defensePercent,
- double critical,
- double criticalHurt,
- double elementMastery,
- double chargeEfficiency,
- double healAdd,
+ double hp,
+ double atk,
+ double def,
+ double crit,
+ double critHurt,
+ double mastery,
+ double charge,
+ double heal,
string name = "通用")
{
AvatarId = avatarId;
Name = name;
- this[FightProperty.FIGHT_PROP_HP_PERCENT] = hpPercent;
- this[FightProperty.FIGHT_PROP_ATTACK_PERCENT] = attackPercenr;
- this[FightProperty.FIGHT_PROP_DEFENSE_PERCENT] = defensePercent;
- this[FightProperty.FIGHT_PROP_CRITICAL] = critical;
- this[FightProperty.FIGHT_PROP_CRITICAL_HURT] = criticalHurt;
- this[FightProperty.FIGHT_PROP_ELEMENT_MASTERY] = elementMastery;
- this[FightProperty.FIGHT_PROP_CHARGE_EFFICIENCY] = chargeEfficiency;
- this[FightProperty.FIGHT_PROP_HEAL_ADD] = healAdd;
+ this[FightProperty.FIGHT_PROP_HP_PERCENT] = hp;
+ this[FightProperty.FIGHT_PROP_ATTACK_PERCENT] = atk;
+ this[FightProperty.FIGHT_PROP_DEFENSE_PERCENT] = def;
+ this[FightProperty.FIGHT_PROP_CRITICAL] = crit;
+ this[FightProperty.FIGHT_PROP_CRITICAL_HURT] = critHurt;
+ this[FightProperty.FIGHT_PROP_ELEMENT_MASTERY] = mastery;
+ this[FightProperty.FIGHT_PROP_CHARGE_EFFICIENCY] = charge;
+ this[FightProperty.FIGHT_PROP_HEAL_ADD] = heal;
}
///
diff --git a/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/ReliquaryWeightConfiguration.cs b/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/ReliquaryWeightConfiguration.cs
index c0e67bcc..36f834c5 100644
--- a/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/ReliquaryWeightConfiguration.cs
+++ b/src/Snap.Hutao/Snap.Hutao/Service/AvatarInfo/Factory/ReliquaryWeightConfiguration.cs
@@ -20,67 +20,71 @@ internal static class ReliquaryWeightConfiguration
///
public static readonly List AffixWeights = new()
{
- new AffixWeight(AvatarIds.Ayaka, 0, 75, 0, 100, 100, 0, 0, 0).Cryo(),
- new AffixWeight(AvatarIds.Qin, 0, 75, 0, 100, 100, 0, 55, 100).Anemo(),
+ new AffixWeight(AvatarIds.Ayaka, 0, 75, 0, 100, 100, 0, 30, 0).Cryo(),
+ new AffixWeight(AvatarIds.Qin, 0, 75, 0, 100, 100, 0, 55, 100).Anemo().Phyiscal(),
new AffixWeight(AvatarIds.Lisa, 0, 75, 0, 100, 100, 75, 0, 0).Electro(),
new AffixWeight(AvatarIds.Barbara, 100, 50, 0, 50, 50, 0, 55, 100).Hydro(80),
new AffixWeight(AvatarIds.Barbara, 50, 75, 0, 100, 100, 0, 55, 100, "暴力奶妈").Hydro(),
- new AffixWeight(AvatarIds.Kaeya, 0, 75, 0, 100, 100, 0, 0, 0).Cryo(),
+ new AffixWeight(AvatarIds.Kaeya, 0, 75, 0, 100, 100, 0, 30, 0).Cryo().Phyiscal(),
new AffixWeight(AvatarIds.Diluc, 0, 75, 0, 100, 100, 75, 0, 0).Pyro(),
- new AffixWeight(AvatarIds.Razor, 0, 75, 0, 100, 100, 0, 0, 0).Electro(50).Phyiscal(),
- new AffixWeight(AvatarIds.Ambor, 0, 75, 0, 100, 100, 75, 0, 0).Pyro(),
+ new AffixWeight(AvatarIds.Razor, 0, 75, 0, 100, 100, 0, 0, 0).Electro().Phyiscal(),
+ new AffixWeight(AvatarIds.Ambor, 0, 75, 0, 100, 100, 75, 0, 0).Pyro().Phyiscal(),
new AffixWeight(AvatarIds.Venti, 0, 75, 0, 100, 100, 75, 55, 0).Anemo(),
new AffixWeight(AvatarIds.Xiangling, 0, 75, 0, 100, 100, 75, 55, 0).Pyro(),
new AffixWeight(AvatarIds.Beidou, 0, 75, 0, 100, 100, 75, 55, 0).Electro(),
new AffixWeight(AvatarIds.Xingqiu, 0, 75, 0, 100, 100, 0, 75, 0).Hydro(),
new AffixWeight(AvatarIds.Xiao, 0, 75, 0, 100, 100, 0, 55, 0).Anemo(),
new AffixWeight(AvatarIds.Ningguang, 0, 75, 0, 100, 100, 0, 30, 0).Geo(),
- new AffixWeight(AvatarIds.Klee, 0, 75, 0, 100, 100, 75, 0, 0).Pyro(),
- new AffixWeight(AvatarIds.Zhongli, 80, 75, 0, 100, 100, 0, 55, 0, "武神钟离").Geo().Phyiscal(50),
+ new AffixWeight(AvatarIds.Klee, 0, 75, 0, 100, 100, 75, 30, 0).Pyro(),
+ new AffixWeight(AvatarIds.Zhongli, 80, 75, 0, 100, 100, 0, 55, 0).Geo().Phyiscal(50),
new AffixWeight(AvatarIds.Zhongli, 100, 55, 0, 100, 100, 0, 55, 0, "血牛钟离").Geo(75),
new AffixWeight(AvatarIds.Zhongli, 100, 55, 0, 100, 100, 0, 75, 0, "血牛钟离(2命+)").Geo(75),
- new AffixWeight(AvatarIds.Fischl, 0, 75, 0, 100, 100, 0, 0, 0).Electro(),
- new AffixWeight(AvatarIds.Bennett, 100, 50, 0, 100, 100, 0, 55, 100).Pyro(70),
- new AffixWeight(AvatarIds.Tartaglia, 0, 75, 0, 100, 100, 75, 0, 0).Hydro(),
+ new AffixWeight(AvatarIds.Fischl, 0, 75, 0, 100, 100, 75, 0, 0).Electro().Phyiscal(60),
+ new AffixWeight(AvatarIds.Bennett, 100, 50, 0, 100, 100, 0, 55, 100).Pyro(80),
+ new AffixWeight(AvatarIds.Tartaglia, 0, 75, 0, 100, 100, 75, 30, 0).Hydro(),
new AffixWeight(AvatarIds.Noel, 0, 50, 90, 100, 100, 0, 70, 0).Geo(),
- new AffixWeight(AvatarIds.Qiqi, 0, 100, 0, 100, 100, 0, 55, 100).Cryo(60),
+ new AffixWeight(AvatarIds.Qiqi, 0, 75, 0, 100, 100, 0, 55, 100).Cryo().Phyiscal(),
new AffixWeight(AvatarIds.Chongyun, 0, 75, 0, 100, 100, 75, 55, 0).Cryo(),
new AffixWeight(AvatarIds.Ganyu, 0, 75, 0, 100, 100, 75, 0, 0, "融化流").Cryo(),
new AffixWeight(AvatarIds.Ganyu, 0, 75, 0, 100, 100, 0, 55, 0, "永冻流").Cryo(),
new AffixWeight(AvatarIds.Albedo, 0, 0, 100, 100, 100, 0, 0, 0).Geo(),
new AffixWeight(AvatarIds.Diona, 100, 50, 0, 50, 50, 0, 90, 100).Cryo(),
new AffixWeight(AvatarIds.Mona, 0, 75, 0, 100, 100, 75, 75, 0).Hydro(),
- new AffixWeight(AvatarIds.Keqing, 0, 75, 0, 100, 100, 0, 0, 0).Electro().Phyiscal(),
- new AffixWeight(AvatarIds.Sucrose, 0, 75, 0, 100, 100, 100, 55, 0).Anemo(40),
- new AffixWeight(AvatarIds.Xinyan, 0, 75, 0, 100, 100, 0, 0, 0).Pyro(50),
- new AffixWeight(AvatarIds.Rosaria, 0, 75, 0, 100, 100, 0, 0, 0).Cryo(70).Phyiscal(80),
+ new AffixWeight(AvatarIds.Keqing, 0, 75, 0, 100, 100, 75, 0, 0).Electro().Phyiscal(),
+ new AffixWeight(AvatarIds.Sucrose, 0, 75, 0, 100, 100, 100, 55, 0).Anemo(75),
+ new AffixWeight(AvatarIds.Xinyan, 0, 75, 75, 100, 100, 0, 0, 0).Pyro().Phyiscal(),
+ new AffixWeight(AvatarIds.Rosaria, 0, 75, 0, 100, 100, 0, 30, 0).Cryo(70).Phyiscal(80),
new AffixWeight(AvatarIds.Hutao, 80, 50, 0, 100, 100, 75, 0, 0).Pyro(),
new AffixWeight(AvatarIds.Kazuha, 0, 75, 0, 100, 100, 100, 55, 0).Anemo(),
- new AffixWeight(AvatarIds.Feiyan, 0, 75, 0, 100, 100, 75, 0, 0).Pyro(),
+ new AffixWeight(AvatarIds.Feiyan, 0, 75, 0, 100, 100, 75, 30, 0).Pyro(),
new AffixWeight(AvatarIds.Yoimiya, 0, 75, 0, 100, 100, 75, 0, 0).Pyro(),
- new AffixWeight(AvatarIds.Tohma, 100, 50, 0, 50, 50, 0, 90, 0).Pyro(75),
+ new AffixWeight(AvatarIds.Tohma, 90, 55, 0, 90, 90, 0, 55, 0).Pyro(90),
new AffixWeight(AvatarIds.Eula, 0, 75, 0, 100, 100, 0, 55, 0).Cryo(40).Phyiscal(100),
new AffixWeight(AvatarIds.Shougun, 0, 75, 0, 100, 100, 0, 90, 0).Electro(75),
- new AffixWeight(AvatarIds.Sayu, 0, 50, 0, 50, 50, 100, 55, 100).Anemo(80),
+ new AffixWeight(AvatarIds.Sayu, 0, 75, 0, 100, 100, 100, 55, 100).Anemo(),
new AffixWeight(AvatarIds.Kokomi, 100, 50, 0, 0, 0, 0, 55, 100).Hydro(),
- new AffixWeight(AvatarIds.Gorou, 0, 50, 100, 50, 50, 0, 90, 0).Geo(25),
+ new AffixWeight(AvatarIds.Gorou, 0, 75, 100, 50, 50, 0, 75, 0).Geo(25),
new AffixWeight(AvatarIds.Sara, 0, 75, 0, 100, 100, 0, 55, 0).Electro(),
new AffixWeight(AvatarIds.Itto, 0, 50, 100, 100, 100, 0, 30, 0).Geo(),
new AffixWeight(AvatarIds.Yae, 0, 75, 0, 100, 100, 75, 55, 0).Electro(),
- new AffixWeight(AvatarIds.Heizou, 0, 75, 0, 100, 100, 75, 0, 0).Anemo(),
- new AffixWeight(AvatarIds.Yelan, 80, 0, 0, 100, 100, 0, 75, 0).Hydro(),
+ new AffixWeight(AvatarIds.Heizo, 0, 75, 0, 100, 100, 75, 30, 0).Anemo(),
+ new AffixWeight(AvatarIds.Yelan, 80, 0, 0, 100, 100, 0, 55, 0).Hydro(),
new AffixWeight(AvatarIds.Aloy, 0, 75, 0, 100, 100, 0, 0, 0).Cryo(),
new AffixWeight(AvatarIds.Shenhe, 0, 100, 0, 100, 100, 0, 55, 0).Cryo(),
- new AffixWeight(AvatarIds.Yunjin, 0, 0, 100, 50, 50, 0, 90, 0).Geo(25),
+ new AffixWeight(AvatarIds.Yunjin, 0, 75, 100, 80, 80, 0, 80, 0).Geo(80),
new AffixWeight(AvatarIds.Shinobu, 100, 50, 0, 100, 100, 75, 55, 100).Electro(),
- new AffixWeight(AvatarIds.Ayato, 50, 75, 0, 100, 100, 0, 0, 0).Hydro(),
- new AffixWeight(AvatarIds.Collei, 0, 75, 0, 100, 100, 0, 55, 0).Dendro(),
- new AffixWeight(AvatarIds.Dori, 100, 75, 0, 100, 100, 0, 55, 0).Electro(),
- new AffixWeight(AvatarIds.Tighnari, 0, 75, 0, 100, 100, 75, 55, 0).Dendro(),
- new AffixWeight(AvatarIds.Nilou, 100, 75, 0, 100, 100, 0, 55, 0, "直伤流").Hydro(),
- new AffixWeight(AvatarIds.Nilou, 100, 75, 0, 100, 100, 0, 55, 0, "反应流").Hydro(),
+ new AffixWeight(AvatarIds.Ayato, 50, 75, 0, 100, 100, 0, 30, 0).Hydro(),
+ new AffixWeight(AvatarIds.Collei, 0, 75, 0, 100, 100, 75, 30, 0).Dendro(),
+ new AffixWeight(AvatarIds.Dori, 75, 75, 0, 100, 100, 0, 55, 100).Electro(75),
+ new AffixWeight(AvatarIds.Tighnari, 0, 75, 0, 100, 100, 90, 30, 0).Dendro(),
+ new AffixWeight(AvatarIds.Nilou, 100, 0, 0, 100, 100, 80, 30, 0).Hydro(),
new AffixWeight(AvatarIds.Cyno, 0, 75, 0, 100, 100, 75, 55, 0).Electro(),
- new AffixWeight(AvatarIds.Candace, 100, 75, 0, 100, 100, 0, 55, 0).Hydro(),
+ new AffixWeight(AvatarIds.Candace, 75, 75, 0, 100, 100, 0, 55, 0).Hydro(),
new AffixWeight(AvatarIds.Nahida, 0, 55, 0, 100, 100, 100, 55, 0).Dendro(),
+ new AffixWeight(AvatarIds.Layla, 100, 75, 0, 100, 100, 0, 35, 0).Cryo(),
+ new AffixWeight(AvatarIds.Wanderer, 0, 80, 0, 100, 100, 0, 35, 0).Anemo(),
+ new AffixWeight(AvatarIds.Faruzan, 0, 75, 0, 100, 100, 0, 75, 0).Anemo(),
+ new AffixWeight(AvatarIds.Yaoyao, 100, 75, 0, 100, 100, 75, 75, 100).Dendro(),
+ new AffixWeight(AvatarIds.Alhaitham, 0, 75, 0, 100, 100, 100, 35, 0).Dendro(),
};
}
\ No newline at end of file