diff --git a/path/ClanMemberPath.cs b/path/ClanMemberPath.cs
index f0b0c6a..5e95d1e 100644
--- a/path/ClanMemberPath.cs
+++ b/path/ClanMemberPath.cs
@@ -1,9 +1,4 @@
using HarmonyLib;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TaleWorlds.CampaignSystem.ViewModelCollection.ClanManagement.Categories;
namespace CharacterReload.path
diff --git a/resource/GUI/Prefabs/Clan/ClanMembers.xml b/resource/GUI/Prefabs/Clan/ClanMembers.xml
index 73ef14f..093c47b 100644
--- a/resource/GUI/Prefabs/Clan/ClanMembers.xml
+++ b/resource/GUI/Prefabs/Clan/ClanMembers.xml
@@ -125,6 +125,11 @@
+
+
+
+
+
diff --git a/resource/ModuleData/Languages/CNs/std_module_stringsl.xml b/resource/ModuleData/Languages/CNs/std_module_stringsl.xml
index a034486..620d598 100644
--- a/resource/ModuleData/Languages/CNs/std_module_stringsl.xml
+++ b/resource/ModuleData/Languages/CNs/std_module_stringsl.xml
@@ -6,12 +6,16 @@
-
-
-
-
+
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resource/ModuleData/Languages/English/std_module_stringsl.xml b/resource/ModuleData/Languages/English/std_module_stringsl.xml
index ce7128a..0f6a170 100644
--- a/resource/ModuleData/Languages/English/std_module_stringsl.xml
+++ b/resource/ModuleData/Languages/English/std_module_stringsl.xml
@@ -7,11 +7,15 @@
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resource/SubModule.xml b/resource/SubModule.xml
index a3de9ac..48480ec 100644
--- a/resource/SubModule.xml
+++ b/resource/SubModule.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/vm/MyClanLordItemVM.cs b/vm/MyClanLordItemVM.cs
index 4e255e1..ef82b0c 100644
--- a/vm/MyClanLordItemVM.cs
+++ b/vm/MyClanLordItemVM.cs
@@ -68,9 +68,19 @@ public void DoRefleshFPoint()
public void DoRefleshPerks()
{
TextObject textObject = new TextObject("{=misc_cr_DoRefleshPerk}The hero's skill tree has been reset", null);
- // InformationManager.DisplayMessage(new InformationMessage(textObject.ToString()));
this.ShowComfirDialog(textObject, () => RePerksHero(GetHero()));
-
+ InformationManager.DisplayMessage(new InformationMessage(new TextObject("{=tips_cr_DoRefleshPerks}After reset the hero’s skill perk, you must save and reload the saves to take effect!", null).ToString()));
+
+
+ }
+
+ public void DoRefleshTraits()
+ {
+ TextObject textObject = new TextObject("{=misc_cr_DoRefleshTraits}The hero's traits have been improved", null);
+ this.ShowComfirDialog(textObject, () => ReTraits(GetHero()));
+ InformationManager.DisplayMessage(new InformationMessage(new TextObject("{=tips_cr_DoRefleshTrait}After upgrading the hero’s traits, you need to close the clan screen and reopen it to take effect!", null).ToString()));
+
+
}
private void ShowComfirDialog(TextObject tip, Action action)
@@ -106,8 +116,17 @@ public string ResetPerkText
}
}
+ [DataSourceProperty]
+ public string ResetTraitsText
+ {
+ get
+ {
+ return new TextObject("{=bottom_ReTraitsHero}ImproveTraits", null).ToString();
+ }
+ }
- private void RePerksHero(Hero hero)
+
+ private void RePerksHero(Hero hero)
{
foreach (SkillObject skill in DefaultSkills.GetAllSkills())
{
@@ -116,7 +135,7 @@ private void RePerksHero(Hero hero)
hero.ClearPerks();
}
- public void RefocusHero(Hero hero)
+ public void RefocusHero(Hero hero)
{
int num = 0;
int num2 = 0;
@@ -134,7 +153,7 @@ public void RefocusHero(Hero hero)
}
- public void ReAttHero(Hero hero)
+ public void ReAttHero(Hero hero)
{
int num = 0;
for (CharacterAttributesEnum characterAttributesEnum = CharacterAttributesEnum.Vigor; characterAttributesEnum < CharacterAttributesEnum.NumCharacterAttributes; characterAttributesEnum++)
@@ -146,6 +165,18 @@ public void ReAttHero(Hero hero)
hero.HeroDeveloper.UnspentAttributePoints += MBMath.ClampInt(num, 0, 999);
}
+ public void ReTraits(Hero hero)
+ {
+ int num = 2;
+ hero.ClearTraits();
+ hero.SetTraitLevel(DefaultTraits.Honor, num);
+ hero.SetTraitLevel(DefaultTraits.Valor, num);
+ hero.SetTraitLevel(DefaultTraits.Mercy, num);
+ hero.SetTraitLevel(DefaultTraits.Generosity, num);
+ hero.SetTraitLevel(DefaultTraits.Calculating, num);
+
+ }
+
}