changeset 188:d0aa0f3eecc1

Activaed loading of character statistic scripts.
author KarstenBock@gmx.net
date Sat, 05 Nov 2011 16:08:16 +0100
parents f612b4638744
children 61d158ce6bc3
files src/parpg/gamemodel.py
diffstat 1 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/gamemodel.py	Sat Nov 05 16:04:59 2011 +0100
+++ b/src/parpg/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: