From: Simon Cross Date: Sat, 5 Mar 2016 20:02:06 +0000 (+0200) Subject: Pass in weapon explicitly to avoid it being confused with the color. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=56e7ffe48b515da894612297500ae9847862d165;p=koperkapel.git Pass in weapon explicitly to avoid it being confused with the color. --- diff --git a/koperkapel/vehicles/walking.py b/koperkapel/vehicles/walking.py index 8061f2c..57c53a8 100644 --- a/koperkapel/vehicles/walking.py +++ b/koperkapel/vehicles/walking.py @@ -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