 
    "Fenris"
    {:effect (effect (gain :bad-publicity 1) (system-msg "takes 1 bad publicity"))
-    :abilities [{:msg "do 1 brain damage" :effect (effect (damage :brain 1 {:card card}))} end-the-run]}
+    :abilities [(do-brain-damage 1)
+                end-the-run]}
 
    "Fire Wall"
    {:advanceable :always

   "Enforcer 1.0"
   {:additional-cost [:forfeit]
    :abilities [trash-program
                {:msg "do 1 brain damage" :effect (effect (damage :brain 1 {:card card}))}
                {:label "Trash a console" :effect (effect (trash target))
                 :prompt "Choose a console to trash" :msg (msg "trash " (:title target))
                 :choices {:req #(has-subtype? % "Console")}}

  {:label (str "Do " dmg " net damage")
   :msg (str "do " dmg " net damage")
   :effect (effect (damage :net dmg {:card card}))})

(defn do-brain-damage
  "Do specified amount of brain damage."
  [dmg]
  {:label (str "Do " dmg " brain damage")
   :msg (str "do " dmg " brain damage")
   :effect (effect (damage :brain dmg {:card card}))})

(defn gain-credits
  "Gain specified amount of credits"
