changeset 128:c5f07479592e

Beware the ninja fox.
author Simon Cross <hodgestar@gmail.com>
date Wed, 02 Sep 2009 21:33:53 +0000
parents d98654287317
children 8837c6eab0c7
files gamelib/gameboard.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Wed Sep 02 21:31:24 2009 +0000
+++ b/gamelib/gameboard.py	Wed Sep 02 21:33:53 2009 +0000
@@ -547,8 +547,10 @@
                     break
             if not skip:
                 roll = random.randint(0, 10)
-                if roll < 9:
+                if roll < 8:
                     fox = animal.Fox((x, y))
+                elif roll < 9:
+                    fox = animal.NinjaFox((x, y))
                 else:
                     fox = animal.GreedyFox((x, y))
                 self.add_fox(fox)