def get_layer(self, z):
        for layer in self.layers:
            if layer.z == z:
                break
        else:
            layer = spryte.SpriteBatch()
            layer.z = z
            self.layers.append(layer)
            self.layers.sort(key=operator.attrgetter('z'))
        return layer
Lookup, crop and color given chest slot and apply to player render.
dataset/ETHPy150Open ardekantur/pyglet/contrib/spryte/view.py/View.get_layer--crossover with--dataset/ETHPy150Open wizzomafizzo/starcheat/starcheat/assets/species.py/Species.render_chest