diff pytouhou/game/enemy.py @ 300:da53bc29b94a

Add the game interface.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 Mar 2012 17:47:03 +0100
parents 94c636f8f863
children f3099ebf4f61
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -319,7 +319,8 @@ class Enemy(object):
 
         # Adjust damages
         damages = min(70, damages)
-        score = (damages // 5) * 10 #TODO: give to which player?
+        score = (damages // 5) * 10
+        self._game.players[0].state.score += score #TODO: better distribution amongst the players.
 
         if self._game.spellcard:
             #TODO: there is a division by 3, somewhere... where is it?