Fix OK note operator on Dan Dojo page
This commit is contained in:
parent
c15e15acca
commit
055c490c77
@ -262,11 +262,7 @@
|
||||
}
|
||||
</MudStack>
|
||||
@{
|
||||
var conditionOperator = ">";
|
||||
if ((DanConditionType)border.OdaiType is DanConditionType.BadCount)
|
||||
{
|
||||
conditionOperator = "<";
|
||||
}
|
||||
var conditionOperator = GetDanConditionOperator((DanConditionType)border.OdaiType);
|
||||
}
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.subtitle2" Style="font-weight:bold">Conditions</MudText>
|
||||
@ -359,11 +355,8 @@
|
||||
</MudStack>
|
||||
}
|
||||
@{
|
||||
var conditionOperator = ">";
|
||||
if ((DanConditionType)border.OdaiType is DanConditionType.BadCount)
|
||||
{
|
||||
conditionOperator = "<";
|
||||
}
|
||||
var conditionOperator = GetDanConditionOperator((DanConditionType)border.OdaiType);
|
||||
|
||||
|
||||
if (redRequirement == 0) {
|
||||
conditionOperator = "";
|
||||
|
@ -179,4 +179,16 @@ public partial class DaniDojo
|
||||
|
||||
return isGold ? soulBorder.GoldBorderTotal : soulBorder.RedBorderTotal;
|
||||
}
|
||||
|
||||
private static string GetDanConditionOperator(DanConditionType type)
|
||||
{
|
||||
var conditionOperator = ">";
|
||||
|
||||
if (type is DanConditionType.BadCount or DanConditionType.OkCount)
|
||||
{
|
||||
conditionOperator = "<";
|
||||
}
|
||||
|
||||
return conditionOperator;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user