comparison pytouhou/game/item.pyx @ 571:e992927f07a8

Give point items a score even when collected bellow the Point of Collection.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 10 Jul 2014 14:35:02 +0200
parents db28538cd399
children e15672733c93
comparison
equal deleted inserted replaced
570:f0252cf111d8 571:e992927f07a8
127 if player.y < poc: 127 if player.y < poc:
128 score = 100000 128 score = 100000
129 self._game.modify_difficulty(+30) 129 self._game.modify_difficulty(+30)
130 color = 'yellow' 130 color = 'yellow'
131 else: 131 else:
132 #score = #TODO: find the formula. 132 score = (728 - int(self.y)) * 100 #TODO: check the formula some more.
133 self._game.modify_difficulty(+3) 133 self._game.modify_difficulty(+3)
134 134
135 elif self._type == 3: # bomb 135 elif self._type == 3: # bomb
136 if player.bombs < 8: 136 if player.bombs < 8:
137 player.bombs += 1 137 player.bombs += 1