Pass in weapon explicitly to avoid it being confused with the color.
authorSimon Cross <hodgestar@gmail.com>
Sat, 5 Mar 2016 20:02:06 +0000 (22:02 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 5 Mar 2016 20:02:06 +0000 (22:02 +0200)
koperkapel/vehicles/walking.py

index 8061f2c31c94e83689d286907252f2d61cbaaaca..57c53a83c98654fa4028e059383abe742532460f 100644 (file)
@@ -21,12 +21,12 @@ class Walking(Vehicle):
         roach = WorldRoach()
         if num_roaches == 1:
             # Return a single large roach
-            avatar = default_roaches.assemble(roach, weapon)
+            avatar = default_roaches.assemble(roach, weapon=weapon)
             avatar.anchor = (0, 0)
         elif num_roaches < 6:
-            avatar = roaches_quartet.assemble(roach, weapon)
+            avatar = roaches_quartet.assemble(roach, weapon=weapon)
             avatar.anchor = (0, 0)
         else:
-            avatar = roaches_nonet.assemble(roach, weapon)
+            avatar = roaches_nonet.assemble(roach, weapon=weapon)
             avatar.anchor = (0, 0)
         return avatar