 (ns zetawar.subs
   (:require
-    [datascript.core :as d]
-    [zetawar.db :refer [e qe]]
-    [zetawar.game :as game]
-    [zetawar.hex :as hex]
-    [zetawar.util :refer [select-values spy]]
-    [posh.core :as posh]
-    [reagent.core :as r])
+   [datascript.core :as d]
+   [zetawar.db :refer [e qe]]
+   [zetawar.game :as game]
+   [zetawar.hex :as hex]
+   [zetawar.util :refer [select-values spy]]
+   [posh.core :as posh]
+   [reagent.core :as r])
   (:require-macros
-    [zetawar.subs :refer [deftrack]]))
+   [zetawar.subs :refer [deftrack]]))
 
 ;; TODO: add asserts to check params for better error messages?
 

(deftrack terrains [conn]
  (let [map-eid' @(game-map-eid conn)]
    (:map/terrains
      @(posh/pull conn [{:map/terrains terrain-pull}]
                  map-eid'))))

(defn current-base-locations [conn]
  (posh/q conn '[:find ?q ?r

                              [(not= ?f ?cf)]]
                       @(current-faction-eid conn)))
      0))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Units
