# HG changeset patch # User KarstenBock@gmx.net # Date 1317804896 -7200 # Node ID 3aff9dee1b4fd03b828c5a7da06765a0be576cd2 # Parent 6e1eb964a6e5da19330a610dc1309c47bcb9785c Added belt and neck as equipment slots. diff -r 6e1eb964a6e5 -r 3aff9dee1b4f src/parpg/components/equip.py --- a/src/parpg/components/equip.py Mon Oct 03 18:25:31 2011 +0200 +++ b/src/parpg/components/equip.py Wed Oct 05 10:54:56 2011 +0200 @@ -15,11 +15,12 @@ class Equip(Base): """ - Component that stores the equipment (what is being worn/wieled). + Component that stores the equipment (what is being worn/wielded). """ def __init__(self): - Base.__init__(self, head=object, body=object, leg=object, feet=object, l_arm=object, r_arm=object) + Base.__init__(self, head=object, neck=object, body=object, belt=object, + leg=object, feet=object, l_arm=object, r_arm=object) @property def saveable_fields(self): @@ -41,14 +42,17 @@ return "The equipable is already weared." class CannotBeEquippedInSlot(Exception): - """Error that gets raised when the equipable can't be equiped in that slot""" + """Error that gets raised when the equipable can't be equiped in that + slot""" def __init__(self, slot, equipable): self.slot = slot self.equipable = equipable def __str__(self): - return "%s is not in the equipables slots. (%s)" % (self.slot, ', '.join(self.equipable.possible_slots)) + return ("%s is not in the equipables slots. (%s)" % + (self.slot, ', '.join(self.equipable.possible_slots)) + ) def equip(wearer, equipable, slot):