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("")
def __init__ (self): Improvable.__init__(self) Addressable.__init__(self) self.collection = None
def __init__ (self): Improvable.__init__(self) Addressable.__init__(self)