From 1d594b669d3039b3949d53a4a194574d9eb9bd39 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Fri, 11 Apr 2014 22:26:59 +0100
Subject: [PATCH] [Change] Tweaked some economy values.

---
 src/economy.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/economy.c b/src/economy.c
index 9a8f286..d4118ed 100644
--- a/src/economy.c
+++ b/src/economy.c
@@ -1,3 +1,13 @@
+/**
+ * @file economy.c
+ *
+ * @brief Handles economy stuff.
+ *
+ * Economy is handled with Nodal Analysis. Systems are modelled as nodes,
+ * jump routes are resistances and production is modeled as node intensity.
+ * This is then solved with linear algebra after each time increment.
+ */
+
 #include <stdio.h>
 #include <string.h>
 #include <stdint.h>
@@ -20,7 +30,7 @@
 
 /* Economy Nodal Analysis parameters. */
 #define ECON_BASE_RES       30.     /**< Base resistance value for any system. */
-#define ECON_SELF_RES       30.     /**< Additional resistance for the self node. */
+#define ECON_SELF_RES       3.      /**< Additional resistance for the self node. */
 #define ECON_FACTION_MOD    0.1     /**< Modifier on Base for faction standings. */
 #define ECON_PROD_MODIFIER  500000. /**< Production modifier, divide production by this amount. */
 
@@ -392,7 +402,7 @@ int economy_update(unsigned int dt) {
   int i, j;
   double *X;
   double scale, offset;
-  double min, max;
+  /*double min, max;*/
 
   /* Create the vector to solve the system. */
   X = malloc(sizeof(double)*systems_nstack);