Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/game
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-09-14 20:34:17 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-09-14 20:34:17 (GMT)
commitd23ff090acdfde9f41ca97345ad3d14548503624 (patch)
tree64ec770690248cd514fd019db6a22a7188e718c9 /src/game
parentcc774232314bd902911e1060a6ec56ef98cff538 (diff)
fix number of good answers
Diffstat (limited to 'src/game')
-rw-r--r--src/game/Area1Game1.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Area1Game1.py b/src/game/Area1Game1.py
index dc10251..ff5ce27 100644
--- a/src/game/Area1Game1.py
+++ b/src/game/Area1Game1.py
@@ -239,9 +239,7 @@ class CArea1Game1(CGameState):
self.mAlphaSet = False
- msg = _('Has terminado con %s respuestas bien') % self.mGood
- self.mDialog = Globe((450, 100), text=unicode(msg, 'UTF-8'), pico=None)
- self.mDialog.set_center((600, 300))
+
self.mButtonAccept = CButton()
self.mButtonAccept.set_bgColor((125, 255, 125))
@@ -262,9 +260,12 @@ class CArea1Game1(CGameState):
CGame().setState(ms)
return
- if (self.mBad + self.mGood) > 10:
+ if (self.mGood == 8) or (self.mBad > 4):
self.mAlphaSet = True
CGame().addChild(self.mAlpha)
+ msg = _('Has terminado con %s respuestas bien') % self.mGood
+ self.mDialog = Globe((450, 100), text=unicode(msg, 'UTF-8'), pico=None)
+ self.mDialog.set_center((600, 300))
CGame().addChild(self.mDialog)
CGame().addChild(self.mButtonAccept)
else: