Beispiel #1
0
 def improve (self, actor, value):
     """
     [player action] Gains attribute by value. Stops at maximum 
     and calls qualityMaximum() if necessary. Checks, if collection
     allows improvement at current time.
     """
     if self.collection.allowsimprovement:
         Improvable.improve(self, actor, value)
         self.collection.bonus = self.collection.bonus - 1 
     else :
         raise ImprovementNotAllowed("")
Beispiel #2
0
 def __init__ (self):
     Improvable.__init__(self)
     Addressable.__init__(self)
     self.collection = None
Beispiel #3
0
 def __init__ (self):
     Improvable.__init__(self)
     Addressable.__init__(self)