diff 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
line wrap: on
line diff
--- a/pytouhou/game/item.pyx
+++ b/pytouhou/game/item.pyx
@@ -129,7 +129,7 @@ cdef class Item(Element):
                 self._game.modify_difficulty(+30)
                 color = 'yellow'
             else:
-                #score =  #TODO: find the formula.
+                score = (728 - int(self.y)) * 100 #TODO: check the formula some more.
                 self._game.modify_difficulty(+3)
 
         elif self._type == 3: # bomb