reintroduce human readable mission names
This commit is contained in:
@@ -16,11 +16,7 @@ public class MissionCompleted : Transaction {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(c.Mission.LocalisedName)) {
|
||||
return (c.Mission.Name ?? "");
|
||||
} else {
|
||||
return c.Mission.LocalisedName;
|
||||
}
|
||||
return c.Mission.FriendlyName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,8 +39,9 @@ public class MissionFailed : Transaction {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// +1 since the other entries are just copies of the one we have in our properties
|
||||
public int Amount => Entries.Count + 1;
|
||||
public int Amount {
|
||||
get { return Entries.Count + 1; }
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
@@ -51,8 +52,7 @@ public class MissionFailed : Transaction {
|
||||
|
||||
builder.AppendFormat("{0}x Mission failed: \"{1}\"",
|
||||
Amount,
|
||||
Failed?.Mission?.LocalisedName != null ?
|
||||
Failed?.Mission?.LocalisedName : Failed?.Mission?.Name
|
||||
Failed?.Mission?.FriendlyName
|
||||
);
|
||||
|
||||
return builder.ToString();
|
||||
|
||||
Reference in New Issue
Block a user