X-Git-Url: https://git.ctpug.org.za/?p=koperkapel.git;a=blobdiff_plain;f=koperkapel%2Froaches.py;h=1d77563953442090efc97e766d62d0dd243569d2;hp=680d2a69b24b0183a70700cde72e68cfcaea458a;hb=c3d7223fd37b42f88390aa2c299588a10daa9984;hpb=ed7b7dbe49f3962132f0db806552a5873d6fc113 diff --git a/koperkapel/roaches.py b/koperkapel/roaches.py index 680d2a6..1d77563 100644 --- a/koperkapel/roaches.py +++ b/koperkapel/roaches.py @@ -89,8 +89,9 @@ class RoachFactory: frame.blit(eyes, (0, 0)) return frame - def assemble(self, roach_data, weapon=None): - color = roach_serum_color(roach_data) + def assemble(self, roach_data, color=None, weapon=None): + if not color: + color = roach_serum_color(roach_data) frames = [] frames = [ self.assemble_frame(i, color, roach_data, weapon)