better format cargo selling
This commit is contained in:
parent
8f40c1d75e
commit
d0bd8ce711
@ -21,9 +21,20 @@ namespace EliteBGS.BGS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (MarketSellEntry sell in sold) {
|
foreach (MarketSellEntry sell in sold) {
|
||||||
|
string cargo;
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(sell.TypeLocalised)) {
|
||||||
|
cargo = sell.TypeLocalised;
|
||||||
|
} else {
|
||||||
|
cargo = sell.Type;
|
||||||
|
if (cargo.Length >= 2) {
|
||||||
|
cargo = cargo[0].ToString().ToUpper() + cargo.Substring(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
builder.AppendFormat("Sold {0} {1} to the {2}",
|
builder.AppendFormat("Sold {0} {1} to the {2}",
|
||||||
sell.Count,
|
sell.Count,
|
||||||
sell.Type,
|
cargo,
|
||||||
sell.BlackMarket ? "Black Market" : "Commodity Market"
|
sell.BlackMarket ? "Black Market" : "Commodity Market"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user