Very statis hud.
[koperkapel.git] / koperkapel / serums.py
index 22391145f2b23843f75bccad381cae6f33fc4d7f..5162180502e36e8c2c126f1da5379f1e5b079049 100644 (file)
@@ -41,6 +41,14 @@ class SerumFactory:
     def __init__(self, suffix):
         self.suffix = suffix
 
+    def assemble_icon(self, name):
+        assert name in SERUMS
+        serum_icon = images.load(safepath("serum%s/%s") % (
+            self.suffix, SERUM_TILENAME_MAP[name],))
+        frame = serum_icon.copy()
+        frame.fill(SERUM_OVERLAY_COLORS[name], None, BLEND_RGBA_MULT)
+        return frame
+
     def assemble(self, name):
         assert name in SERUMS
         puddle = images.load(safepath("serum%s/serum") % (self.suffix,))