]> ruin.nu Git - hbs.git/blobdiff - bs/bsconf.cpp
battle algorithms are getting more and more mature and stats.conf is updated.
[hbs.git] / bs / bsconf.cpp
index 874d6b9e38d1f20ccf483af79696871797c77af4..478b8d456bb64621effb19fe78ae09fbd235bb91 100644 (file)
@@ -106,8 +106,13 @@ bool BSConf::loadStats()
                                units[race].setArmor(temp.toInt());
                                t1 >> temp;
                                units[race].setEMP(temp.toInt());
-                               t1 >> temp;
-                               units[race].setTotalResources(temp.toInt());
+                               QString metal;
+                               QString crystal;
+                               QString eonium;
+                               t1 >> metal;
+                               t1 >> crystal;
+                               t1 >> eonium;
+                               units[race].setTotalResources(metal.toInt() + crystal.toInt() + eonium.toInt());
                                t1 >> temp;
                                units[race].setFuel(temp.toInt());
                                t1 >> temp;