You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.0 KiB
101 lines
3.0 KiB
@if (Entity.IdPassives().Count > 0) { |
|
@if (StyleType.Equals("Plain")) |
|
{ |
|
@foreach (var idPassive in Entity.IdPassives()) { |
|
var passive = EntityModel.Get(idPassive.Id); |
|
|
|
var info = passive.Info(); |
|
|
|
var production = passive.Production(); |
|
|
|
<div> |
|
<div> |
|
<b>Name:</b> @info.Name |
|
</div> |
|
<div> |
|
<b>- Description:</b> @((MarkupString)info.Description) |
|
</div> |
|
|
|
@if (!info.Notes.Trim().Equals("")) { |
|
|
|
<div> |
|
<b>- Description:</b> @((MarkupString)info.Notes) |
|
</div> |
|
} |
|
</div> |
|
|
|
@if (production != null) { |
|
<div> |
|
@if (production.Pyre != 0) { |
|
<div> |
|
<b>- Pyre:</b> @production.Pyre |
|
</div> |
|
} |
|
@if (production.Cooldown != 0) { |
|
<div> |
|
<b>- Cooldown:</b> @production.Cooldown.ToString()s |
|
</div> |
|
} |
|
</div> |
|
} |
|
} |
|
|
|
} |
|
else |
|
{ |
|
|
|
<EntityDisplayComponent Title="Passives"> |
|
@foreach (var idPassive in Entity.IdPassives()) { |
|
var passive = EntityModel.Get(idPassive.Id); |
|
|
|
var info = passive.Info(); |
|
|
|
var production = passive.Production(); |
|
|
|
<div> |
|
<div> |
|
<b>Name:</b> <EntityLabelComponent EntityId="@passive.DataType"/> |
|
</div> |
|
<div> |
|
<b>Description:</b> @((MarkupString)info.Description) |
|
</div> |
|
|
|
@if (!info.Notes.Trim().Equals("")) { |
|
|
|
<div> |
|
<b>Description:</b> @((MarkupString)info.Notes) |
|
</div> |
|
} |
|
</div> |
|
|
|
@if (production != null) { |
|
<div> |
|
@if (production.Pyre != 0) { |
|
<div> |
|
<b>Pyre:</b> @production.Pyre |
|
</div> |
|
} |
|
@if (production.Cooldown != 0) { |
|
<div> |
|
<b>Cooldown:</b> @production.Cooldown.ToString()s |
|
</div> |
|
} |
|
</div> |
|
} |
|
} |
|
</EntityDisplayComponent> |
|
} |
|
|
|
} |
|
|
|
|
|
@code { |
|
|
|
[CascadingParameter] |
|
public EntityModel? Entity { get; set; } |
|
|
|
|
|
[CascadingParameter] |
|
public string StyleType { get; set; } = "Detailed"; |
|
|
|
} |