Update import avatar skill level to min

This commit is contained in:
2022-10-28 08:38:12 +08:00
parent 160b49d752
commit 397ec8472b

View File

@ -2225,8 +2225,8 @@ namespace GrasscutterTools.Forms
{ {
if (Check(CommandVersion.V1_4_1)) if (Check(CommandVersion.V1_4_1))
{ {
// 取最高级的技能等级 // 取最的技能等级
var skillLevel = Math.Max(Math.Max(character.Talents.Auto, character.Talents.Skill), character.Talents.Burst); var skillLevel = Math.Min(Math.Min(character.Talents.Auto, character.Talents.Skill), character.Talents.Burst);
commands_list.Add($"/give {character_id} lv{character.Level} c{character.Constellation} sl{skillLevel}"); commands_list.Add($"/give {character_id} lv{character.Level} c{character.Constellation} sl{skillLevel}");
} }
else else