changeset 156:0655f2f0f3cd

Activaed loading of character statistic scripts.
author KarstenBock@gmx.net
date Sat, 05 Nov 2011 16:08:16 +0100
parents f017f8cac2c2
children 79d6b17b80a3
files gamemodel.py
diffstat 1 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gamemodel.py	Sat Nov 05 16:04:59 2011 +0100
+++ b/gamemodel.py	Sat Nov 05 16:08:16 2011 +0100
@@ -100,14 +100,17 @@
         self.obj_loader = XMLObjectLoader(self.engine)
         # FIXME M. George Hansen 2011-06-06: character stats scripts aren't
         #     finished, unfortunately.
-        #primary_stats_file = \
-        #    vfs.VFS.open('character_scripts/primary_stats.xml')
-        #self.primary_stats = XmlSerializer.deserialize(primary_stats_file)
-        #secondary_stats_file = \
-        #    vfs.VFS.open('character_scripts/secondary_stats.xml')
-        #self.secondary_stats = XmlSerializer.deserialize(secondary_stats_file)        
-        self.primary_stats = []
-        self.secondary_stats = []
+        # NOTE Beliar 2011-11-05 Activated the stats. Testing needed if it 
+        # works correctly, or if they are still unfinished.
+        primary_stats_file = (
+            vfs.VFS.open('character_scripts/primary_stats.xml')
+        )
+        self.primary_stats = XmlSerializer.deserialize(primary_stats_file)
+        secondary_stats_file = (
+            vfs.VFS.open('character_scripts/secondary_stats.xml')
+        )
+        self.secondary_stats = XmlSerializer.deserialize(secondary_stats_file)        
+
         
     def create_stats(self, entity):
         for primary_stat in self.primary_stats: