changeset 41:74f09d6417f4

Backed out changeset: 799fc37fec6d
author KarstenBock@gmx.net
date Wed, 10 Aug 2011 21:08:14 +0200
parents be9a0e9e3ac2
children 9a97f53fc550
files src/parpg/components/containable.py src/parpg/components/container.py
diffstat 2 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/components/containable.py	Wed Aug 10 21:07:06 2011 +0200
+++ b/src/parpg/components/containable.py	Wed Aug 10 21:08:14 2011 +0200
@@ -18,7 +18,4 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(bulk=int, weight=int, image=str, current_container=object, new_container=object, new_slot=int)
-        self.fields['current_container'].default = None
-        self.fields['new_container'].default = None
-        self.fields['new_slot'].default = -1
+        Component.__init__(bulk=int, weight=int, image=str, container=object)
--- a/src/parpg/components/container.py	Wed Aug 10 21:07:06 2011 +0200
+++ b/src/parpg/components/container.py	Wed Aug 10 21:08:14 2011 +0200
@@ -20,9 +20,3 @@
     
     def __init__(self):
         Component.__init__(children=list, max_bulk=int)
-        
-def get_bulk(container):
-    bulk = 0
-    for child in container.children:
-        bulk += child.bulk
-    return bulk