From 278c6f302a88c51a5954904b856a1870c17400b3 Mon Sep 17 00:00:00 2001 From: moonheart Date: Sat, 30 Dec 2023 11:25:16 +0800 Subject: [PATCH] exclude equips lv lower than 180 --- MementoMori.BlazorShared/Pages/Index.razor | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MementoMori.BlazorShared/Pages/Index.razor b/MementoMori.BlazorShared/Pages/Index.razor index 218a3eb..0a83825 100644 --- a/MementoMori.BlazorShared/Pages/Index.razor +++ b/MementoMori.BlazorShared/Pages/Index.razor @@ -165,7 +165,7 @@ { } - @TextResourceTable.Get("[CommonHeaderBountyQuestLabel]") @TextResourceTable.Get("[BountyQuestAllReceive]") + @TextResourceTable.Get("[BountyQuestAllReceive]") @TextResourceTable.Get("[BountyQuestAutoPlacement]") @TextResourceTable.Get("[CommonAlternativesItemFormat]", TextResourceTable.Get("[CommonCurrencyName]"), 20) @@ -363,7 +363,7 @@ @foreach (var e in _characterEquipments) { - @($"{e.EquipmentName}/{e.UserEquipmentDtoInfo.ReinforcementLv} {e.CharacterName}") + @($"{e.CharacterName} {e.EquipmentName}/{e.UserEquipmentDtoInfo.ReinforcementLv}") } @@ -478,13 +478,17 @@ var chaMb = CharacterTable.GetById(cha.CharacterId); var name = TextResourceTable.Get(chaMb.NameKey); var equipmentMb = EquipmentTable.GetById(d.EquipmentId); + if (equipmentMb.EquipmentLv < 180) + { + return null; + } var equipmentName = TextResourceTable.Get(equipmentMb.NameKey); equipmentName = $"{equipmentName}/{@TextResourceTable.Get(BaseParameterType.Health)}{d.AdditionalParameterHealth}/{@TextResourceTable.Get(BaseParameterType.Intelligence)}{d.AdditionalParameterIntelligence}/{@TextResourceTable.Get(BaseParameterType.Muscle)}{d.AdditionalParameterMuscle}/{@TextResourceTable.Get(BaseParameterType.Energy)}{d.AdditionalParameterEnergy} "; return new CharacterEquipment() { CharacterGuid = d.CharacterGuid, CharacterName = name, EquipmentGuid = d.Guid, EquipmentName = equipmentName, UserEquipmentDtoInfo = d }; - }).OrderBy(d => d.CharacterGuid).ToList() ?? new List(); + }).Where(d=>d != null).OrderBy(d => d.CharacterGuid).ToList() ?? new List(); }); } catch (Exception e)