Mercurial > parpg-source
changeset 111:17fab1f2bf7d
Added saveable_fields to the CharacterStatistics component.
author | KarstenBock@gmx.net |
---|---|
date | Sat, 01 Oct 2011 14:09:20 +0200 |
parents | 39466c901dc9 |
children | c40d04cf6ed1 |
files | components/character_statistics.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/components/character_statistics.py Sat Oct 01 14:07:40 2011 +0200 +++ b/components/character_statistics.py Sat Oct 01 14:09:20 2011 +0200 @@ -20,4 +20,10 @@ """Constructor""" Base.__init__(self, gender=str, picture=str, age=int, origin=str, primary_stats=dict, secondary_stats=dict, traits=list, - ) \ No newline at end of file + ) + @property + def saveable_fields(self): + fields = self.fields.keys() + fields.remove("primary_stats") + fields.remove("secondary_stats") + return fields \ No newline at end of file