add drones to the thargoid log
This commit is contained in:
parent
434756695a
commit
7b4176fce5
@ -37,8 +37,9 @@ public class ThargoidFormatter : LogFormatter {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int drones = kills.Where(x => x.ThargoidType == ThargoidVessel.Revenant).Count();
|
||||||
int scouts = kills.Where(x => x.ThargoidType == ThargoidVessel.Scout).Count();
|
int scouts = kills.Where(x => x.ThargoidType == ThargoidVessel.Scout).Count();
|
||||||
int interceptors = kills.Count - scouts;
|
int interceptors = kills.Count - scouts - drones;
|
||||||
|
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|
||||||
@ -48,10 +49,16 @@ public class ThargoidFormatter : LogFormatter {
|
|||||||
}
|
}
|
||||||
if (scouts > 0) {
|
if (scouts > 0) {
|
||||||
if (interceptors > 0) {
|
if (interceptors > 0) {
|
||||||
builder.Append(" + ");
|
builder.Append(", ");
|
||||||
}
|
}
|
||||||
builder.AppendFormat("{0} SCT", scouts);
|
builder.AppendFormat("{0} SCT", scouts);
|
||||||
}
|
}
|
||||||
|
if (drones > 0) {
|
||||||
|
if (interceptors > 0 || scouts > 0) {
|
||||||
|
builder.Append(", ");
|
||||||
|
}
|
||||||
|
builder.AppendFormat("{0} DRN", drones);
|
||||||
|
}
|
||||||
|
|
||||||
return builder.ToString();
|
return builder.ToString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user