@if (Entity!.IdPyreSpells().Count > 0) { @if (StyleType.Equals("Plain")) { @foreach (var pyreSpell in Entity.IdPyreSpells()) { var spell = EntityModel.Get(pyreSpell.Id); var info = spell.Info(); var production = spell.Production();
Spell Name: @spell.Info().Name
- Description: @((MarkupString)info.Description)
@if (production != null) { if (production.Pyre != 0) { - Pyre: @production.Pyre } if (production.BuildTime != 0) { - BuildTime: @production.BuildTime } if (production.Cooldown != 0) { - Cooldown: @production.Cooldown } }
} } else { @foreach (var pyreSpell in Entity.IdPyreSpells()) { var spell = EntityModel.Get(pyreSpell.Id); var info = spell.Info(); var production = spell.Production();
Name:
Description: @((MarkupString)info.Description)
@if (production != null) { if (production.Pyre != 0) { Pyre: @production.Pyre } if (production.BuildTime != 0) { BuildTime: @production.BuildTime } if (production.Cooldown != 0) { Cooldown: @production.Cooldown } }
}
} } @code { [CascadingParameter] public EntityModel? Entity { get; set; } = default!; [CascadingParameter] public string StyleType { get; set; } = "Detailed"; }