changeset 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 f0252cf111d8
children 7f113f15300b
files pytouhou/game/item.pyx
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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