From 960200f15d941b367913f0821d7fac8ac5705707 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 5 Mar 2016 15:29:03 +0200 Subject: [PATCH] Add roach_is_serumless helper. --- koperkapel/serums.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koperkapel/serums.py b/koperkapel/serums.py index c2a52bb..40ebfba 100644 --- a/koperkapel/serums.py +++ b/koperkapel/serums.py @@ -27,6 +27,13 @@ def roach_serum_color(roach): return SERUM_OVERLAY_COLORS["none"] +def roach_is_serumless(roach): + for serum_name in SERUMS: + if getattr(roach, serum_name): + return False + return True + + class SerumFactory: def __init__(self, suffix): self.suffix = suffix -- 2.34.1