NavigateToEntity(entity)">
+
+
+
+
+ @if (!string.IsNullOrEmpty(entity.Info().Description))
+ {
+
+ @(entity.Info().Description.Length > 160
+ ? entity.Info().Description[..157] + "..."
+ : entity.Info().Description)
+
+ }
+
+
+ @{
+ var tier = entity.Tier();
+ if (tier != null && tier.Tier > 0)
+ {
+ T@(tier.Tier)
+ }
+ }
+ @{
+ var supply = entity.Supply();
+ if (supply != null && (supply.Takes > 0 || supply.Grants > 0))
+ {
+ @supply.Takes@(supply.Grants > 0 ? $"/{supply.Grants}" : "")
+ }
+ }
+ @{
+ var prod = entity.Production();
+ if (prod != null)
+ {
+ if (prod.Alloy > 0) { @prod.Alloy }
+ if (prod.Ether > 0) { @prod.Ether }
+ if (prod.Pyre > 0) { @prod.Pyre }
+ if (prod.Energy > 0) { @prod.Energy }
+ if (prod.BuildTime > 0) { @prod.BuildTime"s }
+ }
+ }
+ @{
+ var vitality = entity.Vitality();
+ if (vitality != null && vitality.Health > 0)
+ {
+ @vitality.Health
+ }
+ }
+
+
+