コード例 #1
0
ファイル: characters.py プロジェクト: retooth/shmudder
 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
ファイル: characters.py プロジェクト: retooth/shmudder
 def __init__ (self):
     Improvable.__init__(self)
     Addressable.__init__(self)
     self.collection = None
コード例 #3
0
ファイル: characters.py プロジェクト: retooth/shmudder
 def __init__ (self):
     Improvable.__init__(self)
     Addressable.__init__(self)