make system and faction bold

This commit is contained in:
Florian Stinglmayr 2022-12-16 21:48:16 +01:00
parent b96e40299d
commit efbbaa8abf

View File

@ -1,13 +1,11 @@
using System.Linq;
namespace EliteBGS;
namespace EliteBGS;
public class OneLineDiscordLog : DiscordLogGenerator {
protected override string GenerateObjectiveHeader(Objective objective) {
if (!string.IsNullOrEmpty(objective.Faction)) {
return string.Format("{0} for {1}: ", objective.System, objective.Faction);
return string.Format("**{0}** for **{1}**: ", objective.System, objective.Faction);
} else {
return string.Format("{0}: ", objective.System);
return string.Format("**{0}**: ", objective.System);
}
}