Add the turn events emptier.
1 files changed, 31 insertions(+), 0 deletions(-)

A => src/main/java/com/ajtjp/gearCity/TurnEventsEmptier.java
A => src/main/java/com/ajtjp/gearCity/TurnEventsEmptier.java +31 -0
@@ 0,0 1,31 @@ 
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.ajtjp.gearCity;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.util.Scanner;
+
+/**
+ *
+ * @author Andrew
+ */
+public class TurnEventsEmptier {
+    public static void main(String[] args) throws Exception{
+        File file = new File("C:\\Software\\Games\\Steam\\steamapps\\common\\GearCity\\media\\Maps\\Great Lakes\\scripts\\TurnEvents.xml");
+        Scanner s = new Scanner(file);
+        FileWriter fw = new FileWriter("C:\\Software\\Games\\Steam\\steamapps\\common\\GearCity\\media\\Maps\\Great Lakes\\scripts\\TurnEventsPruned.xml");
+        while (s.hasNextLine()) {
+            String line = s.nextLine();
+            if (!line.contains("<cityChange")) {
+                fw.write(line);
+                fw.write("\r\n");
+            }
+        }
+        fw.close();
+        s.close();
+    }
+}