init python:
    def genie_transform(trans, st, at):
        trans.xpos = genie_xpos
        trans.ypos = genie_ypos
        trans.zoom = genie_zoom
        trans.xzoom = genie_flip
        trans.offset = genie_offset
        return 0

layeredimage genie_stats:
    anchor (0.0, 1.0)

    group hair:
        attribute nude "characters/genie/hair.webp"

    group fixes:
        attribute robes "characters/genie/robes_fix.webp"

    always "characters/genie/base.webp"

    group face:
        attribute base Null()
        attribute grin "characters/genie/grin.webp"
        attribute angry "characters/genie/angry.webp"
        attribute smile "characters/genie/smile.webp"
        attribute open "characters/genie/open.webp"

    group outfit:

        attribute nude Null()
        attribute robes default "characters/genie/robes.webp"

layeredimage genie:
    anchor (0.0, 1.0)

    group hair:
        attribute nude "characters/genie/hair.webp"

    group fixes:
        attribute robes "characters/genie/robes_fix.webp"

    always "characters/genie/base.webp"

    group face:
        attribute base Null()
        attribute grin "characters/genie/grin.webp"
        attribute angry "characters/genie/angry.webp"
        attribute smile "characters/genie/smile.webp"
        attribute open "characters/genie/open.webp"

    group outfit:

        attribute nude Null()
        attribute robes default "characters/genie/robes.webp"

    at Transform(function=genie_transform)

image side genie = LayeredImageProxy("genie")
