Skip to content

Commit

Permalink
Minor code tweaks to WarsOutputter (#1689) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Jan 5, 2024
1 parent d7b6686 commit 8f146a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ImperatorToCK3/Outputter/WarsOutputter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace ImperatorToCK3.Outputter;

public static class WarsOutputter {
public static void OutputWars(string outputModName, IList<War> wars) {
public static void OutputWars(string outputModName, IEnumerable<War> wars) {
Logger.Info("Writing wars...");
// dumping all into one file
var path = Path.Combine("output",outputModName, "history/wars/00_wars.txt");
Expand All @@ -27,8 +27,8 @@ private static void OutputWar(TextWriter output, War war) {
if (war.CasusBelli is not null) {
output.WriteLine($"\tcasus_belli = {war.CasusBelli}");
}
output.WriteLine($"\tattackers={{ {string.Join(" ", war.Attackers)} }}");
output.WriteLine($"\tdefenders={{ {string.Join(" ", war.Defenders)} }}");
output.WriteLine($"\tattackers={{ {string.Join(' ', war.Attackers)} }}");
output.WriteLine($"\tdefenders={{ {string.Join(' ', war.Defenders)} }}");
output.WriteLine($"\tclaimant = {war.Claimant}");

output.WriteLine("}");
Expand Down

0 comments on commit 8f146a1

Please sign in to comment.