예제 #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("")
예제 #2
0
 def __init__ (self):
     Improvable.__init__(self)
     Addressable.__init__(self)
     self.collection = None
예제 #3
0
 def __init__ (self):
     Improvable.__init__(self)
     Addressable.__init__(self)