Mercurial > parpg-core
diff src/parpg/components/equip.py @ 119:3564a46544bc
Added Base component, which has a saveable_fields property. It is supposed to be derived from, thus it is not in the components list.
author | KarstenBock@gmx.net |
---|---|
date | Tue, 27 Sep 2011 14:58:03 +0200 |
parents | 7829eb185d6f |
children | 0ac4403404ea |
line wrap: on
line diff
--- a/src/parpg/components/equip.py Mon Sep 26 15:44:42 2011 +0200 +++ b/src/parpg/components/equip.py Tue Sep 27 14:58:03 2011 +0200 @@ -11,15 +11,15 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from parpg.bGrease.component import Component +from base import Base -class Equip(Component): +class Equip(Base): """ Component that stores the equipment (what is being worn/wieled). """ def __init__(self): - Component.__init__(self, head=object, body=object, leg=object, feet=object, l_arm=object, r_arm=object) + Base.__init__(self, head=object, body=object, leg=object, feet=object, l_arm=object, r_arm=object) class SlotInvalidError(Exception): """Error that gets raised when the slot is invalid."""