public override LocalEmbed ToEmbed() { var embed = base.ToEmbed(); embed.AddField("Capacity", $"{Capacity} rounds", true); embed.AddField("Caliber", Caliber, true); if (MalfunctionChance != 0) { embed.AddField("Malfunction Chance", $"{MalfunctionChance:0.00;-#.00}%", true); } if (ErgonomicsFloat != 0) { embed.AddField("Ergonomics", ErgonomicsFloat.ToString("+0.00;-#.00"), true); } if (Modifier.CheckTime != 0) { embed.AddField("Check Time", $"{Modifier.CheckTime:+0.00;-#.00}%", true); } if (Modifier.LoadUnload != 0) { embed.AddField("Load/Unload Time", $"{Modifier.LoadUnload:+0.00;-#.00}%", true); } embed.AddGridModifier(GridModifier); return(embed); }
public override LocalEmbed ToEmbed() { var embed = base.ToEmbed(); if (ErgonomicsFloat != 0) { embed.AddField("Ergonomics", ErgonomicsFloat.ToString("+0.00;-#.00"), true); } if (Accuracy != 0) { embed.AddField("Accuracy", Accuracy.ToString("+0.00;-#.00"), true); } if (Recoil != 0) { embed.AddField("Recoil", Recoil.ToString("+0.00;-#.00"), true); } embed.AddGridModifier(GridModifier); return(embed); }