Mercurial > parpg-source
changeset 19:16c959864d41
Backed out changeset: 799fc37fec6d
author | KarstenBock@gmx.net |
---|---|
date | Wed, 10 Aug 2011 21:08:14 +0200 |
parents | 702ee8e475df |
children | 35081fd801ac |
files | components/containable.py components/container.py |
diffstat | 2 files changed, 1 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/components/containable.py Wed Aug 10 21:07:06 2011 +0200 +++ b/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/components/container.py Wed Aug 10 21:07:06 2011 +0200 +++ b/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